Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
llama.cpp/scripts/tool_bench.sh at master · beyonddream/llama.cpp · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
beyonddream
llama.cpp
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
llama.cpp
/
scripts
/
tool_bench.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
66 lines (52 loc) · 5.91 KB
master
Breadcrumbs
llama.cpp
/
scripts
/
tool_bench.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
66 lines (52 loc) · 5.91 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!
/usr/bin/env bash
set
-euo pipefail
cmake --build build -j
export
LLAMA_CACHE=
${LLAMA_CACHE
:-
$HOME
/
Library
/
Caches
/
llama.cpp}
export
LLAMA_SERVER_BIN_PATH=
$PWD
/build/bin/llama-server
if
[
!
-x
"
$LLAMA_SERVER_BIN_PATH
"
]
;
then
echo
"
Could not find llama-server binary at
$LLAMA_SERVER_BIN_PATH
"
exit
1
fi
if
[
!
-d
"
$LLAMA_CACHE
"
]
;
then
echo
"
Could not find llama cache at
$LLAMA_CACHE
, please set LLAMA_CACHE explicitly.
"
exit
1
fi
export
ARGS=(
--llama-baseline=
"
$(
which llama-server
)
"
--n 30
--temp -1
#
Leaves temperature parameter unset (use the server's default, e.g. 0.6 for ollama)
--temp 0
--temp 0.5
--temp 0.75
--temp 1
--temp 1.5
--temp 2
--temp 5
"
$@
"
)
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 Coder 0.5B Q4_K_M
"
--output ../qwenc0.5b.jsonl --hf bartowski/Qwen2.5-Coder-0.5B-Instruct-GGUF:Q4_K_M --ollama qwen2.5-coder:0.5b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 Coder 1.5B Q4_K_M
"
--output ../qwenc1.5b.jsonl --hf bartowski/Qwen2.5-Coder-1.5B-Instruct-GGUF:Q4_K_M --ollama qwen2.5-coder:1.5b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 Coder 3B Q4_K_M
"
--output ../qwenc3b.jsonl --hf bartowski/Qwen2.5-Coder-3B-Instruct-GGUF:Q4_K_M --ollama qwen2.5-coder:3b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 Coder 7B Q4_K_M
"
--output ../qwenc7b.jsonl --hf bartowski/Qwen2.5-Coder-7B-Instruct-GGUF:Q4_K_M --ollama qwen2.5-coder:7b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 Coder 32B Q4_K_M
"
--output ../qwenc32b.jsonl --hf bartowski/Qwen2.5-Coder-32B-Instruct-GGUF:Q4_K_M --ollama qwen2.5-coder:32B-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 1.5B Q4_K_M
"
--output ../qwen1.5b.jsonl --hf bartowski/Qwen2.5-1.5B-Instruct-GGUF:Q4_K_M --ollama qwen2.5:1.5b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 3B Q4_K_M
"
--output ../qwen3b.jsonl --hf bartowski/Qwen2.5-3B-Instruct-GGUF:Q4_K_M --ollama qwen2.5:3b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Qwen 2.5 7B Q4_K_M
"
--output ../qwen7b.jsonl --hf bartowski/Qwen2.5-7B-Instruct-GGUF:Q4_K_M --ollama qwen2.5:7b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Llama 3.2 Instruct 1B Q4_K_M
"
--output ../llama1b.jsonl --hf bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_K_M --ollama llama3.2:1b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Llama 3.2 Instruct 3B Q4_K_M
"
--output ../llama3b.jsonl --hf bartowski/Llama-3.2-3B-Instruct-GGUF:Q4_K_M --ollama llama3.2:3b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Llama 3.1 Instruct 8B Q4_K_M
"
--output ../llama8b.jsonl --hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M --ollama llama3.1:8b-instruct-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Llama 3.3 70B Q4_K_M
"
--output ../llama70b.jsonl --hf bartowski/Llama-3.3-70B-Instruct-GGUF:Q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Mistral Nemo Q4_K_M
"
--output ../nemo.jsonl --hf bartowski/Mistral-Nemo-Instruct-2407-GGUF:Q4_K_M --ollama mistral-nemo:12b-instruct-2407-q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Hermes 3 Llama 3.1 8B Q4_K_M
"
--output ../hermes3.jsonl --hf bartowski/Hermes-3-Llama-3.1-8B-GGUF:Q4_K_M --ollama hermes3:8b-llama3.1-q4_K_M --chat-template-file
<(
python scripts/get_chat_template.py NousResearch/Hermes-3-Llama-3.1-8B tool_use
)
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Hermes 2 Pro Llama 3 8B Q4_K_M
"
--output ../hermes2.jsonl --hf bartowski/Hermes-2-Pro-Llama-3-8B-GGUF:Q4_K_M --ollama hermes2:8b-llama3-q4_K_M --chat-template-file
<(
python scripts/get_chat_template.py NousResearch/Hermes-2-Pro-Llama-3-8B tool_use
)
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Functionary Small V3.2 Q4_K_M
"
--output ../funct3.2.jsonl --hf bartowski/functionary-small-v3.2-GGUF:Q4_K_M
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
FireFunction V2 IQ1_M
"
--output ../firef2.jsonl --hf bartowski/firefunction-v2-GGUF:IQ1_M --chat-template-file
<(
python scripts/get_chat_template.py fireworks-ai/llama-3-firefunction-v2 tool_use
)
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Command R7B 12-2024 Q6_K_L
"
--output ../c4ai.jsonl --hf bartowski/c4ai-command-r7b-12-2024-GGUF:Q6_K_L --chat-template-file
<(
python scripts/get_chat_template.py CohereForAI/c4ai-command-r7b-12-2024 tool_use
)
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Gemma 2 2B Q8_0
"
--output ../gemma2.jsonl --hf bartowski/gemma-2-2b-it-GGUF:Q8_0
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Phi 4 Instruct Q4_K_M
"
--output ../phi4.jsonl --hf bartowski/phi-4-GGUF:Q4_K_M
#
--ollama phi4
./scripts/tool_bench.py run
${ARGS[@]}
--model
"
Phi 3.5 Mini Instruct Q4_K_M
"
--output ../phi3.5.jsonl --hf bartowski/Phi-3.5-mini-instruct-GGUF:Q4_K_M
#
--ollama phi3.5:3.8b-mini-instruct-q4_K_M
#
./scripts/tool_bench.py run ${ARGS[@]} --model "DeepSeek R1 Distill Qwen 7B Q6_K_L" --output ../dsqw7.jsonl --hf bartowski/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q6_K_L --chat-template-file <( python scripts/get_chat_template.py NousResearch/DeepSeek-R1-Distill-Qwen-7B tool_use )
#
./scripts/tool_bench.py run ${ARGS[@]} --model "DeepSeek R1 Distill Qwen 32B Q4_K_M" --output ../dsqw32.jsonl --hf bartowski/DeepSeek-R1-Distill-Qwen-32B-GGUF:Q4_K_M --chat-template-file <( python scripts/get_chat_template.py NousResearch/DeepSeek-R1-Distill-Qwen-32B tool_use )
for
f
in
../
*
.jsonl
;
do
./scripts/tool_bench.py plot
"
$f
"
--output
${f
%
.jsonl}
.png
||
true
done
You can’t perform that action at this time.