nemotron-gym-knowledge-openqa
收藏资源简介:
该数据集是nvidia/Nemotron-RL-knowledge-openqa数据集的Harbor格式转换版本,专为强化学习环境设计。其核心内容是知识开放问答任务,每个数据样本代表一个完整的、可执行的强化学习环境任务包。数据以表格形式组织,每行包含两个关键字段:`path`(一个确定性的短标识符字符串)和`task_binary`(一个经过gzip压缩的tar归档文件二进制数据)。tar包内部遵循标准的Harbor任务布局,包含以下文件:`instruction.md`(展示给智能体的提示文本)、`environment/Dockerfile`(基于特定Python版本的基础环境及任务依赖)、`tests/test.sh`(验证器入口脚本)、`tests/verifier.py`(确定性的验证器实现代码)、`tests/verifier_data.json`(JSON格式的验证器输入数据,不进行代码插值)、`metadata.json`(包含来源数据集、行索引、任务族等信息的元数据)以及`task.toml`(标准的Harbor任务配置文件,定义了CPU、内存、超时等默认设置)。数据转换过程注重安全性,确保数据集内容不会被插值到Shell、Python或Dockerfile源代码中,所有动态值通过`verifier_data.json`传递;基础Docker镜像被固定;文本字段经过清理;压缩包路径经过防遍历等安全验证;并且生成的tar包是确定性的,保证了字节级可复现性。数据集使用的验证器类型为normalized_text,涉及文本的空白字符、大小写和标点符号规范化及子字符串匹配。该数据集适用于训练和评估在知识问答场景下的强化学习智能体,数据规模在10万到100万个任务样本之间。
This dataset is a Harbor format conversion of the nvidia/Nemotron-RL-knowledge-openqa dataset, designed for reinforcement learning environments. Its core content is knowledge open question answering tasks, with each data sample representing a complete, executable reinforcement learning environment task package. The data is organized in tabular form, with each row containing two key fields: `path` (a deterministic short identifier string) and `task_binary` (a gzip-compressed tar archive binary data). The tar package internally follows the standard Harbor task layout, including the following files: `instruction.md` (prompt text displayed to the agent), `environment/Dockerfile` (base environment based on a specific Python version and task dependencies), `tests/test.sh` (verifier entry script), `tests/verifier.py` (deterministic verifier implementation code), `tests/verifier_data.json` (JSON format verifier input data without code interpolation), `metadata.json` (metadata containing source dataset, row index, task family, etc.), and `task.toml` (standard Harbor task configuration file defining default settings such as CPU, memory, timeout). The data conversion process emphasizes security, ensuring that dataset content is not interpolated into Shell, Python, or Dockerfile source code; all dynamic values are passed via `verifier_data.json`; base Docker images are fixed; text fields are cleaned; compressed package paths undergo security validation against traversal; and the generated tar packages are deterministic, ensuring byte-level reproducibility. The dataset uses a verifier type of normalized_text, involving normalization of whitespace, case, and punctuation, and substring matching. It is suitable for training and evaluating reinforcement learning agents in knowledge question answering scenarios, with a data scale ranging from 100,000 to 1,000,000 task samples.
数据集概述:laion/nemotron-gym-knowledge-openqa
该数据集是 NVIDIA 的 Nemotron-RL-knowledge-openqa 数据集的 Harbor 格式转换版本,专为强化学习(Reinforcement-Learning)场景设计,属于 NVIDIA NeMo-Gym 集合 的一部分。
基本信息
- 许可证:cc-by-4.0
- 语言:英语(en)
- 数据集规模:100K < n < 1M 条样本
- 标签:harbor, nemotron-gym, rl, verifiable-rewards
数据结构
每行数据包含两个字段:
| 列名 | 类型 | 描述 |
|---|---|---|
path |
字符串 | 确定性短ID(格式:<family>-<sha256[:12]>.tar.gz) |
task_binary |
二进制 | 包含完整 Harbor 任务的 Gzip 压缩 tar 包 |
Harbor 任务布局(tarball 内容)
每个 tar 包内部遵循 Harbor 的标准任务布局:
- instruction.md:提供给代理(agent)的提示文本
- environment/Dockerfile:基于
python:3.11-slim-bookworm的 Docker 镜像,包含任务特定的 pip 依赖 - tests/test.sh:验证器入口脚本,负责写入
/logs/verifier/reward.txt - tests/verifier.py:验证器的确定性实现
- tests/verifier_data.json:每个任务的验证器输入数据(JSON 格式,不含代码插值)
- metadata.json:元数据,包括来源数据集、行索引、所属家族等信息
- task.toml:标准 Harbor 任务配置(CPU、内存、超时等默认设置)
验证器家族
采用 normalized_text 验证方式,即对文本进行标准化(包括去除多余空白、统一大小写和标点符号)后执行子字符串匹配。
转换安全特性
该数据集由 OpenThoughts-Agent 的 data/nemotron_gym 适配器生成,转换过程遵循“构建即安全”原则:
- 数据集内容从不插入到 shell、Python 或 Dockerfile 源码中,所有值通过
tests/verifier_data.json(JSON 格式,运行时解析)传递 - 基础镜像固定为
python:3.11-slim-bookworm,pip 依赖清单经过严格的允许列表正则验证 - 文本字段已清除 C0/C1 控制字符,长度设有上限,tar 包路径已防止遍历、空字节和绝对路径攻击
- tar 包具有确定性(条目排序、
mtime=0、uid/gid=0),确保可重复的字节输出




