Replicate created a Llama 3 API [0] very quickly. This can be used to run simple benchmarks with promptfoo [1] comparing Llama 3 vs Mixtral, GPT, Claude, and others:
prompts:
- 'Answer this programming question concisely: {{ask}}'
providers:
- replicate:meta/meta-llama-3-8b-instruct
- replicate:meta/meta-llama-3-70b-instruct
- replicate:mistralai/mixtral-8x7b-instruct-v0.1
- openai:chat:gpt-4-turbo
- anthropic:messages:claude-3-opus-20240229
tests:
- vars:
ask: Return the nth element of the Fibonacci sequence
- vars:
ask: Write pong in HTML
# ...
Still testing things but Llama 3 8b is looking pretty good for my set of random programming qs at least.Edit: ollama now supports Llama 3 8b, making it easy to run this eval locally.
providers:
- ollama:chat:llama3
[0] https://replicate.com/blog/run-llama-3-with-an-api