Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    TypeError
Message:      Couldn't cast array of type double to null
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2328, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1870, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2164, in cast_array_to_feature
                  return array_cast(
                      array,
                  ...<2 lines>...
                      allow_decimal_to_str=allow_decimal_to_str,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1872, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2023, in array_cast
                  raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
              TypeError: Couldn't cast array of type double to null

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

SN129 ctx_compress training data

Supervised fine-tuning data for context compression of coding-agent sessions, built for the ctx_compress-granite arena of Bittensor subnet 129 (Microtensor).

A coding agent's session (user requests, assistant text, tool calls and tool outputs) grows past what fits in its context. The model must replace it with a short structured summary that lets the agent carry on from the summary alone. In the arena, a small fixed probe model (Qwen2.5-1.5B-Instruct) answers questions about the session using only the summary. The questions cover exact facts (files, errors, values), the user's goals, and what the agent should do next. Inventing details the session never showed is penalised.

  • 528,606 training rows in 47 files, 16 GB (zstd-compressed JSON lines)
  • 29,809 held-out items in the arena's own item format, for local evaluation (never trained on)
  • Sessions of 12K to 123K tokens. Every target summary passes the arena grader's checks.

Files

Path What it holds
train/<set>-<shard>.jsonl.zst Training rows, one file per generation shard. Shards never share a session.
heldout/<set>.jsonl.zst Held-out arena items, one file per set
manifest.json Row counts, token statistics, size and sha256 of every file, results of the checks
reports/*.report.json Packaging report per shard: items seen, rows written, items without a passing target

Sets

Set Rows Files What it is Input tokens (median / max) Summary budget (median) Summary tokens (median / max)
synth-v1 75,855 8 Synthetic sessions from the arena generator, 35K-95K-token sessions (the hidden-item range) 53,530 / 122,841 2,676 609 / 768
synth-more (train/cont-*) 397,016 23 More of the same, from new random seeds 53,471 / 122,877 2,673 609 / 779
synth-short 37,236 8 Synthetic 12K-35K-token sessions (the 1,000-token budget range) 24,597 / 60,460 1,229 540 / 693
real-v1 18,499 8 Real agent trajectories on real GitHub issues (OpenHands, CoderForge SWE-rebench) 30,816 / 70,820 1,540 834 / 2,002

Each session is cut at one or two points: midway (45-60% of its steps) and late (78-94%). Rows from the same session are linked by twin_of.

Row format (training files)

Field Meaning
prompt The exact string the arena runner sends to the model: Granite chat template, system turn with the compression instructions, user turn holding the session inside <session> tags, then an open assistant turn
completion Target summary followed by the stop string `<
item_id Unique id
family Project the session belongs to (synthetic project name, or repository/issue for real sessions)
source synth, openhands or coderforge
twin_of item_id of the other cut of the same session, if any
input_tokens Session length in tokens
budget_tokens Maximum summary length: 5% of the input, at least 1,000 and at most 3,072 tokens
candidate How the target was produced (oracle, see below)
score Probe-model score, for the rows in a probe-graded sample; otherwise null

Prompt template:

<|start_of_role|>system<|end_of_role|>{system}<|end_of_text|>
<|start_of_role|>user<|end_of_role|>{user}<|end_of_text|>
<|start_of_role|>assistant<|end_of_role|>

Every summary has exactly these nine sections, in this order:

## Primary request and intent
## Key technical concepts
## Files and code sections
## Errors and fixes
## Problem solving
## All user messages
## Pending tasks
## Current work
## Next step

Held-out item format

{item_id, family, twin_of, task: {system, user}, label: {...}, tests: [...]}. task is the model input. label holds the ground truth: the session's facts, the probe questions (probes, each with question, answers and type: exact, word, choice or next_step), budget_tokens, input_tokens, cut, steps and source. Example probe: {"question": "Which file did the agent edit most recently?", "answers": ["comprehensive_test.py"], "type": "exact"}. Score a model's summary with the arena grader (microtensor-arenas, arenas/compress) and the pinned probe model.

How it was built

  1. Sessions. Synthetic sessions come from the arena's own generator with fresh random seeds; the arena's hidden test items come from the same generator under a secret seed. Real sessions are re-rendered from public trajectories, at most two attempts per task, and the same issue never appears in both training and held-out.

  2. Targets. Summaries are built deterministically from each session's labels (an "oracle"). They are written to fit the budget and mention only names the session itself shows.

  3. Checks on every item, without a model. All nine headings present, within budget, nothing invented, no repetition loop, recall of the labelled facts. Items failing these checks were dropped (185 of 558,600).

  4. Checks with the arena's probe model, on random samples. Same pinned Qwen2.5-1.5B GGUF, llama.cpp image and settings as the validators:

    Set Sampled Pass Mean score
    synth-v1 2,283 100% 0.992
    synth-more 520 100% 0.992
    synth-short 400 100% 0.986
    real-v1 983 98.8% 0.956
  5. Final validation of every row. Prompt matches the arena template, nine headings in order, stop string present, summary within budget by the validator's tokenizer, no duplicate ids or prompts. No session from the released testnet round inputs appears anywhere.

Using it

hf download TopMiner1001/sn129-ctx-compress --repo-type dataset --local-dir sn129-data
zstd -dc sn129-data/train/real-v1-r0.jsonl.zst | head -n 1 | jq 'del(.prompt)'
import io, json, zstandard

def rows(path):
    with open(path, "rb") as f:
        for line in io.TextIOWrapper(zstandard.ZstdDecompressor().stream_reader(f), encoding="utf-8"):
            yield json.loads(line)
  • Train on the completion only: mask the prompt tokens out of the loss.
  • Prompts are long (median about 50K tokens, up to 123K), so long-context fine-tuning is needed. The arena's base model is ibm-granite/granite-4.0-h-micro.
  • For a quick first run, start with real-v1 plus one or two synthetic shards. Mix in real sessions so the model does not fit only the generator's style.
  • Evaluate on heldout/. Real-session items are the harder test: the probe model's next-step score is 0.92 there, against 0.98 on synthetic items.

Limitations

  • About 88% of the rows are synthetic and share the generator's structure and vocabulary.
  • Targets are rule-based: consistent and checkable, but plainer than human-written summaries.
  • The arena definition is the testnet version (ctx_compress-granite). Its base model, budget rule or item mix may change on mainnet.

Sources and licences

Downloads last month
51