Xpersona
E

EvalScope

CLAWHUB · Unverified

LLM evaluation & inference performance testing via the evalscope CLI. Translates natural language requests into evalscope commands for: (1) Model accuracy ev... Skill: EvalScope Owner: yunnglin Summary: LLM evaluation & inference performance testing via the evalscope CLI. Translates natural language requests into evalscope commands for: (1) Model accuracy ev... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-06-05T09:58:54.149Z | user - Added dedicated RAG evaluation and troubleshooting reference guides. - Expanded description: now supports RAG evaluation (RAGAS, MTEB, CLI

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1761s7z34s8x82798c1j9x6js83gzw5:skill-evalscope
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-yunnglin-skill-evalscope/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

118,948 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: evalscope
description: >-
  LLM evaluation & inference performance testing via the evalscope CLI.
  Translates natural language requests into evalscope commands for:
  (1) Model accuracy evaluation — runs 160+ benchmarks against local
  checkpoints or API endpoints (OpenAI-compatible, Anthropic, LiteLLM);
  (2) Performance stress testing — TTFT, TPOT, throughput, latency under
  configurable concurrency; (3) RAG evaluation — RAGAS quality metrics,
  MTEB embedding benchmarks, CLIP retrieval; (4) Benchmark discovery —
  list/filter/inspect benchmarks by tag. Trigger on: evaluate / benchmark /
  score a model, throughput / latency / QPS / stress test, find benchmarks,
  view results, 评测模型, 压测, 跑 benchmark, 性能测试, 查看评测结果,
  有哪些评测集, RAG 评测, embedding 评测. Do NOT trigger for: model
  training / finetuning / deployment / serving requests.
---

# EvalScope

Read only the relevant reference file for the matched workflow — don't preload all of them.

| Workflow | When | Reference |
|----------|------|-----------|
| Eval (accuracy) | evaluate / benchmark / score | [eval-reference.md](eval-reference.md) |
| Perf (stress test) | throughput / latency / QPS / perf | [perf-reference.md](perf-reference.md) |
| RAG Evaluation | RAG / embedding / retrieval quality | [rag-reference.md](rag-reference.md) |
| Visualization | view results / compare / dashboard | (below) |
| Benchmark Discovery | list / find / what benchmarks | (below) |
| Troubleshooting | errors / failures / debug | [troubleshooting.md](troubleshooting.md) |

## Prerequisites

```bash
evalscope --version            # verify installation
pip install evalscope           # basic
pip install 'evalscope[all]'   # all backends (perf, rag, service, aigc)
pip install 'evalscope[perf]'  # perf only
pip install 'evalscope[rag]'   # RAG only (RAGAS, MTEB, CLIP)
pip install 'evalscope[service]' # Web dashboard
```

## Decision Tree

- User wants **accuracy evaluation** (evaluate / benchmark / score / 评测)
  - Local checkpoint path or HuggingFace/ModelScope ID → `--model PATH` (auto `llm_ckpt`)
  - API endpoint → `--model NAME --api-url URL` (auto `openai_api`)
  - Anthropic → `--eval-type anthropic_api`
  - LiteLLM multi-provider → `--eval-type litellm --model provider/name`
  - OpenAI Responses API → `--eval-type openai_responses_api`
  - Pipeline test → `--model mock --eval-type mock_llm`
  - Image generation → `--eval-type text2image`
  - TTS → `--eval-type text2speech`
  - Image editing → `--eval-type image_editing`
- User wants **performance test** (throughput / latency / QPS / 压测)
  - → `evalscope perf` workflow
  - API types: `openai` (default), `local`, `local_vllm`, `dashscope`, `embedding`, `rerank`, `custom`
- User wants **RAG evaluation** (RAG / embedding quality / retrieval)
  - → `evalscope eval --eval-backend RAGEval` with tool config
- User wants **visualization** (view / compare / dashboard)
  - → `evalscope service`
- User wants **benchmark info** (list / find / what benchmarks / 有哪些评测集)

_meta.json

{
  "ownerId": "kn7e920fe7sv19vafj0fcxq6b182kage",
  "slug": "skill-evalscope",
  "version": "1.0.2",
  "publishedAt": 1780653534149
}

eval-reference.md

# Eval Parameter Reference

Complete parameter reference for `evalscope eval`. All parameters can also be discovered via `evalscope eval --help`.

## Model Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--model` | str | (required) | Model ID on ModelScope/HuggingFace, or local model directory path |
| `--model-id` | str | None | Custom model name for display in reports |
| `--model-args` | str | None | Model init args as JSON or `key=value,key=value` format |
| `--model-task` | str | `text_generation` | Task type: `text_generation` or `image_generation` |
| `--chat-template` | str | None | Custom Jinja2 chat template for prompt formatting |

## Dataset Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--datasets` | str (multiple) | (required) | Space-separated list of dataset names (e.g. `gsm8k arc mmlu`) |
| `--dataset-args` | JSON str | `{}` | Per-dataset configuration as JSON |
| `--dataset-dir` | str | None | Local dataset cache directory |
| `--dataset-hub` | str | None | Dataset source: `modelscope` or `huggingface` |

### Dataset Args Format

`--dataset-args` accepts a JSON string with per-dataset configuration:

```bash
--dataset-args '{
  "gsm8k": {"few_shot_num": 4, "few_shot_random": false},
  "arc": {"subset_list": ["ARC-Challenge"]},
  "ifeval": {"filters": {"remove_until": "</think>"}}
}'
```

Common per-dataset options:
- `few_shot_num`: Number of few-shot examples (overrides benchmark default)
- `few_shot_random`: Whether to randomly select few-shot examples (default: false)
- `subset_list`: List of subsets to evaluate (default: all subsets)
- `filters`: Output filters (e.g. remove thinking tokens)
- `dataset_id`: Override the default dataset source path

## Evaluation Control

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--eval-type` | str | auto | Evaluation type (see below) |
| `--eval-backend` | str | `Native` | Backend: `Native`, `OpenCompass`, `VLMEvalKit`, `RAGEval` |
| `--eval-config` | str | None | Config file path for non-Native backends |
| `--eval-batch-size` | int | 1 | Batch size for evaluation |
| `--limit` | float | None | Max samples per subset (int for count, float < 1 for fraction) |
| `--repeats` | int | 1 | Repeat dataset N times (for k-metrics calculation) |

### Eval Types

| Value | When to Use |
|-------|-------------|
| `llm_ckpt` (checkpoint) | Local model weights (auto-detected when --model is a path) |
| `openai_api` | OpenAI-compatible API endpoint (auto-detected when --api-url is set) |
| `openai_responses_api` | OpenAI Responses API (stateful conversations) |
| `anthropic_api` | Anthropic Claude API |
| `litellm` | LiteLLM multi-provider routing (100+ providers, use `provider/model` naming) |
| `mock_llm` | Pipeline testing without a real model |
| `text2image` | Image generation models |
| `text2speech` | Text-to-speech evaluation |
| `imag

examples.md

# Examples

End-to-end examples showing natural language → evalscope commands.

## Example 1: Evaluate Local Checkpoint on Math

**User**: "Evaluate Qwen2.5-7B's math reasoning ability"

**Command**:
```bash
evalscope eval \
  --model Qwen/Qwen2.5-7B-Instruct \
  --datasets gsm8k math_500 \
  --limit 10 \
  --seed 42
```

---

## Example 2: Benchmark an API Model (General)

**User**: "I deployed qwen2.5-72b at localhost:8000, run a general eval"

**Command**:
```bash
evalscope eval \
  --model qwen2.5-72b \
  --datasets mmlu gsm8k bbh humaneval ifeval \
  --api-url http://localhost:8000/v1/chat/completions \
  --api-key EMPTY \
  --limit 50
```

---

## Example 3: Concurrency Gradient Perf Test

**User**: "Run a concurrency gradient test from 1 to 32 on qwen2.5-14b at localhost:8000"

**Command**:
```bash
evalscope perf \
  --model qwen2.5-14b \
  --url http://localhost:8000/v1/chat/completions \
  --api openai \
  --dataset openqa \
  --parallel 1 2 4 8 16 32 \
  --number 50 100 200 400 800 1600 \
  --stream
```

---

## Example 4: Discover Chinese Benchmarks

**User**: "What Chinese evaluation benchmarks are available?"

**Command**:
```bash
evalscope benchmark-info --list --tag Chinese
```

**Follow-up** (details on one):
```bash
evalscope benchmark-info ceval --format markdown
```

---

## Example 5: RAG Evaluation with MTEB

**User**: "Evaluate my embedding model bge-large-zh on retrieval tasks"

**Command** (Python config):
```python
from evalscope import run_task
run_task({
    'eval_backend': 'RAGEval',
    'eval_config': {
        'tool': 'MTEB',
        'model': [{
            'model_name_or_path': 'AI-ModelScope/bge-large-zh',
            'pooling_mode': 'cls',
            'max_seq_length': 512,
            'encode_kwargs': {'batch_size': 256},
        }],
        'eval': {
            'tasks': ['T2Retrieval', 'MedicalRetrieval'],
            'overwrite_results': True,
            'top_k': 10,
        },
    },
})
```

---

## Example 6: Resume Failed Evaluation

**User**: "My eval on MMLU crashed halfway, can I continue from where it stopped?"

**Steps**:
1. Find the incomplete output directory: `ls -lt outputs/ | head -5`
2. Resume with `--use-cache`:

```bash
evalscope eval \
  --model qwen-plus \
  --datasets mmlu \
  --api-url http://localhost:8000/v1/chat/completions \
  --use-cache outputs/20250601_120000
```

Cached predictions are reused; only missing samples are re-evaluated.

---

## Example 7: Debug Connection Issue

**User**: "Perf test just says connection failed, what do I do?"

**Steps**:
1. Verify endpoint manually:
```bash
curl -s http://localhost:8000/v1/models
curl -X POST http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen-plus", "messages": [{"role": "user", "content": "hi"}]}'
```

2. If the server returns 200 but perf still fails, check model name matches exactly.

3. Run with `--debug` for verbose output:
```bash
evalscope perf --model qwen-plus \
  --url ht

perf-reference.md

# Perf Parameter Reference

Complete parameter reference for `evalscope perf`. All parameters can also be discovered via `evalscope perf --help`.

## Model and API

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--model` | str | (required) | Model name or path |
| `--api` | str | `openai` | API protocol: `openai`, `local`, `local_vllm`, `dashscope`, `embedding`, `rerank`, `custom` |
| `--url` | str | `http://127.0.0.1:8877/v1/chat/completions` | API endpoint URL |
| `--port` | int | 8877 | Port for local inference server |
| `--api-key` | str | None | API authentication key |
| `--tokenizer-path` | str | None | Tokenizer path for accurate token counting |
| `--attn-implementation` | str | None | Attention implementation (local inference only) |

### API Types

| Value | Use Case |
|-------|----------|
| `openai` | OpenAI-compatible API endpoints (default) |
| `local` | Auto-start local inference server using the model |
| `local_vllm` | Auto-start local vLLM inference server |
| `dashscope` | Alibaba Cloud DashScope API |
| `embedding` | OpenAI-compatible embedding API |
| `rerank` | OpenAI-compatible reranking API |
| `custom` | Custom API implementation |

## Connection Settings

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--headers` | key=value pairs | None | Extra HTTP headers (e.g. `--headers key1=val1 key2=val2`) |
| `--connect-timeout` | int | None | Network connection timeout (seconds) |
| `--read-timeout` | int | None | Network read timeout (seconds) |
| `--total-timeout` | int | 21600 | Total request timeout in seconds (default: 6 hours) |
| `--no-test-connection` | flag | false | Skip connection test before starting benchmark |

## Concurrency and Load

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--parallel` | int (multiple) | 1 | Number of concurrent requests. Supports multiple values for gradient tests |
| `-n, --number` | int (multiple) | 1000 | Total number of requests. Must match `--parallel` count |
| `--rate` | float | -1 | Requests per second limit (-1 = unlimited) |
| `--sleep-interval` | int | 5 | Sleep seconds between consecutive perf runs |

**Important**: When providing multiple values for `--parallel` and `--number`, they are paired positionally:
```bash
# Run 3 tests: (parallel=1, n=100), (parallel=5, n=500), (parallel=10, n=1000)
--parallel 1 5 10 --number 100 500 1000
```

## SLA Auto-Tuning

Automatically find the maximum concurrency or rate that satisfies SLA constraints.

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--sla-auto-tune` | flag | false | Enable SLA auto-tuning |
| `--sla-variable` | str | `parallel` | Variable to tune: `parallel` or `rate` |
| `--sla-params` | JSON str | None | SLA constraints as JSON array |
| `--sla-num-runs` | int | 3 | Runs to average per configuration |
| `--sla-upper-bound` | int | 65536 | Upp

Sponsored

Ads related to EvalScope and adjacent AI workflows.