ollama/examples/bash-comparemodels
Dr Nic Williams e8aaea030e
Update 'llama2' -> 'llama3' in most places (#4116)
* Update 'llama2' -> 'llama3' in most places

---------

Co-authored-by: Patrick Devine <patrick@infrahq.com>
2024-05-03 15:25:04 -04:00
..
comparemodels.sh Update as per bmacd 2023-11-08 18:09:05 -06:00
README.md Update 'llama2' -> 'llama3' in most places (#4116) 2024-05-03 15:25:04 -04:00
sourcequestions.txt Update as per bmacd 2023-11-08 18:09:05 -06:00

Bash Shell examples

When calling ollama, you can pass it a file to run all the prompts in the file, one after the other:

ollama run llama3 < sourcequestions.txt

This concept is used in the following example.

Compare Models

comparemodels.sh is a script that runs all the questions in sourcequestions.txt using any 4 models you choose that you have already pulled from the Ollama library or have created locally.