Simple local scripts to:
- read prompt
.txtfiles fromprompts/ - run them with either Hugging Face or Ollama
- append results to a CSV
- print saved results in the terminal
script.py: main runner (generation + CSV logging)results.py: printsprompt_fileandoutputfrom CSVrequirements.txt: Python dependenciesprompts/: input prompt text files
pip install -r requirements.txtEdit the variables at the top of script.py:
PROVIDER:"hf"or"ollama"MODEL_ID: model name for the selected providerUSE_STRUCTURED_OUTPUT:True/False(used by Ollama path)PROMPTS_DIR: input directory (defaultprompts)OUTPUT_CSV: output file (defaultari_llm_outputs.csv)MAX_NEW_TOKENS: generation budgetTEMPERATURE: sampling temperature (0.0is forced automatically for structured Ollama)OLLAMA_URL: Ollama server URL
python script.pypython results.py