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:    CastError
Message:      Couldn't cast
seed: string
players: list<item: string>
  child 0, item: string
rulesVersion: int64
actors: list<item: string>
  child 0, item: string
steps: list<item: struct<seat: int64, obs: struct<hand: list<item: int64>, top: int64, discards: list<item: (... 118 chars omitted)
  child 0, item: struct<seat: int64, obs: struct<hand: list<item: int64>, top: int64, discards: list<item: int64>, me (... 106 chars omitted)
      child 0, seat: int64
      child 1, obs: struct<hand: list<item: int64>, top: int64, discards: list<item: int64>, melds: list<item: list<item (... 39 chars omitted)
          child 0, hand: list<item: int64>
              child 0, item: int64
          child 1, top: int64
          child 2, discards: list<item: int64>
              child 0, item: int64
          child 3, melds: list<item: list<item: int64>>
              child 0, item: list<item: int64>
                  child 0, item: int64
          child 4, scalars: list<item: double>
              child 0, item: double
      child 2, legal: list<item: int64>
          child 0, item: int64
      child 3, action: int64
rewards: list<item: int64>
  child 0, item: int64
reason: string
temperature: int64
duesMultipliers: struct<tongits: int64, specialTongits: int64, fight: int64, sunog: int64>
  child 0, tongits: int64
  child 1, specialTongits: int64
  child 2, fight: int64
  child 3, sunog: int64
generatedAt: string
shards: list<item: struct<file: string, hands: int64, decisionSteps: int64>>
  child 0, item: struct<file: string, hands: int64, decisionSteps: int64>
      child 0, file: string
      child 1, hands: int64
      child 2, decisionSteps: int64
actorSpec: string
hands: int64
seatIds: list<item: string>
  child 0, item: string
decisionSteps: int64
wallMs: int64
stake: int64
actionSize: int64
obsSize: int64
decisionStepsPerSec: int64
handsPerSec: int64
seedPrefix: string
workers: int64
seatRotation: bool
to
{'seedPrefix': Value('string'), 'hands': Value('int64'), 'workers': Value('int64'), 'actorSpec': Value('string'), 'seatRotation': Value('bool'), 'temperature': Value('int64'), 'stake': Value('int64'), 'duesMultipliers': {'tongits': Value('int64'), 'specialTongits': Value('int64'), 'fight': Value('int64'), 'sunog': Value('int64')}, 'seatIds': List(Value('string')), 'rulesVersion': Value('int64'), 'obsSize': Value('int64'), 'actionSize': Value('int64'), 'shards': List({'file': Value('string'), 'hands': Value('int64'), 'decisionSteps': Value('int64')}), 'decisionSteps': Value('int64'), 'wallMs': Value('int64'), 'handsPerSec': Value('int64'), 'decisionStepsPerSec': Value('int64'), 'generatedAt': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, 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 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, 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 483, 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 2840, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, 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 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, 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 343, 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 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              seed: string
              players: list<item: string>
                child 0, item: string
              rulesVersion: int64
              actors: list<item: string>
                child 0, item: string
              steps: list<item: struct<seat: int64, obs: struct<hand: list<item: int64>, top: int64, discards: list<item: (... 118 chars omitted)
                child 0, item: struct<seat: int64, obs: struct<hand: list<item: int64>, top: int64, discards: list<item: int64>, me (... 106 chars omitted)
                    child 0, seat: int64
                    child 1, obs: struct<hand: list<item: int64>, top: int64, discards: list<item: int64>, melds: list<item: list<item (... 39 chars omitted)
                        child 0, hand: list<item: int64>
                            child 0, item: int64
                        child 1, top: int64
                        child 2, discards: list<item: int64>
                            child 0, item: int64
                        child 3, melds: list<item: list<item: int64>>
                            child 0, item: list<item: int64>
                                child 0, item: int64
                        child 4, scalars: list<item: double>
                            child 0, item: double
                    child 2, legal: list<item: int64>
                        child 0, item: int64
                    child 3, action: int64
              rewards: list<item: int64>
                child 0, item: int64
              reason: string
              temperature: int64
              duesMultipliers: struct<tongits: int64, specialTongits: int64, fight: int64, sunog: int64>
                child 0, tongits: int64
                child 1, specialTongits: int64
                child 2, fight: int64
                child 3, sunog: int64
              generatedAt: string
              shards: list<item: struct<file: string, hands: int64, decisionSteps: int64>>
                child 0, item: struct<file: string, hands: int64, decisionSteps: int64>
                    child 0, file: string
                    child 1, hands: int64
                    child 2, decisionSteps: int64
              actorSpec: string
              hands: int64
              seatIds: list<item: string>
                child 0, item: string
              decisionSteps: int64
              wallMs: int64
              stake: int64
              actionSize: int64
              obsSize: int64
              decisionStepsPerSec: int64
              handsPerSec: int64
              seedPrefix: string
              workers: int64
              seatRotation: bool
              to
              {'seedPrefix': Value('string'), 'hands': Value('int64'), 'workers': Value('int64'), 'actorSpec': Value('string'), 'seatRotation': Value('bool'), 'temperature': Value('int64'), 'stake': Value('int64'), 'duesMultipliers': {'tongits': Value('int64'), 'specialTongits': Value('int64'), 'fight': Value('int64'), 'sunog': Value('int64')}, 'seatIds': List(Value('string')), 'rulesVersion': Value('int64'), 'obsSize': Value('int64'), 'actionSize': Value('int64'), 'shards': List({'file': Value('string'), 'hands': Value('int64'), 'decisionSteps': Value('int64')}), 'decisionSteps': Value('int64'), 'wallMs': Value('int64'), 'handsPerSec': Value('int64'), 'decisionStepsPerSec': Value('int64'), 'generatedAt': Value('string')}
              because column names don't match

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.

Tongits Offline RL & Imitation Learning Benchmark Dataset

Curated benchmark dataset of 10,000 full-game simulation trajectories (366,479 decision steps) across 3-player expert Tongits self-play from Tongits.io.

Dataset Summary

  • Episodes: 10,000 completed hands.
  • Decision Steps: 366,479 individual decision steps.
  • Observation Features: 349-dimensional float state space encoded as sparse CompactObservation objects.
  • Action Space: 75 discrete action choices with sparse legal action index masks.
  • Payoffs: Settled monetary units per player reflecting zero-sum terminal rules and dues.

File Structure

  • manifest.json: Metadata tying the run together (seeds, rules version, layout sizes, dues multipliers).
  • shard-000.jsonl.gz to shard-009.jsonl.gz: 10 gzipped JSONL shards, each containing ~1,000 deterministic episodes.

Schema Specification

Each line in a .jsonl.gz shard is a JSON-encoded TrajectoryEpisode dictionary matching packages/engine/src/rl-trajectory.ts:

{
  "seed": "r5-bc-0",
  "players": ["a", "b", "c"],
  "rulesVersion": 3,
  "actors": ["league", "league", "league"],
  "steps": [
    {
      "seat": 0,
      "obs": {
        "hand": [1, 2, 3, 4, 9, 12, 20, 21, 27, 31, 44, 46, 51],
        "top": -1,
        "discards": [],
        "melds": [[], [], []],
        "scalars": [0.3, 0.8667, 0.8, 0.8, ...]
      },
      "legal": [7, 8, 9, 10, 15, 18, 26, 27, 33, 37, 50, 52, 57, 58],
      "action": 58
    }
  ],
  "rewards": [4.0, -2.0, -2.0],
  "reason": "TONGITS",
  "carryIn": null
}

Fields:

  • seed: String deal seed guaranteeing byte-for-byte reproducibility.
  • players: Array of seat IDs (["a", "b", "c"]).
  • rulesVersion: Engine rules version integer (3).
  • actors: Policy specification per seat (["league", "league", "league"]).
  • steps: Sequential policy decisions taken during the hand:
    • seat: Acting seat index into players (0, 1, or 2).
    • obs: CompactObservation sparse object (hand, top, discards, melds, scalars), expanding to the dense 349-dimensional float state vector via expandObservation.
    • legal: Legal action indices (sparse form of the 75-dim boolean action mask).
    • action: Integer index of the discrete action taken (0..74).
  • rewards: Per-seat terminal monetary outcomes in fee units, indexed like players ([4.0, -2.0, -2.0]).
  • reason: Terminal hand outcome ("TONGITS", "FIGHT", "DECK_EMPTY").
  • carryIn: Optional deal-time carryover Match Pool state ({"streakSeat": null, "poolUnits": 0}).

Quickstart: Python

import gzip
import json
from huggingface_hub import hf_hub_download

# Download a shard
file_path = hf_hub_download(
    repo_id="ricoz/tongits-benchmark",
    filename="shard-000.jsonl.gz",
    repo_type="dataset"
)

# Iterate over episodes
with gzip.open(file_path, "rt", encoding="utf-8") as f:
    for line in f:
        episode = json.loads(line)
        print(f"Seed: {episode['seed']}, Steps: {len(episode['steps'])}, Rewards: {episode['rewards']}, Reason: {episode['reason']}")
        first_step = episode['steps'][0]
        print(f"  First step seat: {first_step['seat']}, action taken: {first_step['action']}, legal count: {len(first_step['legal'])}")
        break

License & Attribution

Licensed under the Apache 2.0 License.

@misc{tongits_benchmark_2026,
  title={Tongits Offline RL Benchmark: 10,000 Paired Imperfect-Information Trajectories},
  author={Rico Zuñiga},
  year={2026},
  howpublished={\url{https://huggingface.co/datasets/ricoz/tongits-benchmark}},
  publisher={Hugging Face}
}
Downloads last month
4