tolitius/cupel
Acerca de
discover LLMs punching above their weight
IA y aprendizaje automáticoCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalcupel 
separates precious LLMs from base LLMs
score local and cloud LLMs with custom prompts and a configurable judge

a cupel is the small dish used in a fire assay to separate precious metal from base metal
install
curl -fsSL https://cupel.run/install | bash
or
pip install cupel
the UI is bundled in the package
quick start
cupel
opens a browser at localhost:8042

ships with example data (8 models scored by Claude Opus 4.6 on 8 prompts) — the dashboard is populated on first launch
- LLM-assisted authoring — describe what you want to test, an LLM drafts the prompt and 0–3 rubric
- local + cloud — oMLX, Ollama, LM Studio, SGLang, OpenRouter, Anthropic, OpenAI
- configurable judge — any model can score responses on a 0–3 rubric with reasoning
- thinking model support — separates
<think>blocks from answers, only judges the response - multi-turn + tool calling — multi-step conversations with injected tool results
- speed tracking — tok/s and response times per model
- auto-discovery — probes known ports for local inference servers
leaderboard
leaderboard with score vs. speed, overall accuracy, and per-category breakdowns


score models
select models from discovered providers, filter by prompt category, choose a judge model, and start the run

progress updates via SSE as each prompt completes

author prompts
describe what to test, select a category and difficulty — an LLM generates the title, prompt text, and 0–3 rubric. edit before saving

results
each run is saved as JSON with the model, judge, timestamp, and per-prompt scores with judge reasoning
results can be sorted, tagged, muted and expanded to inspect individual evaluations

publish
with a publish block in ~/.cupel/config.yml (see config.example.yml), the dashboard shows a Publish button that turns the current board into a read-only public leaderboard at cupel.run/bench
publish:
repo: ~/src/cupel # a cupel checkout whose site/ deploys to cupel.run
handle: your-handle
- Publish builds a sanitized snapshot, validates it, and shows a preview. "Commit to repo" writes
site/bench/bench.jsonand makes one commit touching only that file - nothing is pushed: review with
git -C <repo> show --stat HEAD, thengit -C <repo> push. once pushed it is public in git history for good - the page starts in your current view (
text, metric, chart, sort).textand the criteria metric stay live for viewers;localandnotesare frozen at what you had, and sample models are never published - one board, one eval set: runs from older cupel versions are matched to an eval set in
~/.cupel/eval-sets/by their prompts, the set with the most runs is published, and the preview lists what was left out (muted, other eval sets, unidentifiable runs)
what the snapshot contains, and nothing else: model names, judge model, hardware name and memory (cloud rows show only OpenRouter, Anthropic, OpenAI or remote), scores, intervals, ranks, speed, and per prompt only its id, category and score.
no prompt text, titles, responses, thinking, judge reasoning, file names, paths, URLs or hardware specs. every publish is scanned for those before anything is written
what it does reveal, by design:
- prompt ids and categories show the eval set's shape: how many prompts per category, and which prompts every model fails
- the eval set's hash is published; if it is the public starter set, the hash says so
- model names, the judge, hardware names, and your run notes (only with the
notestoggle on, and never when a note is just the eval set's name) are published verbatim
judge
set a default judge in UI settings or in config.yml:
judge:
model: claude-opus-4-6
scores are 0–3:
| score | meaning |
|---|---|
| 3 | correct and insightful |
| 2 | correct but shallow |
| 1 | partially correct |
| 0 | wrong or hallucinated |
prompt format
{
"id": 14,
"category": "math_estimation",
"title": "Model Memory from Quantization",
"prompt": "A model has 70B parameters. Estimate memory for FP16, 8-bit, and 4-bit.",
"rubric": {
"3": "FP16: ~140GB, 8-bit: ~70GB, 4-bit: ~35GB. Shows the math.",
"2": "Correct for 2 of 3, or all correct but no explanation.",
"1": "Gets the direction right but wrong numbers.",
"0": "Wrong math or doesn't understand quantization."
}
}
multi-turn prompts
for tool calling and conversations, use turns instead of prompt:
{
"id": 21,
"title": "Tool Calling — School Status Check",
"turns": [
{
"messages": [
{"role": "system", "content": "You have tools: get_grades(name), ..."},
{"role": "user", "content": "How are both kids doing?"}
]
},
{
"inject_after": [
{"role": "user", "content": "Tool results: get_grades(\"phoebe\") => ..."}
]
}
],
"rubric": { "3": "Emits correct tool calls, synthesizes results...", "..." : "..." }
}
thinking models
cupel handles <think> blocks automatically — separates thinking from the answer, only judges the response:
thinking: null # model default (recommended)
thinking: 0 # disable
thinking: 4096 # explicit budget
providers
cloud providers can be added from presets (Anthropic, OpenRouter, OpenAI) or as custom endpoints. the settings page fetches model lists from a provider's API (includes per-token pricing for OpenRouter), validates API keys, and tests connections

cupel auto-discovers local servers on known ports:
| port | server |
|---|---|
| 8000 | oMLX / vLLM |
| 11434 | Ollama |
| 1234 | LM Studio |
| 30000 | SGLang |
| 8080 | llama.cpp |
API keys
each provider gets its own env var. put them in .env or ~/.cupel/.env:
OMLX_API_KEY=4242
ANTHROPIC_API_KEY=sk-ant-...
OPENROUTER_API_KEY=sk-or-...
OPENAI_API_KEY=sk-proj-...
or configure in config.yml:
providers:
- name: openrouter
api_url: https://openrouter.ai/api/v1/chat/completions
api_key_env: OPENROUTER_API_KEY
models: [google/gemini-2.5-pro, deepseek/deepseek-r1]
- name: anthropic
api_url: https://api.anthropic.com/v1/messages
api_key_env: ANTHROPIC_API_KEY
models: [claude-opus-4-6, claude-sonnet-4-6]
CLI
cupel # open dashboard
cupel run # collect responses
cupel run --models "Qwen3.5-27B-8bit" # specific model
cupel run --prompts 18-22 # specific prompts
cupel judge eval-results/*.json # score with judge
cupel judge eval-results/*.json --judge-model gemma-4-26b-a4b-it-4bit
cupel init # create config.yml + eval-set
development
git clone https://github.com/tolitius/cupel.git && cd cupel
pip install -e .
uvicorn cupel.server:app --reload --port 8042
vanilla JS frontend (Preact + HTM from CDN). no build step.
license
Copyright © 2026 tolitius
Distributed under the Apache 2.0 License.
Explorar proyectos relacionados
Cargando…