The dataset viewer is not available for this subset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
~~~~~~~~~~~~~~~~~~~~~~~~~^
StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 84, in _split_generators
raise ValueError(
...<2 lines>...
)
ValueError: The TAR archives of the dataset should be in WebDataset format, but the files in the archive don't share the same prefix or the same types.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
~~~~~~~~~~~~~~~~~~~~~~~^
path=dataset,
^^^^^^^^^^^^^
config_name=config,
^^^^^^^^^^^^^^^^^^^
token=hf_token,
^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
path,
...<6 lines>...
**config_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.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.
alpha-CR IL_Replay v2
224,689 human Clash Royale battles as imitation-learning (IL) games for the alpha-CR policy. Both seats are labelled on every decision. Every battle comes from the public VanguardX101/IL_Replay dataset. Each one was replayed command by command in the extracted global game engine and recorded with full engine state, then exported in the same NPZ format as the rest of the alpha-CR IL data. The data is ready to train on and needs no recording or engine.
| games | decisions (both seats) | card plays | hero abilities | |
|---|---|---|---|---|
strict (ilr-v2-NN) |
198,074 | 328,878,822 | 10,808,144 | 485,226 |
relaxed (ilr-v2-NN-relaxed) |
26,615 | 47,902,448 | 1,775,954 | 107,584 |
| total | 224,689 | 376,781,270 | 12,584,098 | 592,810 |
A game has a median of 773 snapshots (one decision every 5 engine ticks = 250 ms at 20 ticks/s; 5th–95th percentile 492–1,241) and 50 plays. 190,719 games include at least one hero ability.
Every game has a unit-state sidecar (unit-state-v1, 36 features per unit token). Collected 2026-11-12 to
2026-11-15 as batch 2 (13 chunks, ilr-v2-00 … ilr-v2-12). Every game uses tensor_version 5 and 62 token slots.
The unit vocabulary has 377 entries. Chunks 08 and 10 append one more, global-unit:Ghost_EV1_Clone (378 entries,
earlier ids unchanged), and merge_archives takes the union automatically.
Every game also has the four sidecars that the v8–v11 models read (v11/ shards, see
Training v11):
| sidecar | contents | total |
|---|---|---|
| world objects | spells in flight, bombs, ability areas and other on-screen objects without health | 80.7M object-decisions |
| exact action ticks | the exact execution tick of every action | 13.17M actions |
| ability presses | the pressing hero and its position for every hero-ability press | 592,706 presses |
| public events | public card memory | 13.18M public actions |
For ability presses, 91% name exactly one hero, 6% find several (the first is kept) and 3% find none (x = y = -1).
Layout
All shards are uncompressed TAR files; the NPZ members inside are already compressed. Member paths are relative to the alpha-CR project root, so extracting a shard at the root puts every file where training looks for it.
| path | contents | size |
|---|---|---|
games/ilr-v2-NN.tar |
data/archives/ilr-v2-NN/{manifest.json, games/<tag>.npz} (strict) |
47.2 GB for both game kinds |
games/ilr-v2-NN-relaxed.tar |
data/archives/ilr-v2-NN-relaxed/… (relaxed) |
|
unit-state/ilr-v2-NN.tar |
data/archives/unit-state-v1/<tag>.npz, sidecars for both archives of chunk NN |
41.3 GB in all |
v11/ilr-v2-NN.tar |
v8–v11 sidecars for both archives of chunk NN (listed below) | 2.32 GB in all |
inventory.json |
bytes, sha256 and member count of every shard; game count of every archive | |
inventory-v11.json |
the same for the v11/ shards |
|
quality.json |
the full quality report (below) |
Each archive's manifest.json has these fields:
| field | meaning |
|---|---|
games |
game paths relative to the archive |
vocab |
unit vocabulary; ids are list index + 2 |
decision_weights |
per-game [first, last] weights (see below) |
decision_weight_rule |
parameters used to compute those weights |
rejected |
{tag: reason} for recordings that were not exported |
A game NPZ (s0/… and s1/…, one block per seat, T snapshots, one every 5 ticks = 250 ms) holds:
| key | shape | meaning |
|---|---|---|
troop_tiles |
[T, 72] |
|
scalars |
[T, 12] |
elixir, time, towers, … |
hand_ids, hand_cost |
[T, 5] |
the hand plus the next card |
hand_spell, hand_anywhere, hand_mask |
[T, 4] |
|
tok_ids, tok_type, tok_side, tok_mask |
[T, 62] |
unit tokens |
tok_feat |
[T, 62, 6] |
unit token features |
ability_ready |
[T] |
|
opp_hand_ids |
[T, 5] |
|
tower_troop |
[T, 2] |
|
opp_elixir, opp_elixir_est |
[T, 1] |
|
gate |
[T] |
label: 0 = wait, 1 = play |
slot |
[T] |
label: hand slot |
tile |
[T] |
label: placement tile |
meta is a JSON string: replay tag, snapshots, decisions, plays, abilities, states_sha256,
tensor_version. A sidecar holds s0/tok_unit and s1/tok_unit, each [T, 62, 36] float32: per-token motion,
combat and status state, aligned to tok_ids.
How the games were made
- Each IL_Replay battle was rendered to a replay page (
tools/il_replay_pages.py). - The battle was validated on the extracted global engine (
tools/independent_validation_queue.py --max-candidates 4 --seeds 1), which picks the best starting candidate. 239,646 battles passed and 908 failed. - The battle was recorded with combat-v1 probes (
tools/il_replay_record.py). - The recording was exported to NPZ (
tools/export_extra_global.py --allow-unsettled), giving the strict archive. Recordings that the strict rules rejected for a single label they cannot represent were exported again under relaxed rules (--relaxed). The relaxed rules drop a second action within one decision window and accept abilities when two are ready. - Decision weights were computed (
tools/il_replay_weights.py), and unit-state sidecars were exported (tools/export_unit_state.py --no-npy).
The engine runs a different game balance from the one these battles were played on. It reproduces each opening as
the human saw it but drifts later in the game, so the per-game decision weight falls linearly over the game's
decisions, from first to last:
| replay outcome | games (strict / relaxed) | weight |
|---|---|---|
| exact (same result as the real battle) | 5,295 / 482 | 1 → 1 |
| different, but every play ran | 86,944 / 12,869 | 0.5 → 0.5·exp(−ΔtowerHP/2000)·exp(−|Δend tick|/100) |
| cut (the engine refused a later play) or undecided | 105,835 / 13,264 | 0.5 → 0.05 |
A cut game keeps only the commands before the first refused play. The ending weight averages 0.147 for strict games and 0.142 for relaxed games, with a median of 0.05 for both. Training multiplies each decision's loss terms by its weight and does not renormalise. Treat this as a large, noisy, human-prior corpus: weight it below exactly reproduced data, or mix it with such data.
Quality check
tools/ilr_quality.py checks every game:
- zip CRC of the game and its sidecar;
- all 40 seat keys are present, with the same
Tacross keys and seats; - float arrays are finite;
meta.snapshots == T, with data finalization verified;- sidecar shape
[T, 62, 36]and finite; - no duplicate tags across chunks, one vocabulary, and decision weights for every game.
Result: all 224,689 games passed (0 failures). The per-chunk counts and reject reasons are in quality.json.
| stage | battles |
|---|---|
| IL_Replay battles validated on the engine | 239,646 (908 failed validation) |
| exported under the strict rules | 198,074 (40,613 rejected) |
| recovered under the relaxed rules | 26,615 |
| still rejected | 13,998 |
The 13,998 still rejected break down as:
- play violates the training placement mask: 12,298
- play unaffordable at the decision tick: 1,621
- ability unavailable or ambiguous: 79
In 10,433 relaxed games, the number of gate == 1 labels is lower than meta.plays. The difference always equals
meta.dropped_second_actions, the second actions that the relaxed rules drop by design.
Training (alpha-CR, v6-style models)
You need the alpha-CR code (python -m alpha_cr.train.il).
# 1. download (88.5 GB; about 89 GB more once extracted) and extract at the project root
cd ~/alpha-cr
huggingface-cli download will8821/alpha-cr-ilr-v2 --repo-type dataset --local-dir /tmp/ilr-v2
for f in /tmp/ilr-v2/games/*.tar /tmp/ilr-v2/unit-state/*.tar; do tar -xf "$f" -C .; done
python - <<'EOF' # optional: verify the shards against inventory.json
import hashlib, json, pathlib
inv = json.load(open('/tmp/ilr-v2/inventory.json'))
for name, s in inv['shards'].items():
h = hashlib.sha256(); f = open(f'/tmp/ilr-v2/{name}', 'rb')
for b in iter(lambda: f.read(1 << 24), b''): h.update(b)
assert h.hexdigest() == s['sha256'], name
print('ok', len(inv['shards']))
EOF
# 2. only for models with unit state (model.unit_state): build the memory-mapped fp16 stores that training reads
# (<tag>.s0.npy / .s1.npy beside each .npz). About 7.6 MB per game, so roughly 1.7 TB for all 224,689 games.
python tools/export_unit_state.py --convert --workers 64
Every archive goes in data:. They share one vocabulary, so merge_archives concatenates them, and the per-game
decision weights are read from the manifests automatically. Here is an example config on the v6c recipe:
# configs/il-ilr-v2.yaml
data: [data/archives/ilr-v2-00, data/archives/ilr-v2-00-relaxed, data/archives/ilr-v2-01, data/archives/ilr-v2-01-relaxed,
data/archives/ilr-v2-02, data/archives/ilr-v2-02-relaxed, data/archives/ilr-v2-03, data/archives/ilr-v2-03-relaxed,
data/archives/ilr-v2-04, data/archives/ilr-v2-04-relaxed, data/archives/ilr-v2-05, data/archives/ilr-v2-05-relaxed,
data/archives/ilr-v2-06, data/archives/ilr-v2-06-relaxed, data/archives/ilr-v2-07, data/archives/ilr-v2-07-relaxed,
data/archives/ilr-v2-08, data/archives/ilr-v2-08-relaxed, data/archives/ilr-v2-09, data/archives/ilr-v2-09-relaxed,
data/archives/ilr-v2-10, data/archives/ilr-v2-10-relaxed, data/archives/ilr-v2-11, data/archives/ilr-v2-11-relaxed,
data/archives/ilr-v2-12, data/archives/ilr-v2-12-relaxed]
unit_state_dir: data/archives/unit-state-v1
epochs: 3
batch: 32
lr: 6.0e-4
warmup: 300
final_lr: 0.1
weight_decay: 0.1
val_fraction: 0.02
mirror: 0.5
amp: true
aux_next_play: 0.5
aux_next_ability: 0.5
model:
dim: 384
layers: 6
heads: 8
ff: 768
dropout: 0.2
tower_context: true
unit_state: [motion, combat, status] # drop this line to train without sidecars (then skip step 2)
next_play_head: 13
next_ability_head: 13
packed_cache: data/il-packed
trim_board_padding: true
ema: 0.999
token_drop: 0.1
compile: true # needs triton; set false on Windows
python -m alpha_cr.train.il --config configs/il-ilr-v2.yaml
Things to know before training:
- Tile smoothing:
tile_smoothcannot be combined with decision weights; training raises aValueError. - Validation: the validation split (
val_fraction) is drawn from these weighted games, so its loss is weighted too. For a clean comparison with earlier models, evaluate on an exact-replay or Tencent split as well. - Mixing with other data: add the other archives (for example the
us*archives) todata:. Archives withoutdecision_weightsweigh 1. - Subsets: each chunk is a random slice of IL_Replay, so a subset of chunks is a uniform subsample. Use, for
example,
ilr-v2-00…ilr-v2-03for a quick screening run.
Training v11 (world objects, exact ticks, ability presses, public memory)
The v8–v11 inputs need the alpha-CR code from origin/master at 1fa4e05 or later (il-v11-384). Each v11/ilr-v2-NN.tar
holds these members:
| member | written by |
|---|---|
data/archives/world-state-v1/<tag>.npz |
tools/export_world_state.py (up to 16 objects per decision: kind, owner, position, age, fuse) |
data/archives/action-ticks-v1/<tag>.npz |
tools/export_action_ticks.py (owner, exact tick E, kind 153 card / 189 ability) |
data/archives/ability-press-v1/<tag>.npz |
tools/export_ability_presses.py (owner, tick, hero x/y, hero name) |
data/archives/ilr-v2-NN[-relaxed]/public_events.json |
tools/export_public_events.py |
In public events, 10,433 relaxed games are kept as relaxed match: their recording holds at least 80% of their label
plays. No game was dropped as plays differ.
for f in /tmp/ilr-v2/games/*.tar /tmp/ilr-v2/unit-state/*.tar /tmp/ilr-v2/v11/*.tar; do tar -xf "$f" -C .; done
python tools/export_unit_state.py --convert --workers 64 # unit-state .npy stores, as above
The v11 config is configs/il-v11-384.yaml with the ilr-v2 archives in data:. Keep latency_input, world_input,
public_battle, ability_tokens, order_exact: true and exec_ticks: 20. The own-cycle sidecar
(export_cycle_state.py) is not needed: v11 enables neither cycle_input nor ability_input.
python -m alpha_cr.train.il --config configs/il-v11-384.yaml --set out=runs/il-v11-ilr-v2 "data=[data/archives/ilr-v2-00,data/archives/ilr-v2-00-relaxed,...,data/archives/ilr-v2-12,data/archives/ilr-v2-12-relaxed]"
Write out all 26 archives in place of ... (or put the list in the YAML). Add the us* archives to mix with exact
data. Things to know:
- Missing sidecars fail silently: the loader (
alpha_cr/data/latency.py) falls back to empty world objects, no ability tokens and the 5-tick grid instead of exact ticks. Extract everyv11/shard and check the counts againstinventory-v11.jsonbefore training. - Memory:
batch: 32at 384x6 nearly fills a 24 GB GPU. On an RTX 4090 under Windows it spilled into system memory and stalled;batch: 4ran at about 2 steps/s. Use 40 GB+ GPUs, or lower the batch. - Smoke test: 10 steps (
batch: 4,compile: false) on 60 games of chunk 12 ran end to end, including validation.
- Downloads last month
- 518