Week 1
May 05/05/23
- AI3
- data validation of the data from the repository
datasetcreation- use 10 json objects, create a csv by manually entering prompts
- read csv into dataframe → create
datasetfrom dataframe - (optional): write to disk?
- Use the
tokenizerto tokenize the dataset - Train and val split
- Train the model with the
Trainerobject - Save the model
- Load the model and use it for prediction.
May 05/04/23
- Open an issue in
peftfor a feature request for Question Answering as a new task.
May 05/03/23
This is all for finetuning and using OPT for Question Answering on a Target dataset.
info
It would be interesting if we fine-tune the OPT on SQUAD + JSON data.
- Loop over all the JSON data in the dataset
- Generate sentences with the inflect
- Create a dataset, refer the
datasetslibrary for examples of how to tokenize a dataset for QA.dangerWhen the downstream task is different, the tokenizer needs to be used differently. The tokenizer gets invoked differently if we have CAUSAL_LM vs Question Answering
- Create training and validation splits
- Define Trainer with the training_args
- Call the Trainer.train()
- Save the model
- Download the model, run it locally
- Check inference speed
Report for AI3
- Start the report, mention the submission requirements
- Add diagrams and other charts that we have created
May 05/02/23
nbdev + colab instructions
note
These are broad instructions.
- Create a personal access token.
- While working inside Google Colab, checkout a new branch
colab-pavan,colab-deven, orcolab-user. - Push the changes to
colab-userbranch. - To merge the changes,
- Either create a pull request
- Or merge it manually
- Run the nbdev commands locally (inside WSL)
May 05/01/23
Holiday