Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 367 Bytes

File metadata and controls

11 lines (6 loc) · 367 Bytes

lightweight-finetuning-off-foundation-model

Applying lightweight finetuning to gpt2

Install the needed packages

!pip install transformers datasets peft

Run python3 main.py to run the script locally in your machine.

A machine with GPU is recomended. If you need to run on CPU than you need to adjust some of the training_arg so that you dont run out of memory.