Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
10
10
workload
stringclasses
1 value
task
stringclasses
5 values
source
stringclasses
1 value
article_ids
listlengths
2
2
input_tokens
int64
10k
10k
max_out
int64
1.5k
1.5k
prompt
stringlengths
43.1k
50.5k
10k-pd-000
10k
summarize
gutenberg
[ "darwin-origin:0", "herodotus-histories:0" ]
10,000
1,500
Read the following article carefully, then complete the task that follows. --- ARTICLE --- as in each succeeding generation there will be less of the foreign blood; but when there has been no cross with a distinct breed, and there is a tendency in both parents to revert to a character, which has been lost during some ...
10k-pd-001
10k
qa
gutenberg
[ "darwin-origin:1", "herodotus-histories:1" ]
10,000
1,500
Read the following article carefully, then complete the task that follows. --- ARTICLE --- are, according to Mr. Gould, brighter-coloured than those of islands. The insect-species confined to sea-coasts, as every collector knows, are often brassy or lurid. Plants which live exclusively on the sea-side are very apt to ...
10k-pd-002
10k
extract_facts
gutenberg
[ "darwin-origin:2", "herodotus-histories:2" ]
10,000
1,500
Read the following article carefully, then complete the task that follows. --- ARTICLE --- of Europe have been carefully examined. Mr. F. Smith has shown how surprisingly the neuters of several British ants differ from each other in size and sometimes in colour; and that the extreme forms can sometimes be perfectly li...
10k-pd-003
10k
outline
gutenberg
[ "darwin-origin:3", "herodotus-histories:3" ]
10,000
1,500
Read the following article carefully, then complete the task that follows. --- ARTICLE --- As we have seen in the last chapter that some forms have retained nearly the same character from an enormously remote geological period, so certain species have migrated over vast spaces, and have not become greatly modified. O...
10k-pd-004
10k
rewrite
gutenberg
[ "darwin-origin:4", "herodotus-histories:4" ]
10,000
1,500
"Read the following article carefully, then complete the task that follows.\n\n--- ARTICLE ---\nis i(...TRUNCATED)
10k-pd-005
10k
summarize
gutenberg
[ "federalist:0", "smith-wealth-of-nations:0" ]
10,000
1,500
"Read the following article carefully, then complete the task that follows.\n\n--- ARTICLE ---\nunbr(...TRUNCATED)
10k-pd-006
10k
qa
gutenberg
[ "federalist:1", "smith-wealth-of-nations:1" ]
10,000
1,500
"Read the following article carefully, then complete the task that follows.\n\n--- ARTICLE ---\nfor (...TRUNCATED)
10k-pd-007
10k
extract_facts
gutenberg
[ "federalist:2", "smith-wealth-of-nations:2" ]
10,000
1,500
"Read the following article carefully, then complete the task that follows.\n\n--- ARTICLE ---\never(...TRUNCATED)
10k-pd-008
10k
outline
gutenberg
[ "federalist:3", "smith-wealth-of-nations:3" ]
10,000
1,500
"Read the following article carefully, then complete the task that follows.\n\n--- ARTICLE ---\nit, (...TRUNCATED)
10k-pd-009
10k
rewrite
gutenberg
[ "federalist:4", "smith-wealth-of-nations:4" ]
10,000
1,500
"Read the following article carefully, then complete the task that follows.\n\n--- ARTICLE ---\nprop(...TRUNCATED)
End of preview. Expand in Data Studio

longctx30

Thirty long-context prompts for benchmarking LLM inference throughput. Each prompt is about 10,000 input tokens and asks for about 1,500 output tokens, which is long enough that decode time dominates and tokens per second is a meaningful number.

Built for the article Learning inference: How to host and improve the token speed of an LLM, where it is the benchmark set for Gemma 4 31B on a single B300. The data and code the article uses are in this repository:

file what it is
longctx30.jsonl the 30 prompts
make_longctx_dataset.py rebuilds the prompts from the Gutenberg texts
bench_client.py the benchmark client: streams completions, reports p50 output tok/s and TTFT
fpa4fix/ the seven vLLM patches, the self-checking Dockerfile, and the correctness script

Shape

One JSON object per line in longctx30.jsonl:

field type value
id string 10k-pd-000 … 10k-pd-029
workload string 10k
task string one of summarize, qa, extract_facts, outline, rewrite, cycling in that order
source string gutenberg
article_ids list of two strings which book and which passage, e.g. darwin-origin:2
input_tokens int 10000 (nominal; measured 10,059 to 10,080 on o200k_base including the instruction)
max_out int 1500
prompt string the full prompt

Each prompt is an intro line, then two passages of about 5,000 tokens each from two different books under an --- ARTICLE --- header, then one of five task instructions under --- TASK ---. The tasks all ask for approximately 1,500 tokens of structured output and say "Do not stop early", so the output length is stable across models.

Source text

Twelve public-domain nonfiction works from Project Gutenberg:

Darwin, On the Origin of Species and The Voyage of the Beagle · Thucydides, History of the Peloponnesian War · Herodotus, Histories · Plutarch, Lives · Adam Smith, The Wealth of Nations · Mill, On Liberty · The Federalist Papers · Douglass, Narrative of the Life · Equiano, The Interesting Narrative · Thoreau, Walden · Grant, Personal Memoirs.

Five passages are taken from each book, evenly spaced through it, skipping the first 6% and last 8% so nothing lands in a table of contents, preface, index or appendix. Passage k is paired with passage k+30, which always lands on a different book.

Reproducing it

make_longctx_dataset.py is included. It needs the twelve plain-text Gutenberg files and tiktoken:

pip install tiktoken
python make_longctx_dataset.py --src ./gutenberg --out longctx30.jsonl

Token counts use o200k_base, the same tokenizer the benchmark client uses.

Using it

from datasets import load_dataset
ds = load_dataset("abhijithneilabraham/longctx30", split="train")
print(ds[0]["task"], len(ds[0]["prompt"]))

Or download the file and point bench_client.py at it:

pip install aiohttp tiktoken
python bench_client.py --url http://localhost:8000/v1/chat/completions \
    --model nvidia/Gemma-4-31B-IT-NVFP4 --dataset longctx30.jsonl \
    --concurrency 1 --warmup 2 --json-out result.json

It reads prompt and max_out from each row and sends them as a streaming chat completion.

Licence

The source texts are public domain. The prompts, the task instructions and the generator script are released under CC0.

Downloads last month
145