Giter Club home page Giter Club logo

gemma_prompt_recovery's Introduction

Prompt Recovery with Gemma

The project aims to generate prompts for essay rewriting by fine-tuning a pre-trained language model on a dataset of original and rewritten texts. It involves loading the model, preparing the data, training the model, and then utilizing the trained model to generate prompts based on provided texts, ultimately producing a CSV file containing the generated prompts for further analysis or evaluation. Screenshot 2024-04-26 at 2 00 11 PM

Tools and Dependencies:

  • Python programming language
  • Accelerate library for efficient distributed training
  • Transformers library for natural language processing tasks
  • PyTorch library for tensor computations
  • Pandas library for data manipulation
  • tqdm library for progress bars

Techniques:

  • Language model fine-tuning: The script fine-tunes a pre-trained language model on a dataset of original and rewritten texts to adapt it for prompt generation.
  • Tokenization: The text data is tokenized using the AutoTokenizer from the Transformers library.
  • Prompt generation: Prompts are generated based on the original and rewritten texts using the fine-tuned language model.
  • Data preprocessing: The training data is preprocessed, including tokenization and formatting, to prepare it for model training.
  • Model training: The fine-tuned language model is trained using a specified configuration, including hyperparameters and optimization settings.
  • Result storage: The generated prompts are stored in a DataFrame and saved to a CSV file for further analysis or evaluation.

gemma_prompt_recovery's People

Contributors

yujansaya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.