glaive-code-assistant-sandboxes-verified
收藏资源简介:
laion/glaive-code-assistant-sandboxes-verified 是一个Harbor任务二进制数据集,包含10,000个自包含的编码助手问答任务,适用于文本生成和强化学习任务。该数据集基于Glaive-Code-Assistant构建,并重新打包自`DCAgent/glaive-code-assistant-sandboxes`,遵循Harbor/TaskTrove任务模式。数据集包含两列:`path`(字符串类型)和`task_binary`(gzip tar格式)。每个任务沙箱都集成了LLM评判器,该评判器移植自OpenThoughts-Agent的`data.nemotron_gym`框架,用于评估代理响应的质量。验证时,系统会读取代理的响应文件(`/app/response.txt`)和任务指令与评分标准(`/tests/verifier_data.json`),通过`litellm`调用LLM评判器(默认使用`openai/gpt-4o-mini`模型),并输出一个0.0到1.0的奖励分数。数据集移除了参考解决方案(`solution/`)以防止奖励黑客攻击,并添加了明确的`response.txt`提交指南。验证过程需要`OPENAI_API_KEY`环境变量,并可在`task.toml`中配置。评分标准涵盖正确性、完整性、清晰度和相关性。数据集使用共享的`ubuntu:24.04`环境,适用于编码助手、代理训练和LLM评判等应用场景。
laion/glaive-code-assistant-sandboxes-verified is a Harbor task binary dataset containing 10,000 self-contained coding assistant question-answer tasks, suitable for text generation and reinforcement learning tasks. It is based on Glaive-Code-Assistant and repackaged from `DCAgent/glaive-code-assistant-sandboxes`, following the Harbor/TaskTrove task pattern. The dataset includes two columns: `path` (string type) and `task_binary` (gzip tar format). Each task sandbox integrates an LLM evaluator, ported from the OpenThoughts-Agents `data.nemotron_gym` framework, to assess the quality of agent responses. During verification, the system reads the agents response file (`/app/response.txt`) and the task instructions with scoring criteria (`/tests/verifier_data.json`), invokes the LLM evaluator via `litellm` (default using the `openai/gpt-4o-mini` model), and outputs a reward score from 0.0 to 1.0. The dataset removes reference solutions (`solution/`) to prevent reward hacking and adds explicit `response.txt` submission guidelines. Verification requires the `OPENAI_API_KEY` environment variable and can be configured in `task.toml`. Scoring criteria cover correctness, completeness, clarity, and relevance. The dataset uses a shared `ubuntu:24.04` environment and is applicable to coding assistants, agent training, and LLM evaluation scenarios.
数据集概述
- 数据集名称:
laion/glaive-code-assistant-sandboxes-verified - 许可证: Apache-2.0
- 任务类别: 文本生成(text-generation)
- 标签: agent, harbor, reinforcement-learning, llm-judge
数据集描述
该数据集包含来自 Glaive-Code-Assistant 的独立编码助手问答任务,经过重新打包和处理。原始来源为 DCAgent/glaive-code-assistant-sandboxes,源数据未提供验证器,本数据集添加了 LLM 评判器(LLM judge),并在 instruction.md 中附加了明确的 response.txt 提交指南。为防止奖励黑客行为(reward-hacking),移除了沙箱中的参考 solution/ 目录。所有任务共享 ubuntu:24.04 环境。
数据集规模与结构
- 任务数量: 10,000 个任务
- 列字段:
path(字符串)task_binary(gzip tar 格式)
- 模式: 遵循 Harbor / TaskTrove 任务模式。
验证机制
每个任务的沙箱中包含一个 LLM 评判验证器,移植自 OpenThoughts-Agent 的 data.nemotron_gym 框架(verifiers/llm_judge.py)。验证过程如下:
- 在验证时,
tests/test_state.py读取代理生成的/app/response.txt以及/tests/verifier_data.json(包含任务指令和适配的评分标准)。 - 通过
litellm调用 LLM 评判器(默认模型为openai/gpt-4o-mini)。 - 将 0.0 到 1.0 的奖励值写入
/logs/verifier/reward.txt。
注意: 运行时需要设置 OPENAI_API_KEY(通过 task.toml 的 [verifier].env 传播给验证容器),可选地可通过 JUDGE_MODEL 覆盖评判模型。
评分标准
评判器根据以下维度对编码问答进行评分:
- 正确性(correctness)
- 完整性(completeness)
- 清晰度(clarity)
- 相关性(relevance)




