robotwin_3d_text_embeds_cache
收藏资源简介:
该数据集为 RoboTwin 2.0 3D 数据集(flex-pi/robotwin_3d)的预计算文本嵌入缓存,由 UMT5-XXL 编码器生成,用于 Wan2.2-TI2V-5B 模型。包含 1,039,891 个唯一任务提示的嵌入,每个提示被包装在固定模板中后编码,缓存键为模板化提示的 SHA256 哈希。数据以 520 个 safetensors 分片文件存储(每个分片约 2.10 GB,最后分片 1,891 个提示),每个分片包含两个行对齐的张量:contexts(形状 [N, 128, 4096],bfloat16)和 masks(形状 [N, 128],bool),其中 masks 指示有效 token(平均 40.9/128)。还提供了 manifest.txt 文件(所有键排序列表)以及从分片重建为每个提示独立 .pt 文件的脚本。支持随机访问:通过 manifest.txt 确定分片索引,使用 get_slice 仅读取所需行。该缓存可避免重复计算编码产生的 GPU 时间。
This dataset is a precomputed text embedding cache for the RoboTwin 2.0 3D dataset (flex-pi/robotwin_3d), generated by the UMT5-XXL encoder for the Wan2.2-TI2V-5B model. It contains embeddings for 1,039,891 unique task prompts, each wrapped in a fixed template before encoding. The cache key is the SHA256 hash of the templated prompt. The data is stored in 520 safetensors shard files (each ~2.10 GB, last shard 1,891 prompts), with each shard containing two row-aligned tensors: contexts (shape [N, 128, 4096], bfloat16) and masks (shape [N, 128], bool), where masks indicate valid tokens (average 40.9/128). A manifest.txt file (sorted list of all keys) and a script to reconstruct the shards into individual .pt files per prompt are also provided. Random access is supported: locate the shard index via manifest.txt and use get_slice to read only the required rows. This cache avoids GPU time for repeated encoding computation.
RoboTwin 2.0 3D — T5 文本嵌入缓存数据集
数据集概述
本数据集为 RoboTwin 2.0 3D 数据集中 1,039,891 条唯一任务提示 预计算的 UMT5-XXL 文本嵌入缓存。该缓存由 Wan2.2-TI2V-5B 模型使用,可避免重复计算产生的大量 GPU 时间消耗。
基本信息
- 许可证: Apache-2.0
- 任务类别: 机器人学 (robotics)
- 标签: robotics, text-embeddings, t5, wan2.2
- 数据集规模: 1M < n < 10M
- 源数据集: flex-pi/robotwin_3d
缓存键机制
- 任务字符串使用固定模板包装后编码,缓存键为模板化提示的 SHA256 哈希值。
- 模板格式:
A video recorded from a robots point of view executing the following instruction: {task} - 键计算方式:
sha256(DEFAULT_PROMPT.format(task=task).encode("utf-8")).hexdigest()
数据集内容
| 路径 | 描述 |
|---|---|
shards/shard_NNNNN.safetensors |
520 个分片 × 2,000 条提示(最后一个 1,891 条),每片约 2.10 GB |
manifest.txt |
全部 1,039,891 个键,已排序,每行一个 — 第 i 行对应分片 i // 2000 的第 i % 2000 行 |
每个分片包含两个行对齐的张量及 __metadata__["keys"](该分片键的 JSON 列表):
| 张量 | 形状 | 数据类型 |
|---|---|---|
contexts |
[N, 128, 4096] | bfloat16 |
masks |
[N, 128] | bool |
注意事项: masks 标记有效标记(平均 40.9 / 128)。掩码之外的值是原始 T5 输出而非零值。加载时若模型不应用掩码,需将超出部分置零(context[~mask] = 0)。
使用方式
转换为逐文件 .pt 布局
可通过提供的 unpack_to_pt.py 脚本将分片布局重建为扁平目录结构,每个文件包含 {"context", "mask"} 字典。展开后约 1 TB,共 1,039,891 个文件。
随机访问(无需解包)
可通过 manifest.txt 结合二分查找定位分片,使用 get_slice 直接读取指定行,避免加载整个 2 GB 分片。
数据溯源
从原始逐提示 .pt 缓存逐字节精确重打包;张量位级一致,已通过源文件往返比较验证。编码器为 UMT5-XXL,上下文长度 128,数据类型 bfloat16。





