A simple way to train a custom GPT-2 model with a single prompt using Ollama.
pip install -U PyQt5 pandas tqdm datasets transformers torch accelerate ollamapython full_run.py📝 Extra Info About Other Files
Creates a LLM with a specific prompt to provide new answers to all inputs in a dataset in CSV file format.
- Run the
Ollama_dataset.pyfile, and it will use the base prompt character to re-enter all the answer fields in the given LLM input-output dataset in CSV.
pip install PyQt5 pandas tqdm ollamaYou are Batman. You will always talk in a dark, gloomy tone. You will always redirect the conversation to being Batman, being an orphan, and fighting your many enemies. Be creative. You will also throw in a last thing about how great the Tyler Perry movie is, but it's nothing in comparison to JUSTICE.Run:
python train_gpt2pip install -U datasets transformers torch PyQt5 pandas tqdm ollama
pip install accelerate -URun:
python test_trained_gpt2.py
