peih commited on
Commit
8d1d997
·
verified ·
1 Parent(s): 9a84718

Document unified feature-only streaming protocol

Browse files
Files changed (1) hide show
  1. README.md +52 -7
README.md CHANGED
@@ -1,12 +1,57 @@
1
  ---
2
- license: other
3
- pretty_name: csgo-training-cache
 
 
 
 
 
 
 
4
  ---
 
5
 
6
- # csgo-training-cache
7
 
8
- CSGO training cache: frozen Wan2.1-VAE features (`latent`, `i2v_y`, `dense_features`) plus `state`,
9
- `interaction`, `camera_poses`, `camera_intrinsics`, `text_emb`, converted from `peih/csgo-4090-v4-20260921`. Raw Dense7 is not included.
 
 
10
 
11
- One TAR per source archive (one match) under `shards/<pod>/`; a shard is valid only once
12
- `receipts/<pod>/<archive_sha>.json` exists. Consume through the versioned manifest in `peih/csgo-training-cache`, never by listing this repo.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ tags:
6
+ - video
7
+ - world-model
8
+ - csgo
9
+ - training-cache
10
+ - streaming
11
  ---
12
+ # CSGO training cache
13
 
14
+ Precomputed feature-only training samples, continuously converted from four source datasets:
15
 
16
+ - `peih/csgo-3090-v4-overflow-20260923`
17
+ - `peih/csgo-4090-v4-20260921`
18
+ - `peih/csgo-4090-v4-overflow-20260923`
19
+ - `peih/csgo-dual3090-v4-backup`
20
 
21
+ This dataset is still growing. `manifest.json` is the current verified snapshot; `manifests/vNNNNNN.json` contains immutable historical snapshots. Read only listed shards at their pinned `revision`. New uploads become available after their verification receipt and a manifest update. Do not train from unlisted TAR files.
22
+
23
+ ## Format
24
+
25
+ Schema: `csgo_training_cache_features_v1`. Each TAR contains ordered pairs `<sample_id>.pt` and `<sample_id>.json`. A shard usually holds 60 samples and is approximately 1.49 GB; use the exact size in the manifest.
26
+
27
+ | Tensor | Shape per sample | dtype |
28
+ |---|---|---|
29
+ | latent | [1,16,21,60,104] | float32 |
30
+ | i2v_y | [1,20,21,60,104] | float32 |
31
+ | dense_features | [1,21,32,30,52] | float32 |
32
+ | state | [1,21,3,60,104] | float32 |
33
+ | interaction | [1,21,134] | float32 |
34
+ | camera_poses | [1,21,4,4] | float32 |
35
+ | camera_intrinsics | [1,21,4] | float32 |
36
+ | text_emb | [1,L,4096] | bfloat16 |
37
+
38
+ There is **no raw seven-channel `dense` tensor**. The Dense VAE features are already encoded. No VAE/T5 encoding is required on the training consumer. Model revisions, weight hashes and preprocessing contract are recorded in the manifest.
39
+
40
+ Use `torch.load(..., weights_only=True)`. Verify each PT's bytes and SHA256 before deserialization, and verify the complete TAR SHA256 at EOF. A partially consumed shard has not yet passed the consumer's full-TAR check.
41
+
42
+ ## Streaming consumer contract
43
+
44
+ 1. Read `manifest.json` at a fixed dataset commit.
45
+ 2. Respect train/val splits and `exclude_sample_ids`. The split is stable by match, with an expected validation fraction of 2% (not an exact per-snapshot ratio).
46
+ 3. Open listed TARs over streaming HTTP at each pinned shard revision. Avoid downloading the entire dataset.
47
+ 4. Interleave shards; assign disjoint shards to different ranks. Sample IDs must not repeat across ranks in the same epoch.
48
+ 5. Keep the manifest fixed throughout an epoch. Refresh only at the next epoch boundary to incorporate newly published samples.
49
+ 6. Checkpoint the manifest, deterministic order/cursor and training state. A restart may reread a TAR prefix from the network but must not train already consumed samples again.
50
+
51
+ This layout uses a manifest-aware custom TAR reader. Ordinary `datasets.load_dataset(streaming=True)` is not claimed to implement the exclusion, version refresh and exact-resume protocol automatically.
52
+
53
+ ## Publication
54
+
55
+ Two conversion machines write separate `shards/<worker>/...` and `receipts/<worker>/...` paths in this repo. One manifest publisher serializes publication with a parent-commit check. Existing verified shards from the four older cache repos are being copied byte-for-byte; this is not re-encoding.
56
+
57
+ The full dataset is not yet complete. Manifest totals are the authority for currently published samples. Source discovery and conversion continue while consumers train on a fixed snapshot.