Skip to content

FrancescoDiSalesGithub/few-shots-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

few-shots-importer

does a few shots prompt by using command instruction on a ollama modelfile

How to create the dataset

It is important to create a json like the following:

{

"prompts":[
    {"who is the famous superhero that climbs on walls?":"spiderman"},
    {"who is the famous superhero that turns green when he is angry?":"HULK"}
  ]

}

How to run

Just run the python script as the following:

python3 few-shots-importer.py OLLAMA_MODEL PATH_MODELFILE your-dataset.json

Where:

  • OLLAMA_MODEL is the model you are going to use (mistral,deepseek,qwen and so on)
  • PATH_MODELFILE the path where the new generated modelfile will be saved

Example:

python3 few-shot-importer.py mistral /home/myuser/Modelfile dataset.json

About

sft training by using only command instruction on a ollama modelfile

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages