Coder Social home page Coder Social logo

prompt2model_test's Introduction

The training script is in ./train/train_t5_experiment.py.

You can just run python control.py in the same director to launch the training.

The generated datasets are in ./generation/generated_dataset. They are jp2python, normalization, and SQuAD. Note that these three are generated, and each contains roughly 5000 examples. You can check this.

The only thing you need to change is these three lines in the train_t5_experiment.py.

TRAINED_MODEL_ROOT = Path("/home/chenyan3/result/trained_model")
TRAINED_TOKENIZER_ROOT = Path("/home/chenyan3/result/trained_tokenizer")
RESULT_PATH = Path(f"/home/chenyan3/result/{model_store_name}_{task_name}")

Change it to your own root.

if evaluate: means we are doing an evaluation on the generated test set.

if realistic: means we are using the real dataset to test our trained models.

For the Trainer, the parameters are in hyperparameter_choices_keys. You could see all the parameters in the definition of train_model function.

prompt2model_test's People

Contributors

zhaochen20 avatar zhaochenyang20 avatar xueyingjia 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.