Renaissance Labs · Code
Code / Stage 06
Stage 06

Tools: data pipelines, sandboxes, trainers

Dedup, decontamination, sandboxes, and the frameworks that run the training.

Who needs this

The supporting cast. Pick tools by what you already run: a single GPU box, an HPC cluster with Apptainer, or a managed cloud.

Decisions you will make

  • Data tooling: how you deduplicate, decontaminate, filter licenses, and remove personal data.
  • Sandbox: Docker with strict flags on one machine, rootless containers on a cluster, or a hosted sandbox service.
  • Trainer: a simple SFT trainer first, an RL framework only when you are ready for rollouts.

Pitfalls

  • Running model-generated code on your host. Always use a container or VM with no network and limited memory, CPU, and processes.
  • Rolling your own dedup or decontamination without testing it on known duplicates.
  • Choosing an RL framework before you have a verifier. The verifier is the hard part.

Tools 61

Tooln/a

Apptainer

HPC container runtime that runs without root; needed on clusters like Berzelius where Docker is unavailable. SWE images must be converted from Docker.

RLEvalToolsPermissive
Tool2023-2025

AReaL

Async RL system for LLM agents (repo now under areal-project). Verified active on GitHub API.

RLToolsApache-2.0
Tool

bigcode-dataset

The BigCode data repo: preprocessing filters, PII pipeline, near-deduplication and benchmark decontamination scripts for The Stack and StarCoder.

ToolsApache-2.0
Tooln/a

bigcode-evaluation-harness

Code LLM eval harness that executes untrusted generations; README provides Dockerfiles for evaluating in containers 'for security and reproducibility' and supports generating on GPUs then executing elsewhere.

RLEvalToolsApache-2.0
Tooln/a

bubblewrap

Unprivileged namespace sandbox used by Flatpak; lightweight wrapper for running test commands.

RLEvalToolsCopyleft
Tool

Data-Juicer

One-stop data processing system with 100+ operators for text, code and multimodal data, including code filters and dedup.

ToolsApache-2.07,272 stars
Tool

datasketch

Python library for MinHash, LSH, LSH Forest and HyperLogLog used for near-duplicate detection.

ToolsMIT2,981 stars
Tool

datatrove

Hugging Face's platform-agnostic data pipeline library: readers, filters, MinHash dedup, tokenization, and executors for local, Slurm and Ray.

ToolsApache-2.0
Tool

DCLM (DataComp-LM)

Framework and baselines for data curation experiments including fastText quality classifier filtering of web text.

ToolsMIT1,479 stars
Tool

decon (Ai2)

Token-based decontamination tool that finds training documents containing eval instances and writes reports and cleaned datasets.

ToolsApache-2.040 stars
Tool

deduplicate-text-datasets (suffix array)

Google's suffix-array exact substring dedup tool from the Lee et al. dedup paper.

ToolsApache-2.01,272 stars; archived
Tooln/a

Docker (Moby)

Container runtime standard for SWE task images; shares the host kernel so isolation is weaker than microVMs. Default for SWE-bench, SWE-smith, R2E-Gym.

RLEvalToolsApache-2.0
Tool

Dolma toolkit

Ai2 data toolkit: fast Rust tagger/mixer, Bloom filter dedup and mixing used for OLMo corpora.

ToolsApache-2.01,566 stars
Tool

duplodocus

Ai2 Rust CLI for exact and MinHash dedup over large JSONL datasets.

ToolsApache-2.099 stars
Tooln/a

E2B

Open-source cloud sandboxes for agents (isolation technology not verified here).

RLEvalToolsApache-2.0
Tooln/a

Firecracker

microVM monitor: strongest isolation for untrusted code at scale; underpins E2B-style sandboxes.

RLEvalToolsApache-2.0
Tool

GitHub Linguist

The reference language-detection library and language list behind GitHub's language stats.

ToolsMIT13,804 stars
Tool

go-enry

Fast Go port of GitHub Linguist for programming language detection; used by The Stack v3 for language, vendor and generated-file flags.

ToolsApache-2.0633 stars
Tool

go-license-detector

Go library and CLI to detect open-source licenses in a repository's files, used in earlier The Stack pipelines.

ToolsSee source236 stars
Tooln/a

gVisor

User-space kernel for container isolation as an OCI runtime (runsc).

RLEvalToolsApache-2.0
Tool2025

Harbor

Framework for running agents in containerized tasks: used for Terminal-Bench 2, SWE-bench adapters, and RL rollouts; supports Docker and cloud sandboxes.

RLEvalToolsApache-2.0
Tool

Hugging Face tokenizers

Rust tokenizer library for training BPE, Unigram and WordPiece vocabularies.

ToolsApache-2.011,296 stars
Tooln/a

isolate

IOI contest sandbox with cgroup limits; used by Judge0.

RLEvalToolsCopyleft
Tooln/a

Judge0

Online judge API with sandboxed execution for 60+ languages.

RLEvalToolsGPL-3.0
Tooln/a

Kata Containers

Containers in lightweight VMs; Kubernetes friendly.

RLEvalToolsApache-2.0
Tool

Licensee

Ruby tool GitHub uses to detect a project's license from its LICENSE file.

ToolsMIT922 stars
Tool

lm-evaluation-harness (code tasks)

The standard few-shot LLM harness; code coverage is basic.

EvalToolsMIT
Tool

Microsoft Presidio

PII detection and anonymization SDK with recognizers and custom operators (repo moved from microsoft/presidio).

ToolsMIT12,030 stars
Tooln/a

mini-swe-agent

Roughly 100-line bash-only agent; simple harness for RL rollouts.

RLEvalToolsMIT
Tooln/a

Modal sandboxes (SDK)

SDK for Modal, with Sandboxes for running untrusted code on demand; hosted service, SDK is open source.

RLEvalToolsApache-2.0
Tool

nanotron

Minimalistic large-model pretraining library from Hugging Face, used with datatrove-tokenized data.

ToolsApache-2.02,871 stars
Tool

NeMo Curator

GPU-accelerated data curation for LLMs: dedup (exact, fuzzy, semantic), quality classifiers, PII, decontamination, synthetic data.

ToolsApache-2.01,872 stars
Tool2023-2025

NeMo-RL

NVIDIA scalable RL toolkit, pairs with NeMo Gym. Verified active on GitHub API.

RLToolsApache-2.0
Tooln/a

nsjail

Namespace/seccomp/cgroup jail for process isolation.

RLEvalToolsApache-2.0
Tool2025

NVIDIA NeMo Gym

Framework and collection of RLVR environments and datasets (competitive coding, SWE) for NeMo-RL and other trainers.

RLToolsApache-2.0
Tool2023-2025

Open-Instruct (AI2)

AI2 post-training codebase including RLVR (GRPO) training. Verified active on GitHub API.

SFTPreferenceRLToolsApache-2.0
Tool2025

OpenEnv

Interface library for RL post-training with environments (Gym-style API served over containers).

RLToolsBSD-3-Clause
Tooln/a

OpenHands

Agent platform and runtime with docker sandbox; used to generate SWE-Gym and Nemotron trajectories.

RLEvalToolsMIT
Tool2023-2025

OpenRLHF

Ray-based scalable RL framework with PPO/REINFORCE variants and agentic mode. Verified active on GitHub API.

RLToolsApache-2.0
Tooln/a

Piston

Multi-language code execution engine with API.

RLEvalToolsMIT
Tooln/a

Podman

Daemonless, rootless Docker-compatible container engine; useful where a root daemon is not allowed.

RLEvalToolsApache-2.0
Tool2023-2025

prime-rl

Async agentic RL training at scale; integrates with verifiers environments. Verified active on GitHub API.

RLToolsApache-2.0
Tool2026

Repo2RLEnv

Hugging Face tool that turns any repository into verifiable RL environments for coding agents in Harbor task format (instruction, Dockerfile, tests, reward script).

RLToolsApache-2.0
Tool2023-2025

rLLM

Framework behind DeepCoder and SWE agent RL runs. Verified active on GitHub API.

RLToolsApache-2.0
Tool2023-2025

ROLL

Alibaba RL library with agentic pipelines. Verified active on GitHub API.

RLToolsApache-2.0
Tooln/a

SandboxFusion

ByteDance code sandbox with many languages and datasets, built for RL code rewards; used to build CodeContests+.

RLEvalToolsApache-2.0
Tool

ScanCode Toolkit

License, copyright and package detection engine used by The Stack v2 and v3 for file-level license labels.

ToolsMixed licenses2,679 stars
Tool

SentencePiece

Unsupervised tokenizer for BPE/unigram; many code and multilingual models use it.

ToolsApache-2.012,181 stars
Tool2023-2025

SkyRL

Modular full-stack RL library including SkyRL-gym environments and multi-turn SWE training. Verified active on GitHub API.

RLToolsApache-2.0
Tool2023-2025

slime

SGLang-based RL scaling framework from Tsinghua/Z.ai. Verified active on GitHub API.

RLToolsApache-2.0
Tool

Software Heritage archive and graph

Universal archive of public source code; The Stack v2 sourced contents via SWH, and graph dataset/swh-graph tools allow bulk analysis.

ToolsGated or custom terms
Tool

SPDX license list data

Canonical machine-readable list of SPDX license ids and texts.

ToolsPermissive720 stars
Tool

Stack-Edu / Python-Edu classifiers

Educational-quality scorers for code (0-5 scale, LLM-annotated labels) used to build Stack-Edu and Python-Edu.

ToolsSee source
Tool

StarPII (bigcode)

BigCode's NER model for detecting names, emails, keys, passwords and IPs in code, used for The Stack v2/v3 PII redaction.

ToolsGated or custom terms
Tooln/a

SWE-agent

Princeton agent harness for GitHub issue tasks.

RLEvalToolsMIT
Tool

text-dedup

Collection of deduplication methods for text: MinHash, SimHash, suffix array, Bloom filter, exact hash.

ToolsApache-2.0765 stars
Tool

tiktoken

Fast BPE tokenizer library; reference for counting tokens in mixes.

ToolsMIT19,719 stars
Tool

tree-sitter

Incremental parser with grammars for many languages; used to parse code for syntax filtering, AST-based chunking and function extraction.

ToolsMIT27,563 stars
Tool2023-2025

TRL

Hugging Face RL library with GRPO trainer and custom reward functions. Verified active on GitHub API.

SFTPreferenceRLToolsApache-2.0
Tool2025

verifiers (Prime Intellect)

Library for RL environments and evals; environments are installable packages and can be published to the Prime Intellect Environments Hub.

RLEvalToolsMIT
Tool2023-2025

verl

HybridFlow RL post-training framework; supports GRPO/PPO with rule-based and sandbox code rewards. Verified active on GitHub API.

RLToolsApache-2.0