用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arm2arm/AstroAgentAssistant --skill llm-benchmarking命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
S3/MinIO operations: connectivity, transfers, read benchmarks, and matplotlib visualization templates.
Complete guide to the REANA reproducible analytics platform: Dockerized client setup, multi-backend profiles, workflow authoring patterns, S3 dataset workflows, and best practices. Covers dev/prod backends, serial workflows, REANA_WORKSPACE usage, and self-learning from finished workflows.
Complete guide to working with Arepo simulation HDF5 files: structure inspection, unit conversion, radial profiles, slice projections, and dimensionality reduction (UMAP/t-SNE) for clustering analysis.
正在显示 SKILL.md
| name | llm-benchmarking |
| description | Systematic LLM benchmarking on AgentBench, DBBench, and other standardized evaluations |
| triggers | ["benchmark model","agentbench","dbbench","compare models","evaluate llm","performance test"] |
Systematic evaluation of LLMs on standardized benchmarks (AgentBench, DBBench, etc.) using local Ollama or API endpoints.
1. Official Framework (Docker-based)
cd /tmp/AgentBench
docker compose -f extra/docker-compose.yml up
python -m src.assigner --config configs/assignments/default.yaml
2. Direct API (Recommended for local testing)
# Single-task benchmark
cd /tmp && ~/.hermes/hermes-agent/venv/bin/python agentbench_ollama_llama32.py
# Or inline script (see templates/)
| Model | DBBench | KG | OS | LTP | Overall | Speed |
|---|---|---|---|---|---|---|
| llama3.2:3b | 96-100% | 100% | 100% | 100% | 98% | 1.5-10s |
| qwen3.6:latest | 3% | - | - | - | ~3% | 28s |
| deepseek-r1:70b | - | - | - | - | N/A | 27s |
| aip-best (API) | 20% | 0% | 3.8% | - | 12% | 2.5s |
Key Finding: llama3.2:3b is optimal for local AgentBench workloads - 100x faster than 70B models with near-perfect accuracy on SQL/reasoning tasks.
⚠️ Endpoint variability: The same model (aip-best) can show 93% SQL rate on
litellm.kube.aip.debut only 29% on141.33.165.84:8000. Always verify with a 10-sample smoke test. Seereferences/benchmark-baselines.mdfor full comparison and robust runner template with checkpointing.
SQL Extraction (DBBench):
def extract_sql(content):
if not content: return None
if "```sql" in content:
return content.split("```sql")[1].split("```")[0].strip()
elif "```" in content:
return content.split("```")[1].split("```")[0].strip()
return None
Command Extraction (OS):
def extract_cmd(content):
if not content: return None
if "```bash" in content:
return content.split("```bash")[1].split("```")[0].strip()
elif "```" in content:
return content.split("```")[1].split("```")[0].strip()
return None
Ollama API Call:
payload = {
"model": "llama3.2:3b",
"messages": [
{"role": "system", "content": "Output ONLY SQL in ```sql code block."},
{"role": "user", "content": user_prompt}
],
"stream": False,
"max_tokens": 512
}
resp = requests.post("http://localhost:11434/api/chat", json=payload, timeout=120)
['story', 'answer', 'Story keys', 'Answer keys']['question', 'clue'] as some docs suggestpd.read_excel().columns.tolist()llama3.2:3b: 1.9GB (runs on 46GB available RAM)qwen3.6:latest: 22.3GB (causes VRAM errors with 5 workers)deepseek-r1:70b: 50.5GB (exceeds available 46GB)aip-best API (http://141.33.165.84:8000/v1): Use current endpoint aboveThe same model (aip-best/Qwen3.6-35B) can show dramatically different SQL rates across endpoints:
| Endpoint | SQL Rate | Avg Time | Verdict |
|---|---|---|---|
| litellm.kube.aip.de | 93.3% | 5.3s | ✅ Good |
| 141.33.165.84:8000 (Q5_K) | 29.3% | 14.5s | ❌ Degraded |
Root cause is likely different quantization (Q5_K vs Q4_K), temperature settings, or system prompt handling. Always run a 10-sample smoke test before committing to a full 300-sample benchmark. See references/benchmark-baselines.md for the full runner template with checkpointing.
from inspect_ai.model import get_model (NOT from inspect_ai import get_model)generate() is async — always await model.generate(...), not syncresult.choices[0].message.content, NOT result.generations[0].textuv pip install --upgrade openai~/.hermes/hermes-agent/venv/ has python but no pip — use uv pip install insteadmessage.content is null — output is in message.reasoning (chain-of-thought, 10k+ chars)max_tokens >= 8192 — smaller budgets truncate reasoning before answerAnswer: marker → Therefore/Thus → last brackets → last paragraphreferences/gaia-benchmark.md for full parser and prompt templatesscripts/gaia_full_benchmark_runner.py for a ready-to-run GAIA benchmark with built-in reasoning parser, progress saving, and auto-plots"1", "2", "3"), NOT integers (1, 2, 3)dataset[i]["Level"] == 1 returns 0 samples — silent failure, no crashdataset[i]["Level"] == "1"sorted(set(s["Level"] for s in dataset)) returns ['1', '2', '3']--model-base-url (NOT --base-url)--api-key flag — set OPENAI_API_KEY env var or use --env OPENAI_API_KEY=xxxinspect_evals/gaia requires Docker sandboxes for tool execution (bash/python/web_browser)uv run --extra gaia only works inside a uv project; from /tmp use venv directly:
~/.hermes/hermes-agent/venv/bin/python -m inspect_evals.gaia ...inspect eval inspect_evals/gaia_level1 --model openai/aip-best runs with a built-in react agentscripts/gaia_benchmark_runner.py for text-only mode with reasoning parser| Task | Data File | Samples | Description |
|---|---|---|---|
| dbbench | dbbench/standard.jsonl | 100 | SQL query generation |
| knowledgegraph | knowledgegraph/std.json | 50 | Multi-hop reasoning |
| os_interaction | os_interaction/data/dev.json | 26 | Linux command generation |
| lateralthinkingpuzzle | lateralthinkingpuzzle/standard.xlsx | 30 | Puzzle solving |
| alfworld | alfworld/standard.json | 20 | Household task planning |
| avalon | avalon/ | 20 | Social deduction game |
# Run full benchmark suite (all 4 tasks)
cd /tmp && ~/.hermes/hermes-agent/venv/bin/python agentbench_ollama_llama32.py
# Run single task (DBBench)
cd /tmp && ~/.hermes/hermes-agent/venv/bin/python final_verify_dbbench.py
# Check Ollama status
curl -s http://localhost:11434/api/tags | python3 -m json.tool
# Test single prompt
curl -s -X POST "http://localhost:11434/api/chat" \
-H "Content-Type: application/json" \
-d '{"model": "llama3.2:3b", "messages": [{"role": "user", "content": "test"}], "stream": false}'
/tmp/agentbench_ollama_llama32/dbbench.json, knowledgegraph.json, os_interaction.json, lateralthinking.jsonastro-llm-research: Domain-specific LLM workflows for astronomyhermes-agent: Ollama configuration and model managementml-simulation-patterns: Reproducible ML evaluation patterns