text stringlengths 64 64 |
|---|
00002a667c928e558ca99a58cf4734daef4058385aa58e8e3e400409133b81e5 |
00002c3784a9e0b1134af651da4d8a18f424dac0f913831a40b5455bebaef664 |
00006b690281905833cef307104cf4cc69d24e7cce6f39e991e9fd90fb01df8c |
00006cb692378a36dee6422113475f1d352fb684c8daa76bbbda077e9775d710 |
00006de4a4c3bfe9841c9881fa6863ff5584a4eca200b3f301307f1c576b2625 |
000075ef914327ff5a5c3edbd5bf79c18eb8c70c79cb06ead146f49921f01097 |
00009cb976a9cf33b0f7775270da9beb93a1443f21f87ce604fa5f430f90a341 |
0000ad07f1a45c606dda33fec3e61a6ac9233e21e9fbc66dc8d434d04b89d419 |
0000c050f59ad257f0071fc821cbeda14d6acaab99e4d83b1f6a00fce0a4835e |
0000cc874cdd31bfba05c5024501f9b490f2f170fa8d3463f0f4a6a086c0c536 |
0000e676b4dd4f453b63f4bb9c5b71de8cb56f9f61996f51364dd32740a8e4d1 |
0000f733c850f50ab05010b037c8cc5776f03e94d11c06e01be52522415826c9 |
0000fb160618d684fa768028f72a97c2e1fbc50ea7fbb930eb17b093fc439695 |
000102a74cdd0439b96d7bc0dc9bd058e81f3e8421d9173f80f6c13f54edb0ce |
00010d1b6039942837de9b36942085067f052f21c3338179ba61d0e43a73bf53 |
000126f8171b1b81cd9cffee7fc7c62fdbb35a86f8c1fbb7de518183551e1d87 |
000129e13a8860f350fc4f7eba8fc9f9c5862ce2a743ad853c11f2583375a664 |
00012bb3d2a9f2c3926d8f4be1d8e32c895a4a4281b2f8b0119dc24f75a1f8b7 |
0001300004a8d46fcf98a6d549d268eb59d3aee5fabe69b9b911463f8a31e673 |
0001529f0595160858c26567c7f854a24bd25500dfc02c6ea01954b4a1289fb4 |
0001569f7d8051346d9ebd254700ccb9f8abac899f0edfc56c285df8dd87b265 |
000158fd2a333c957a8011851043873c1b288a2b20ebeed9867db4b4caaf8d60 |
0001674d6479aac2a174bb0bc08ae75b54bbb52a5afa0b085be532196665b36b |
00016b98eadfe2eecc7708570b35d5127a005b3f889c0b064295877a29c9353e |
00016e22b78b0d10a095deb0100a4277d619be419f57e69defcacbcc39b33f0f |
00017b567f288106e11aae95c956d1c2e3b45fb15608916f1c618f99b08a384d |
00017e7d0e2a97caa92ed1b1cf8c81c9d3fc176028ef0c9012f693abb6523e8e |
0001803998ab10bae55d772e4a7f829f5e1327eeb3fade0c15bda642356c381d |
000183909773991913752253137c7bb8d31af8415f6b1fba30d285461fafc79f |
0001921f66c390e3c33d2fb917a2f6066cfaed0918b2af59b1efcee30ed7a501 |
0001924bcc38c3b9a2fbacdff7756630e99e0f3a64e9474acb21d6893213390f |
0001aadb129c61919d331b15fad391dee185dfab2b5740a6babc2537a44adcda |
0001c30b5154a268f0ac1ddafc3482b9e7e3db96243b0786de02d3ddef97ca27 |
0001d48ae5f8b0fd9a76decda384adfc9a75b005e37089e18044a23241e517fe |
0001d88aa2e83a03cff8713a6fb983fdd79d62a27ee228e097789bd7b1bbd12e |
0001f3c2c9121ecc0f8011af7afd6b44d9924656b880f2e8c31864dcbbe96f85 |
000209d33e4e9d26c9601a9cab7ffda583969afa6096ce872ab7ec19d7d85e39 |
00020bf50941d2df919ed0142c3076aae29f74925c51c88f132fad2cb12267bc |
00024b80f7744d657d5ebd3a2166e0b967769979c13600c89e8d02420ce8deb2 |
00025cde2a207773bad50ffe9aa54cc51359d9b1a1450a197d7e260e3e8d7356 |
00028e6e17328bbc34453f064190ee4e01172ad17cc7cd3d426ff5e98d279891 |
0002aae0cc0725b2341293974c05c3664bad1ea5fef4d4f464818cb144197912 |
0002c2c733e65f0ecfb298b88f601399aa929cf0dcf2ae6e2a135ba33510e033 |
0002c847e0b9ce398b80d98842e8945e8cfd1738a79dc085555a3b005ff49804 |
0002d2bc41c808467f63f515b9f155c8f2ddedcea0a55448dc6c359918fc5664 |
000304abb66298988ae2a657b869b8e1840c0506935f3f9ea38fb01f45dc4acf |
000305a18bbd6352e20f65531bb6f58de36f542861187219ecd489f6136bed7c |
000307a12b921c742eec9c4cf33141bd2e9e0f3b66ed3ac6ab8866339556ad64 |
000332caf9fe535f7d376ee67ef46bdcfa4e931a6bda49e7a014ad8373efd3f6 |
00033325412cd515f032fb1b44e2d263524b5b1d22c74183411cb4c7217281ae |
000349a87db225eef1e607a006ffe15016bb59b2cf9d381eec1a801c1d1d2256 |
00035869e575c5531e95d129e67626e4118f231c684be3a801f8ad9bb7b53b6d |
000359ef78022499c26ad96b93ca0a48454a4fa928f0bbb4a693fd2222d0337b |
0003692ff049e8e7d84906a92707f285e9ab2adf3618d5d39e9cca0ccb657440 |
0003693bbc22a6a62b90075fc3106c02bc8b5538ab1ae89a111cec0b9f1f8cab |
0003719b50f6d9be8ae56bd94fdcfd02464d620c33069ab884e126b75bfb9e3e |
000376d7a4aefc25ebaab726663737fa9d70865f4f3bbe7b3ecc00fc080d0ff4 |
000390b5e73a46bbabedba546bdc754372555b3450c952332518a71b3eb898b5 |
00039abd6bfc9b76352a61103f48d869385c65e821697886a8055070b5c4a568 |
0003a7999930a4faf69faa7ac7715e32ec0437a42395e88ddb939188a4def54e |
0003a7b49e1181265df326bd8cb4f87f18f4075083265b1f1a20f17a03092b56 |
0003b0e1a9fec6cbbd7ab2e52b7fd15a4df9e8fa69f63ec0a43f5b1ded584325 |
0003b2501373e8e9d9387ddb039a70184ea004bed3d74ce4bab39c5bf55faa17 |
0003d33177d3a4c71db2ea2a96123b70c41837faefcf998d048f3077eb1ef7d1 |
0003d4cdda8011317e7f1d611e5172657c194f07b7bd1dd5ab541046d0f81865 |
0003e1cc6105b52735237e9f82ceb4441d7b3acfb748f3e63846c53ca862969d |
0003fba7f40b99a0bc97a0d40eb9a3f3da7a011f24babc98bc1a9dcc42eab396 |
00040cb4639c5f4992f1b8c3498c98748d95912ae55130408dcd26c896feabc8 |
00041091ebaf20355d52808fca8890f496698167aa4de4ea9efa1864d1db4e0d |
00043034bcd62f3d359755d6a7261e598412ac2b0e218e6e80898866115d1e33 |
00043c58f9a05aa0deadc4fbc236d62f5e14299502606cf3bab0279d97369b2e |
00043f9bba36498ac9a45b957b251fb90315def170bd2fae37b4a10b26f272bd |
000456502b6068d9520fdfb38b66cd47d00c1bf8d4c637b695358365703185a6 |
00045849d849d5decc0a7837f01684ce1c5395bc63c2f457f8bc22a5ced40904 |
000460aa9226aacac153b251fa0bab4d1b0995e357d47b10e9cf7e7f2cc253a2 |
00046bcce79f4e7c1799e2b718b07ebb60bf88a0f703c74f9432a2b93f285afe |
00047e80d99b740d06d14cd9630c06a6affa727c313ea230b4a081b1d6467459 |
00048c32e7a202fe1b042234b6f9015648cc8e0ddbc6aed9bf5058a5c51e3b33 |
0004a05a4f1490329fefc8a22cc1b9bd7a0b0b5705494d841f23f2525be3e9c6 |
0004b2c520cab5ecdef9347f78f5555ceadd37bfc1c81498515dc9d0a4ae9952 |
0004be7cfdc50da0cc50945cd595e8c7472fb58d18f3c0851cb6e63d210aed43 |
0004c9db639e2732444922366eea9e681a7e60ef75407be21231969c35dec626 |
0004d1f5cd31ce5e6c61d101c2deb2934783050e9e5df5dc9ed065446ae04292 |
0004e587d5d0933fda8cf7bcf3cc3ecfbb92a1dcf5aa91a26a6181d4eb8d2b02 |
00052368585c9a32d6c296e03a7d3f6b7dfffd68ddff43bf3feb508a99c666ff |
0005324e556f32c360df25d0bb5a1181d47d5442bb6302a3d5a4d0d66bd184aa |
0005329cfe50efada75d71bf94190fa1657d0e11f4d87e0f3547c0eb934651e6 |
000539a5f460ea996fc4db58e2bb4c0c87f629d56daaa395b270bfb1302ca1f8 |
0005525dae48b0f469dd0a1fce62a9ca83fea354970b8535af01dbe195cf24f9 |
0005572382f2e9d60aa8b4b5bd5905d98ef7d96b6c0d65e8463b0d963e9ca232 |
00056897f9c1b5260f20e2693b04c696447184f4abed3d1a39f730dffb6a6f9f |
00059663ffd065b5a78dc6648e5fc84164cfca6d4d05da044dd098dc967cf05b |
0005a75b23bc55ab3fdd5bc459f9ef051fa3e8aab956c06cb40a751c467cc99e |
0005c8716b90d5c014a16b51648fc4a4a957a46be9d45836a34e6b4e5b222345 |
0005cb9ce228c7d11d6b817e06a6c9a6644c8aa23edbc609ac0c70b039fa7edf |
0005ce7ad79432969aee4ae091b62aa46bad61afba563ee622415ddaa2cb6f45 |
0005e3102e12c7aed97cde72968b509fb4c7ca6ae67b89af2070ead5a7ab9253 |
0005fc13f42780b3184f88587c587d457412e2cefcd3d713d9dac46af3531096 |
0006050f7b41d0916c260236b215cd7401dfbbea5660401389fb1a2fe826298f |
00062396c43a94646b54e3371652554b703a9df94cb309319b8d61c64466617a |
RoboTwin 2.0 3D — T5 Text Embedding Cache
Precomputed UMT5-XXL text embeddings for the
1,039,891 unique task prompts of the RoboTwin 2.0 3D dataset
(flex-pi/robotwin_3d), as consumed by
Wan2.2-TI2V-5B. Precomputing these costs substantial GPU time; this cache skips it.
Cache key
Task strings from meta/tasks.jsonl are wrapped in a fixed template before encoding, and the cache
key is the sha256 of that templated prompt:
DEFAULT_PROMPT = "A video recorded from a robot's point of view executing the following instruction: {task}"
key = hashlib.sha256(DEFAULT_PROMPT.format(task=task).encode("utf-8")).hexdigest()
| task | Lift the medium-sized green bottle ensuring it remains upright. |
| prompt | A video recorded from a robot's point of view executing the following instruction: Lift the medium-sized green bottle ensuring it remains upright. |
| key | 83eacc02ca58bc93ecd638b3d2318494f442778e62a71a13d7987dfdb649fe18 |
Contents
| Path | Description |
|---|---|
shards/shard_NNNNN.safetensors |
520 shards × 2,000 prompts (last one 1,891), ~2.10 GB each |
manifest.txt |
All 1,039,891 keys, sorted, one per line — line i is row i % 2000 of shard i // 2000 |
Each shard holds two row-aligned tensors, plus __metadata__["keys"] (JSON list of that shard's
keys in row order):
| Tensor | Shape | Dtype |
|---|---|---|
contexts |
[N, 128, 4096] |
bfloat16 |
masks |
[N, 128] |
bool |
masks marks valid tokens (mean 40.9 of 128). Values past the mask are raw T5 outputs rather than
zeros. Zero them on load (context[~mask] = 0) if your model does not apply the mask.
Converting back to the per-file .pt layout
The training pipeline reads a flat directory of {key}.t5_len128.wan22ti2v5b.pt files, each a
{"context", "mask"} dict, rather than shards. This script reconstructs that layout:
# unpack_to_pt.py -- rebuild the flat .pt cache from the sharded release.
# python unpack_to_pt.py /path/to/text_embeds_cache/robotwin2.0_3d
import json, os, sys
from concurrent.futures import ThreadPoolExecutor
import torch
from huggingface_hub import hf_hub_download
from safetensors import safe_open
REPO, NSHARD = "flex-pi/robotwin_3d_text_embeds_cache", 520
out, tmp = sys.argv[1], "/tmp/tec_shards"
os.makedirs(out, exist_ok=True)
def do(i):
# local_dir= gives a real file we can delete; the default cache would only
# yield a symlink, so removing it frees nothing.
p = hf_hub_download(REPO, f"shards/shard_{i:05d}.safetensors",
repo_type="dataset", local_dir=tmp)
with safe_open(p, framework="pt") as f:
ks = json.loads(f.metadata()["keys"])
C, M = f.get_slice("contexts"), f.get_slice("masks")
for r, k in enumerate(ks):
dst = os.path.join(out, f"{k}.t5_len128.wan22ti2v5b.pt")
if not os.path.exists(dst):
torch.save({"context": C[r], "mask": M[r]}, dst)
os.remove(p) # drop the 2 GB shard once expanded
print(f"shard {i:05d} -> {len(ks)} files", flush=True)
with ThreadPoolExecutor(4) as ex:
list(ex.map(do, range(NSHARD)))
Expands to ~1 TB across 1,039,891 files. Point text_embedding_cache_dir at out afterwards.
To pull only part of it, pass a subset of shard indices — each shard is self-describing.
Random access without unpacking
Resolve one prompt to its shard and read only that row; get_slice avoids loading the 2 GB shard:
import bisect, hashlib, json
from huggingface_hub import hf_hub_download
from safetensors import safe_open
REPO, SHARD = "flex-pi/robotwin_3d_text_embeds_cache", 2000
TPL = "A video recorded from a robot's point of view executing the following instruction: {task}"
keys = open(hf_hub_download(REPO, "manifest.txt", repo_type="dataset")).read().split()
def get(task):
h = hashlib.sha256(TPL.format(task=task).encode("utf-8")).hexdigest()
i = bisect.bisect_left(keys, h)
if i == len(keys) or keys[i] != h:
raise KeyError(task)
p = hf_hub_download(REPO, f"shards/shard_{i // SHARD:05d}.safetensors", repo_type="dataset")
with safe_open(p, framework="pt") as f:
r = i % SHARD
return f.get_slice("contexts")[r], f.get_slice("masks")[r]
ctx, mask = get("Lift the medium-sized green bottle ensuring it remains upright.")
print(ctx.shape, ctx.dtype, int(mask.sum())) # torch.Size([128, 4096]) torch.bfloat16 49
Provenance
Repacked byte-exactly from the original per-prompt .pt cache; tensors are bit-identical, verified
by round-trip comparison against the source files. Encoder UMT5-XXL, context length 128, bfloat16.
- Downloads last month
- 143