Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
13
21
task_family
stringclasses
2 values
scale
stringclasses
4 values
target_tokens
int64
1.02k
115k
expected_prompt_tokens
int64
1.02k
115k
tokenizer
stringclasses
2 values
template_overhead
int64
52
52
prompt
stringlengths
3.7k
548k
messages
listlengths
1
1
source_dataset
stringclasses
2 values
source_id
stringclasses
20 values
canonical_solution
stringclasses
10 values
construction
stringclasses
7 values
primary_task
stringclasses
1 value
answer
listlengths
3
3
⌀
code-00000-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CONTEXT> (catalog) delivery # report callback, we recommend using a bound callback or lambda where you pass # the objects along. # """ # if err is not None: # self.log.error(f"Delivery failed for User record {msg.key()}: {err}") # return # s...
[ { "role": "user", "content": "<CODE_CONTEXT>\n(catalog)\n delivery\n# report callback, we recommend using a bound callback or lambda where you pass\n# the objects along.\n# \"\"\"\n# if err is not None:\n# self.log.error(f\"Delivery failed for User record ...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/35
m = l[0] for e in l: if e > m: m = e return m
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00001-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON or lambda where you pass # the objects along. # """ # if err is not None: # self.log.error(f"Delivery failed for User record {msg.key()}: {err}") # return # self.log.info( # f"Record {msg.key()} successfully produced to {msg.topic()} [{ms...
[ { "role": "user", "content": "<CODE_CON or lambda where you pass\n# the objects along.\n# \"\"\"\n# if err is not None:\n# self.log.error(f\"Delivery failed for User record {msg.key()}: {err}\")\n# return\n# self.log.info(\n# f\"Record ...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/31
if n < 2: return False for k in range(2, n - 1): if n % k == 0: return False return True
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00002-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON is not None: # self.log.error(f"Delivery failed for User record {msg.key()}: {err}") # return # self.log.info( # f"Record {msg.key()} successfully produced to {msg.topic()} [{msg.partition()}] at offset {msg.offset()}" # ) # FILE: src/argus_rico/efte/proc...
[ { "role": "user", "content": "<CODE_CON is not None:\n# self.log.error(f\"Delivery failed for User record {msg.key()}: {err}\")\n# return\n# self.log.info(\n# f\"Record {msg.key()} successfully produced to {msg.topic()} [{msg.partition()}] at offset {msg.offset()}...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/3
balance = 0 for op in operations: balance += op if balance < 0: return True return False
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00003-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON we recommend using a bound callback or lambda where you pass # the objects along. # """ # if err is not None: # self.log.error(f"Delivery failed for User record {msg.key()}: {err}") # return # self.log.info( # f"Record {msg.key()} success...
[ { "role": "user", "content": "<CODE_CON we recommend using a bound callback or lambda where you pass\n# the objects along.\n# \"\"\"\n# if err is not None:\n# self.log.error(f\"Delivery failed for User record {msg.key()}: {err}\")\n# return\n# self...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/7
return [x for x in strings if substring in x]
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00004-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON recommend using a bound callback or lambda where you pass # the objects along. # """ # if err is not None: # self.log.error(f"Delivery failed for User record {msg.key()}: {err}") # return # self.log.info( # f"Record {msg.key()} successful...
[ { "role": "user", "content": "<CODE_CON recommend using a bound callback or lambda where you pass\n# the objects along.\n# \"\"\"\n# if err is not None:\n# self.log.error(f\"Delivery failed for User record {msg.key()}: {err}\")\n# return\n# self.lo...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/22
return [x for x in values if isinstance(x, int)]
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00005-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON {err}") # return # self.log.info( # f"Record {msg.key()} successfully produced to {msg.topic()} [{msg.partition()}] at offset {msg.offset()}" # ) # FILE: src/argus_rico/efte/processor.py """Ray-parallelizable EFTE catalog reducer.""" import os import astropy.table a...
[ { "role": "user", "content": "<CODE_CON {err}\")\n# return\n# self.log.info(\n# f\"Record {msg.key()} successfully produced to {msg.topic()} [{msg.partition()}] at offset {msg.offset()}\"\n# )\n\n\n\n# FILE: src/argus_rico/efte/processor.py\n\"\"\"Ray-parallelizable E...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/79
return "db" + bin(decimal)[2:] + "db"
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00006-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CONTEXT> _, _] = packet # the below code fragment can be found in: # src/argus_rico/efte/db.py # filename = [catalog.meta["FILENAME"]] * len(catalog) back, we recommend using a bound callback or lambda where you pass # the objects along. # """ # if err is not None: # s...
[ { "role": "user", "content": "<CODE_CONTEXT>\n_, _] = packet\n\n# the below code fragment can be found in:\n# src/argus_rico/efte/db.py\n# filename = [catalog.meta[\"FILENAME\"]] * len(catalog)\nback, we recommend using a bound callback or lambda where you pass\n# the objects along.\n# ...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/45
return a * h / 2.0
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00007-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CONition()}] at offset {msg.offset()}" # ) # FILE: src/argus_rico/efte/processor.py """Ray-parallelizable EFTE catalog reducer.""" import os import astropy.table as tbl import ray from .. import catalogs, get_logger, utils from .stream import EFTEAlertStreamer from .vetnet import VetNet @ray.remote...
[ { "role": "user", "content": "<CODE_CONition()}] at offset {msg.offset()}\"\n# )\n\n\n\n# FILE: src/argus_rico/efte/processor.py\n\"\"\"Ray-parallelizable EFTE catalog reducer.\"\"\"\nimport os\n\nimport astropy.table as tbl\nimport ray\n\nfrom .. import catalogs, get_logger, utils\nfrom .stream imp...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/17
note_map = {'o': 4, 'o|': 2, '.|': 1} return [note_map[x] for x in music_string.split(' ') if x]
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00008-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON we recommend using a bound callback or lambda where you pass # the objects along. # """ # if err is not None: # self.log.error(f"Delivery failed for User record {msg.key()}: {err}") # return # self.log.info( # f"Record {msg.key()} success...
[ { "role": "user", "content": "<CODE_CON we recommend using a bound callback or lambda where you pass\n# the objects along.\n# \"\"\"\n# if err is not None:\n# self.log.error(f\"Delivery failed for User record {msg.key()}: {err}\")\n# return\n# self...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/56
depth = 0 for b in brackets: if b == "<": depth += 1 else: depth -= 1 if depth < 0: return False return depth == 0
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
code-00009-1k
code
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
<CODE_CON [{msg.partition()}] at offset {msg.offset()}" # ) # FILE: src/argus_rico/efte/processor.py """Ray-parallelizable EFTE catalog reducer.""" import os import astropy.table as tbl import ray from .. import catalogs, get_logger, utils from .stream import EFTEAlertStreamer from .vetnet import VetNet ...
[ { "role": "user", "content": "<CODE_CON [{msg.partition()}] at offset {msg.offset()}\"\n# )\n\n\n\n# FILE: src/argus_rico/efte/processor.py\n\"\"\"Ray-parallelizable EFTE catalog reducer.\"\"\"\nimport os\n\nimport astropy.table as tbl\nimport ray\n\nfrom .. import catalogs, get_logger, utils\nfrom ...
openai/openai_humaneval + Vincentvmt/CrossCodeEval (context)
HumanEval/20
closest_pair = None distance = None for idx, elem in enumerate(numbers): for idx2, elem2 in enumerate(numbers): if idx != idx2: if distance is None: distance = abs(elem - elem2) closest_pair = tuple(sorted([elem, elem2])) ...
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
null
null
general_qa-00000-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. thatyou go to. You’ll be Cleopatra most of the time, I expect.” “I won’t be a famous person,” said Tuppence. “I’ll be someone like a kit-chenmaid at Anne of Cleves’ castle retailing32 a lot of spicy33 gossip that I’dheard.” The door opened, and Miss Packard appeared in ...
[ { "role": "user", "content": "Answer the question using the document context.\n\n thatyou go to. You’ll be Cleopatra most of the time, I expect.”\n“I won’t be a famous person,” said Tuppence. “I’ll be someone like a kit-chenmaid at Anne of Cleves’ castle retailing32 a lot of spicy33 gossip that I’dheard.”\n...
caskcsg/LongBench-Pro
7d6706a4b8dd1bf9aeb41e56d897f8dfb334502c65bfe1a425df4d7aa73e6be0
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "In Chapter 2 of BY THE PRICKING OF MY THUMBS, Tommy and Tuppence leave home to visit Tommy’s aunt Ada at Sunny Ridge nursing home. They meet Marlene (a harassed maid), Miss Packard (the calm director), Mrs. Carraway (who swallows a thimble for fun), Mrs. Moody (who shrillily demands cocoa), and Mrs. Lancaster (a w...
general_qa-00001-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. Not that place. God, oh God. Please, no!?He was trembling, snot and tears mixing on his face. "Shhh.?I pulled him close, wrapped my arms around his shaking little body. "Shhh. It'll be all right. We'll go Home together. You'll see, it'll be all right.? His voice was m...
[ { "role": "user", "content": "Answer the question using the document context.\n\n Not that place. God, oh God. Please, no!?He was trembling, snot and tears mixing on his face.\n\n\"Shhh.?I pulled him close, wrapped my arms around his shaking little body. \"Shhh. It'll be all right. We'll go Home together. Y...
caskcsg/LongBench-Pro
8d6f2bfb4cbdd1bc652b13052d953b57cc76daeb50fe780679dae5930cec1380
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "Baba and Amir struggle to adapt to life in Fremont, California. Baba, disillusioned by America despite his initial admiration, works long hours at a gas station and clashes with cultural differences, exemplified by an altercation at a grocery store over ID verification. Amir graduates high school, and Baba celebra...
general_qa-00002-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. lasted a long time, and we became intimate friends, she and I, when she understood what a profound sympathy she had aroused in my heart. She had taken two thimblefuls of wine, as the phrase goes, and had grown more confiding and expansive. "Come, let us look at the moon...
[ { "role": "user", "content": "Answer the question using the document context.\n\n lasted a long time, and we became intimate friends, she and I, when she understood what a profound sympathy she had aroused in my heart. She had taken two thimblefuls of wine, as the phrase goes, and had grown more confiding a...
caskcsg/LongBench-Pro
0cbe8eed4a4bcef959f60767bc4cb4d7655dbf82b07bc0d65dc3aeea193e4c0a
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "In《An Affair of State》, after seizing power, Dr. Massarel held an absurd victory celebration. He first raise a white flag as a political banner, then took out Napoleon’s bust to shoot at the bust of Napoleon repeatedly, and fiercely shout loudly 'Tyrants must perish'. However, all his exaggerated actions only met ...
general_qa-00003-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. a little before he answered. “You pain me very much by speaking in this way, Vincy. I do not expect you to understand my grounds of action—it is not an easy thing even to thread a path for principles in the intricacies of the world—still less to make the thread clear fo...
[ { "role": "user", "content": "Answer the question using the document context.\n\n a little before he answered. “You pain me very much by speaking in this way, Vincy. I do not expect you to understand my grounds of action—it is not an easy thing even to thread a path for principles in the intricacies of the ...
caskcsg/LongBench-Pro
26ba23575cb5668fd15ae892b36a3966a0c01edb215f144f6b97422bedd92241
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "The initial chapters of Middlemarch introduce Dorothea Brooke, a young woman whose earnest idealism and intellectual leanings set her apart from her conventional sister, Celia, and their amiable but superficial uncle, Mr. Brooke. Dorothea, rejecting local suitor Sir James Chettam, becomes engaged to the older, ren...
general_qa-00004-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. the thermometer. If one could divorce Edison from the idea of work, and could regard him separate and apart from his embodiment as an inventor and man of science, it might truly be asserted that his temperament is essentially mercurial. Often he is in the highest spir...
[ { "role": "user", "content": "Answer the question using the document context.\n\n the thermometer.\n \nIf one could divorce Edison from the idea of work, and could regard him separate and apart from his embodiment as an inventor and man of science, it might truly be asserted that his temperament is essentia...
caskcsg/LongBench-Pro
2f8311cb2f9528df17f3e645c543777b19bda31ac3fc02f05fa7eb4f556fe35f
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "Spring 1985: Macintosh's poor sales deepened Jobs-Sculley rift. Jobs’ coup attempt was foiled when Sculley, alerted by Gassée, returned for a Sculley confrontation. With exec support, the board decision stripped Jobs of Macintosh division duties. He considered AppleLabs proposal, Wozniak departed, Jobs resigned to...
general_qa-00005-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. used by generations of North Korean leaders By Jessie Yeung , Gawon Bae , Yoonjung Seo Updated Sep 2, 2025 Photo released by North Korea’s state agency shows North Korean leader Kim Jong Un traveling by armored train to Beijing on September 1 to attend China’s milita...
[ { "role": "user", "content": "Answer the question using the document context.\n\n used by generations of North Korean leaders\nBy\nJessie Yeung\n,\nGawon Bae\n,\nYoonjung Seo\nUpdated Sep 2, 2025\n\n\n\nPhoto released by North Korea’s state agency shows North Korean leader Kim Jong Un traveling by armored t...
caskcsg/LongBench-Pro
ce5933fe53aa4cdaa6e64c025af0fe8011a180c274f3a0c8d545c2472bfc9dc3
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "The Trump administration escalated tariffs on Indian imports to 50%, citing India's purchase of Russian oil to pressure Moscow over the Ukraine war and encourage domestic manufacturing. Apple received exemptions for smartphones and semiconductors by committing to US consumers, though CEO Tim Cook reported a $1.1 b...
general_qa-00006-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. stood on our course leaving the natives to bewail the visit of civilized people to their uncivilized shores. Passed the Tonga Islands on Novr. 16th and on the 18th saw Turtle Island, the southernmost of the Fegee Group. We passed through the passages between the island...
[ { "role": "user", "content": "Answer the question using the document context.\n\n stood on our course leaving the natives to bewail the visit of civilized people to their uncivilized shores.\n\nPassed the Tonga Islands on Novr. 16th and on the 18th saw Turtle Island, the southernmost of the Fegee Group. We ...
caskcsg/LongBench-Pro
d7166fb63c22364be97f72c1282ab0b4119ec64dd3ac6ca7d32ca3f6484aa342
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "In 1829, William Endicott served as third officer on the Glide, a ship built by Joseph Peabody and commanded by Henry Archer, departing Salem for the South Pacific to procure beche-le-mer and other goods. The voyage included stops at New Zealand and Tonga for supplies, before reaching the Fiji Islands. They traded...
general_qa-00007-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. , well - structured , and mostly free of errors . The information is presented smoothly and cohesively . 16 - 5: Excellent . The summary is highly polished , with virtually no errors . It flows naturally , is easy to read , and effectively communicates the key informati...
[ { "role": "user", "content": "Answer the question using the document context.\n\n , well - structured , and mostly free of errors . The information is presented smoothly and cohesively . 16 - 5: Excellent . The summary is highly polished , with virtually no errors . It flows naturally , is easy to read , an...
caskcsg/LongBench-Pro
4dcf89a866d719579e1cf1158186c32143381f904baa2bc4084517991e59d270
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "CASESUMM is a novel large-scale dataset for long-context summarization, comprising 25.6K U.S. Supreme Court opinions and their official summaries (syllabuses) dating back to 1815. The paper conducts a comprehensive evaluation of LLM-generated summaries using both automatic metrics (like ROUGE, BERTScore) and human...
general_qa-00008-1k
general_qa
1k
1,024
1,024
local-o200k (openai/gpt-oss-120b)
52
Answer the question using the document context. . . . today. . . . I found out that you were in this hotel, and have come to you." "Very glad to see you," I say, shrugging my shoulders, "but I am surprised. You seem to have dropped from the skies. What have you come for?" "Oh . . . I've simply come." Silence. Suddenl...
[ { "role": "user", "content": "Answer the question using the document context.\n\n . . . today. . . . I found out that you were in this hotel, and have come to you.\"\n\"Very glad to see you,\" I say, shrugging my shoulders, \"but I am surprised. You seem to have dropped from the skies. What have you come fo...
caskcsg/LongBench-Pro
4c06bdd9c563bca46314fa04fd3f911a9debb2a86aa4a0da2b25ef760736923f
null
1K tier derived from the paired 4K sample: context/document front-trimmed to fit 972 raw tokens, task/question kept verbatim
T4. Summarization & Synthesis
[ "Joan Lackland blows into Berande in a gale—seaboots, BadenPowell hat, longbarrelled Colt’s—and immediately runs the household like a ship: she burns the pestilent hospital, retrains the cook, reorganizes food supplies, dynamites fish, shipwreck to stewardship and imposes a cleaner, safer regime. She buys the wreck...
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

speed-bench — Long-Context Inference Benchmarking Toolkit

A reproducible benchmark package for cold prefill and decode speed on the llama.cpp /v1/chat/completions endpoint. It includes the benchmark scripts, fixed prompt datasets, and measured results.

Contents

bench.py                     Benchmark runner (fixed-length sweep / dataset replay)
report.py                    Combine results/*.json into a standard report (see below)
prompts/prompt_<L>.txt       Fixed prompt datasets: 1024 / 4096 / 65536 / 131072 tokens
datasets/                    Real-world benchmark dataset: 2 families x 3 tiers x 10 = 60 samples
  all_samples.jsonl          All 60 samples
  code_samples.jsonl         30 code samples
  general_qa_samples.jsonl   30 general QA samples
  1k_samples.jsonl           20 samples in the 1K tier
results/bench_53_211.json    Raw measured results (complete per-request timings)
config.json                  Full deployment details (quantization, n_ctx, sampling parameters, server fingerprint)

Usage

python bench.py http://HOST:PORT MODEL results/out.json \
       --lengths 1024,4096,65536,131072 --runs 2

The benchmark uses only the Python standard library (transformers is required for --rebuild-prompts). It processes lengths in the order given by --lengths, runs each tier --runs times, and writes the results to JSON after every run so an interruption does not lose completed data.

Metric definitions

Use these settings when reproducing the measurements:

Item Setting Reason
Rate source Server-reported timings (prompt_per_second / predicted_per_second) Client timing includes network and queueing overhead
cache_prompt false A cache hit makes prefill appear close to zero and produces misleading results
temperature 0 Reduces decode-side variation
max_tokens 256 Keeps the setting consistent across tiers for comparable decode rates
Reasoning mode enable_thinking: false + reasoning_effort: low Otherwise reasoning can consume the output and make decode lengths incomparable
Streaming stream: true + stream_options.include_usage Required to collect TTFT and usage

TTFT is measured by the client as the time until the first SSE event containing content. All other metrics are reported by the server.

Report format

python report.py results/bench_32_165_1k.json results/bench_32_165_4k.json ... --out report.md

The report contains one row for each (Dataset × Context) pair. Values are averaged across all samples in that tier. Failed requests are excluded from the averages and counted separately (--out writes the Markdown report to disk).

Dataset Context Input Tokens Output Tokens Prefill (tok/s) TTFT (s) Decode (tok/s) E2E Latency (s)
code 1k 1039 246 431.6 2.65 16.5 17.35
code 4k 3847 243 460.4 9.06 15.0 24.94
general_qa 1k 1039 221 463.2 2.59 16.4 15.79
general_qa 4k 3978 243 496.4 8.31 15.0 24.22

Dataset mode: datasets/

The benchmark uses real-world text as input, which better represents practical workloads than synthetic repeated text. The dataset contains 2 families × 3 tiers × 10 samples = 60 samples:

File Contents
all_samples.jsonl All 60 samples, each with a task_family field
code_samples.jsonl 30 code samples (HumanEval tasks with CrossCodeEval code blocks as context)
general_qa_samples.jsonl 30 long-document QA and summarization samples from LongBench-Pro
File Family 1k 4k 64k 128k
all_samples.jsonl / family-specific files code — 10 10 10
general_qa — 10 10 10
1k_samples.jsonl code 10 — — —
general_qa 10 — — —

The 1K tier is an additional tier derived in advance from the paired 4K tasks. Only the context between the anchor points is trimmed; the <CURRENT_TASK> block and the original question remain unchanged. As a result, the tokenizer field is local-o200k (openai/gpt-oss-120b), while the original 60 samples use server-tokenizer. The construction field in both sets documents their origin.

Fields in each record:

  • messages — A chat payload that can be sent directly; the benchmark uses it as-is rather than rebuilding it.
  • expected_prompt_tokens — The expected prompt token count calibrated with the tokenizer of the measured server (4k → 4096, 64k → 65536/65535, 128k → 114687/114688). prompt_tokens_delta in the results is the measured value minus this expectation and checks that the requested tier was sent correctly.
  • template_overhead — 52 tokens for the chat template, already included above.
  • target_tokens / scale / task_family / source_dataset / source_id
  • canonical_solution (code) / answer (QA) — Reference answers for spot checks only; they do not affect benchmarking.

The target for the 128K tier is 114,688 tokens (112 × 1024), not the commonly cited 131072. Do not mix the two values.

# Run the full 4K tier with four concurrent requests
python bench.py http://HOST:PORT default results/out.json \
  --dataset datasets/all_samples.jsonl --scale 4k --concurrency 4

# Run only the code family, limited to five samples
python bench.py http://HOST:PORT default results/out.json \
  --dataset datasets/code_samples.jsonl --limit 5

Each result JSON record includes id / task_family / scale / target_tokens / expected_prompt_tokens. After the run, the benchmark prints an aggregate table by tier with mean prefill tok/s, decode tok/s, TTFT, total time, and error count.

Prompt datasets

Each prompts/prompt_<L>.txt file repeats the FILLER paragraphs until the target token count and then appends the same question. The files are calibrated with the o200k-harmony vocabulary used by the measured llama.cpp service for the gpt-oss model family:

File Target Actual tokens Characters
prompt_1024.txt 1024 977 5,087
prompt_4096.txt 4096 4,057 21,159
prompt_65536.txt 65536 65,437 341,451
prompt_131072.txt 130,816 (leaving room for 256 output tokens) 130,667 681,833

The token counts in the table are for the plain text under the o200k vocabulary. The server-reported prompt_tokens also includes chat-template overhead (about 60–70 tokens for the Harmony template), so values such as 1044 and 4100 in the results are expected.

Why use fixed files: If every user builds the prompt locally with a different tokenizer, “64K” does not represent the same input across services and the measured rates are not comparable. Sending the fixed files ensures that everyone sends identical text.

Using a different vocabulary family: The actual token count may shift by a few percent (for example, another vocabulary may count the same 64K prompt as 68K). If needed, run python bench.py --rebuild-prompts <hf-tokenizer-id-or-local-path> to regenerate the files and state the tokenizer used in the report.

Relation to results/: results/bench_53_211.json was measured with prompts calibrated using the server tokenizer. Compared with the files shipped in this package, its token counts differ by about 0.1% (for example, 65,504 vs. 65,437). To align them exactly, rerun the benchmark after the server is available and overwrite the corresponding files in results/.

Downloads last month
-