Replicate Llama4 Scout for Research
A promptfoo evaluation of Replicate-hosted Llama 4 Scout (17B, mixture-of-experts) against Llama 3 8B across seven topics.
Why it matters
Leverage the Llama4 Scout model via Replicate to perform advanced web searches and synthesize information for research purposes.
Outcomes
What it gets done
Execute complex web searches using Llama4 Scout.
Index and retrieve relevant information from search results.
Summarize findings to provide concise research insights.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/pfoo-replicate-llama4-scout | bash Overview
Replicate Llama4 Scout
This promptfoo example evaluates Replicate-hosted Llama 4 Scout (17B mixture-of-experts) against Llama 3 8B across seven general-knowledge and creative topics. Use it as a broad comparison template for Llama 4 Scout vs Llama 3 8B; one topic has no automated assertion and needs manual review.
What it does
This promptfoo example evaluates replicate:meta/llama-4-scout-instruct - a 17B-parameter mixture-of-experts model with 16 experts - against meta-llama-3-8b-instruct as a reference point, both hosted on Replicate. Prompts are loaded from file://prompts.txt and rendered with a topic variable across seven subjects: AI/mixture-of-experts, multimodal AI, quantum computing, climate solutions, space exploration, healthy lifestyle tips, and creative writing.
When to use - and when NOT to
Use this example as a template for benchmarking Llama 4 Scout's mixture-of-experts architecture against a smaller reference model like Llama 3 8B on general knowledge and creative tasks, mixing keyword checks with llm-rubric quality checks. It is a broad capability sweep rather than a benchmark focused on mixture-of-experts-specific behavior; one topic (space exploration) has no assertion at all, left for manual review.
Inputs and outputs
Providers are configured with matching generation settings (temperature: 0.7, top_p: 0.9, ~1000 max tokens):
providers:
# Llama 4 Scout - 17B parameter model with mixture-of-experts architecture
- id: replicate:meta/llama-4-scout-instruct
config:
temperature: 0.7
max_tokens: 1000
top_p: 0.9
# You can also compare with Llama 3 for reference
- id: replicate:meta/meta-llama-3-8b-instruct
label: llama-3-8b
Assertions mix contains-any keyword checks (e.g. quantum computing terms) with llm-rubric quality checks (e.g. "discusses both text and image understanding capabilities" for the multimodal AI topic).
Integrations
Runs against Replicate-hosted meta/llama-4-scout-instruct and meta/meta-llama-3-8b-instruct, using promptfoo's contains-any and llm-rubric assertion types.
Who it's for
Teams evaluating Llama 4 Scout's mixture-of-experts model against a smaller Llama 3 baseline on Replicate across general knowledge and creative-writing tasks.
Source README
yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: Replicate Llama 4 Scout model evaluation - A 17B parameter model with 16 experts
prompts:
- file://prompts.txt
providers:
Llama 4 Scout - 17B parameter model with mixture-of-experts architecture
- id: replicate:meta/llama-4-scout-instruct
config:
temperature: 0.7
max_tokens: 1000
top_p: 0.9
You can also compare with Llama 3 for reference
- id: replicate:meta/meta-llama-3-8b-instruct
label: llama-3-8b
config:
temperature: 0.7
max_new_tokens: 1000
top_p: 0.9
tests:
Test basic text generation
vars:
topic: artificial intelligence and mixture-of-experts models
assert:- type: contains-any
value: ['expert', 'mixture', 'model', 'AI', 'neural', 'architecture']
- type: contains-any
vars:
topic: the future of multimodal AI
assert:- type: llm-rubric
value: discusses both text and image understanding capabilities
- type: llm-rubric
vars:
topic: quantum computing
assert:- type: contains-any
value: ['quantum', 'qubit', 'superposition', 'entanglement']
- type: contains-any
vars:
topic: climate change solutions
assert:- type: llm-rubric
value: provides practical environmental solutions
- type: llm-rubric
vars:
topic: space explorationvars:
topic: healthy lifestyle tips
assert:- type: contains-any
value: ['exercise', 'nutrition', 'wellness', 'health']
- type: contains-any
vars:
topic: creative writing and storytelling
assert:- type: llm-rubric
value: demonstrates creativity and narrative skills
- type: llm-rubric
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.