{
 "id": "carbon-x/Carbon-X",
 "path": "carbon-x/Carbon-X",
 "trainers": [
  "SFTTrainer",
  "AsyncGRPOTrainer"
 ],
 "project": "carbon-x",
 "name": "Carbon-X",
 "org": "HuggingFaceBio",
 "avatar": "https://cdn-avatars.huggingface.co/v1/production/uploads/5f0c746619cb630495b814fd/Alv1BYsORk-HMLuEqKhD7.png",
 "hub_url": "https://huggingface.co/collections/HuggingFaceBio/carbon-x-6ad91dc8e24ad724eb111842",
 "meta": {
  "title": "Carbon-X post-training",
  "project": "carbon-x",
  "trainers": [
   "SFTTrainer",
   "AsyncGRPOTrainer"
  ],
  "model_id": "HuggingFaceBio/Carbon-X",
  "description": "Post-training of Carbon-X, a 14B DNA and language model: SFT of the midtrained Carbon-X-Base on FineDNA, then async GRPO with verifiable DNA rewards, thinking off.",
  "tags": [
   "full-finetune",
   "dna",
   "genomics",
   "rlvr",
   "deepspeed",
   "fsdp2"
  ],
  "date_added": "2026-11-20",
  "blog": "https://huggingface.co/spaces/HuggingFaceBio/Carbon-X-Release"
 },
 "hardware": {
  "hf_jobs": "h200x8 per stage",
  "local": "8 GPUs, H100 or H200 class (FlashAttention 3), per stage"
 },
 "datasets": {
  "train": [
   "HuggingFaceBio/FineDNA (sft_mix)",
   "HuggingFaceBio/FineDNA (rl_mix)"
  ],
  "eval": {
   "bioreason_coding": "HuggingFaceBio/DNAIntelligenceIndex, BioReason Coding (1,018 variants, balanced accuracy)",
   "bioreason_non_snv": "HuggingFaceBio/DNAIntelligenceIndex, BioReason Non-SNV (873 variants, balanced accuracy)",
   "genomeqa": "HuggingFaceBio/DNAIntelligenceIndex, GenomeQA (2,600 questions, mean of 6 task accuracies)",
   "nextbase": "HuggingFaceBio/DNAIntelligenceIndex, NextBase (600 sequences, per-base accuracy)",
   "frontier_vep": "HuggingFaceBio/DNAIntelligenceIndex, FrontierVEP (1,000 variants, accuracy)"
  }
 },
 "hyperparameters": {
  "sft_start": "HuggingFaceBio/Carbon-X-Base",
  "sft_learning_rate": 1e-05,
  "sft_lr_schedule": "cosine to 1e-6",
  "sft_global_batch_size": 32,
  "sft_max_length": 9984,
  "sft_epochs": 3,
  "sft_loss": "assistant tokens only",
  "rl_start": "HuggingFaceBio/Carbon-X-SFT",
  "rl_learning_rate": 1e-06,
  "rl_num_generations": 16,
  "rl_max_completion_length": 4096,
  "rl_epsilon": 0.2,
  "rl_epsilon_high": 0.28,
  "rl_max_staleness": 4,
  "rl_temperature": 1.0,
  "max_grad_norm": 0.2,
  "thinking": false
 },
 "vllm": {
  "version": "0.25.1",
  "rl_server": "4 GPUs, data parallel, max_model_len 16384, NCCL weight transfer"
 },
 "trl": {
  "version": "1.16.0"
 },
 "code": {
  "repo": "https://github.com/huggingface/carbon",
  "commit": "4ca3ce3e5c55e5821d6068bac5c6e3806027a26f",
  "path": "carbon-x"
 },
 "scripts": {
  "train": {
   "hf_jobs": "train_hf_jobs.sh",
   "local": "train_local.sh"
  },
  "eval": {
   "hf_jobs": "eval_hf_jobs.sh",
   "local": "eval_local.sh"
  }
 },
 "builder": {
  "verified": {
   "hf_jobs": false,
   "local": false
  },
  "local_note": {
   "train": "Needs 8 GPUs, H100 or H200 class, per stage. The training code is cloned to <code>./carbon</code>, and checkpoints are pushed to your namespace (<code>&lt;you&gt;/Carbon-X-SFT</code>, <code>&lt;you&gt;/Carbon-X-RL</code>).",
   "eval": "Needs a GPU with 80 GB or more (every GPU of the machine serves the model). The evaluation code is cloned to <code>./carbon</code>, and Inspect logs go to <code>./carbon/carbon-x/logs</code>."
  },
  "train": [
   {
    "env": "STAGE",
    "label": "Stage",
    "choices": [
     "sft",
     "rl"
    ]
   },
   {
    "env": "MODEL",
    "label": "Start from",
    "input": true,
    "placeholder": "HuggingFaceBio/Carbon-X-Base for sft, HuggingFaceBio/Carbon-X-SFT for rl"
   }
  ],
  "eval": [
   {
    "env": "MODEL",
    "label": "Model",
    "input": true,
    "placeholder": "HuggingFaceBio/Carbon-X, or your <user>/Carbon-X-RL"
   },
   {
    "env": "BENCHMARKS",
    "label": "Benchmarks",
    "choices": [
     "bioreason_coding_sequence_only",
     "bioreason_non_snv",
     "genomeqa_mcq_carbon",
     "seqrecqa_varlen",
     "vepqa_single_1k"
    ],
    "multi": true
   },
   {
    "env": "LIMIT",
    "label": "Samples per benchmark",
    "input": true,
    "placeholder": "all (8 for a quick check)"
   }
  ]
 },
 "readme": "# Carbon-X post-training\n\nTwo stages, each on one machine with 8 GPUs (`h200x8` on HF Jobs), from the released checkpoints:\n\n1. **SFT** of [`HuggingFaceBio/Carbon-X-Base`](https://huggingface.co/HuggingFaceBio/Carbon-X-Base) on the `sft_mix`\n   config of [`HuggingFaceBio/FineDNA`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA): 20 subsets, 3 epochs,\n   loss on assistant tokens only, DeepSpeed ZeRO-3. The mixture covers variant-effect reasoning (about 30%), sequence\n   classification, DNA operations and skills, sequence recovery, biology Q&A, and chat and instruction-following data\n   that keep the model a good assistant.\n2. **RL** of `Carbon-X-SFT` with `AsyncGRPOTrainer` on the `rl_mix` config: 16 completions per prompt, thinking off,\n   rewards from code-checked verifiers. vLLM generates on 4 GPUs while FSDP2 trains on the other 4.\n\n| | SFT | RL |\n|---|---|---|\n| Learning rate | 1e-5, cosine to 1e-6 | 1e-6 |\n| Batch | 32 sequences (2 per GPU \u00d7 2 accumulation \u00d7 8 GPUs) | 16 completions per prompt, 134 accumulation steps on 4 GPUs |\n| Length | 9,984 tokens | 4,096 completion tokens, 16,384 tokens per micro-batch |\n| Other | Liger kernels, FlashAttention 3, max grad norm 0.2 | clip \u03b5 0.2 / 0.28 (DAPO clip-higher), rollouts at most 4 updates stale, max grad norm 0.2 |\n\nThe released model comes from two RL rounds: one epoch over 98,433 prompts chosen from the SFT model's own pass rates,\nthen a second round from that checkpoint on 58,249 prompts re-selected from its rollouts (about 2.2 passes in all).\n`rl.yaml` runs one round. Its rewards cover variant-effect prediction (with a penalty for rationales the sequence does\nnot support), sequence-feature classification, basic DNA operations, DNA skills, positions within sequences, biology\nmultiple-choice questions and instruction following. They are in\n[`src/carbon_x/rewards.py`](https://github.com/huggingface/carbon/blob/4ca3ce3e5c55e5821d6068bac5c6e3806027a26f/carbon-x/src/carbon_x/rewards.py).\n\n## Train\n\n`job.sh` runs one stage on an 8-GPU machine. It clones\n[huggingface/carbon](https://github.com/huggingface/carbon) at commit `4ca3ce3e`, installs its `uv.lock` (TRL 1.16.0,\nvLLM 0.25.1, Transformers 5.12.1, DeepSpeed 0.18.9) and runs `training/posttraining/sft.py` or `rl.py` with their\nconfigs. `train_hf_jobs.sh` sends it to an `h200x8` job; `train_local.sh` runs it on your machine.\n\n```sh\nSTAGE=sft bash train_hf_jobs.sh\nSTAGE=rl MODEL=<you>/Carbon-X-SFT bash train_hf_jobs.sh\n```\n\n- `MODEL` is the checkpoint to start from. Without it, SFT starts from `Carbon-X-Base` and RL from the released\n  `Carbon-X-SFT`.\n- Checkpoints are pushed to your namespace as they are saved: `<you>/Carbon-X-SFT` at every epoch, and\n  `<you>/Carbon-X-RL` (private) every 30 steps. The job needs nothing else: no bucket, no upload.\n- `MAX_STEPS=2` makes a smoke run. `TIMEOUT` sets the job's limit (default `3d`).\n\nThese scripts have not been run as written. The released model was trained on SLURM, and its RL stage served vLLM on a\nseparate 8-GPU node; on one node, vLLM gets 4 GPUs and training's gradient accumulation doubles to keep the batch.\n\n## Evaluate\n\nThe five benchmarks of the model card, from\n[`HuggingFaceBio/DNAIntelligenceIndex`](https://huggingface.co/datasets/HuggingFaceBio/DNAIntelligenceIndex), run as\n[Inspect](https://inspect.aisi.org.uk/) tasks with thinking off, the model's `generation_config.json` sampling and one\nsample per problem.\n\n| Benchmark | Task | Metric | Carbon-X |\n|---|---|---|--:|\n| BioReason Coding | `bioreason_coding_sequence_only` | balanced accuracy | 74.9 |\n| BioReason Non-SNV | `bioreason_non_snv` | balanced accuracy | 85.1 |\n| GenomeQA | `genomeqa_mcq_carbon` | mean of 6 task accuracies | 63.6 |\n| NextBase | `seqrecqa_varlen` | per-base accuracy | 39.4 |\n| FrontierVEP | `vepqa_single_1k` | accuracy | 70.4 |\n\n`eval_hf_jobs.sh` submits one `rtx-pro-6000` job per benchmark with the repository's `evaluation/evaluate.py`, and\nwrites Inspect logs and a `summary.json` per benchmark to your private bucket `<you>/Carbon-X-Evals`. `eval_local.sh`\nserves the model with vLLM on your GPUs and runs the same tasks with Inspect.\n\n```sh\nMODEL=<you>/Carbon-X-RL bash eval_hf_jobs.sh\nBENCHMARKS=\"vepqa_single_1k genomeqa_mcq_carbon\" LIMIT=8 bash eval_hf_jobs.sh   # quick check\n```\n",
 "files": {
  "train_local.sh": "#!/bin/bash\n# Carbon-X post-training on this machine (8 GPUs, H100 or H200 class): runs job.sh here, with the training code cloned\n# to ./carbon. Needs git, uv and a Hugging Face login that can write to your namespace (checkpoints are pushed there).\n#\n#   STAGE=sft bash train_local.sh\n#   STAGE=rl MODEL=<you>/Carbon-X-SFT bash train_local.sh\n#   STAGE=sft MAX_STEPS=2 bash train_local.sh            smoke run\n#\n# Not run in this form: the released model was trained on SLURM, RL with vLLM on its own node.\nset -euo pipefail\n\nSTAGE=\"${STAGE:?STAGE=sft or rl}\"\nHERE=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nexport STAGE HF_TOKEN=\"${HF_TOKEN:-$(hf auth token 2>/dev/null || true)}\"\nbash \"$HERE/job.sh\"\n",
  "train_hf_jobs.sh": "#!/bin/bash\n# Carbon-X post-training on HF Jobs: one h200x8 job per stage, running job.sh (sent with the job, nothing to upload).\n#\n#   STAGE=sft bash train_hf_jobs.sh                      HuggingFaceBio/Carbon-X-Base -> <you>/Carbon-X-SFT\n#   STAGE=rl MODEL=<you>/Carbon-X-SFT bash train_hf_jobs.sh\n#                                                        -> <you>/Carbon-X-RL; without MODEL, from the released SFT model\n#   STAGE=sft MAX_STEPS=2 bash train_hf_jobs.sh          smoke run\n#\n# The job pushes checkpoints to your namespace with the HF_TOKEN secret. Not run on HF Jobs in this form: the released\n# model was trained on SLURM, RL with vLLM on its own node (here, 4 of the 8 GPUs).\nset -euo pipefail\n\nSTAGE=\"${STAGE:?STAGE=sft or rl}\"\nTIMEOUT=\"${TIMEOUT:-3d}\"\nHERE=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\n\nENV=(--env \"STAGE=$STAGE\")\n[ -n \"${MODEL:-}\" ] && ENV+=(--env \"MODEL=$MODEL\")\n[ -n \"${MAX_STEPS:-}\" ] && ENV+=(--env \"MAX_STEPS=$MAX_STEPS\")\n\n# The CUDA image has the compiler DeepSpeed and Triton need; the job adds git and uv, then runs job.sh\nhf jobs run --detach \\\n    --flavor h200x8 --timeout \"$TIMEOUT\" --secrets HF_TOKEN \"${ENV[@]}\" \\\n    nvidia/cuda:13.0.2-cudnn-devel-ubuntu24.04 \\\n    bash -c \"apt-get update -qq && apt-get install -y -qq git curl ca-certificates > /dev/null\ncurl -LsSf https://astral.sh/uv/install.sh | sh && export PATH=\\\"\\$HOME/.local/bin:\\$PATH\\\" && cd /tmp\n$(cat \"$HERE/job.sh\")\"\n",
  "eval_local.sh": "#!/bin/bash\n# The five Carbon-X DNA benchmarks on this machine: vLLM serves the model on every GPU (data parallel) and Inspect runs\n# each benchmark against it, with the settings of the HF Jobs evals (thinking off, the model's generation_config.json\n# sampling, one sample per problem). The code is huggingface/carbon at a pinned commit, cloned to ./carbon.\n# Inspect logs go to ./carbon/carbon-x/logs. Needs a GPU with 80 GB or more, git and uv.\n#\n#   bash eval_local.sh\n#   MODEL=<you>/Carbon-X-RL BENCHMARKS=\"vepqa_single_1k\" LIMIT=8 bash eval_local.sh\nset -euo pipefail\n\nMODEL=\"${MODEL:-HuggingFaceBio/Carbon-X}\"\nBENCHMARKS=\"${BENCHMARKS:-bioreason_coding_sequence_only bioreason_non_snv genomeqa_mcq_carbon seqrecqa_varlen vepqa_single_1k}\"\nLIMIT=\"${LIMIT:-}\"\nMAX_MODEL_LEN=\"${MAX_MODEL_LEN:-40960}\"   # Carbon-X's context window\nWORKDIR=\"${WORKDIR:-$PWD/carbon}\"\nCOMMIT=4ca3ce3e5c55e5821d6068bac5c6e3806027a26f\n\n[ -d \"$WORKDIR/.git\" ] || git clone -q https://github.com/huggingface/carbon.git \"$WORKDIR\"\ngit -C \"$WORKDIR\" checkout -q \"$COMMIT\"\ncd \"$WORKDIR/carbon-x\"\nuv sync --frozen\nsource .venv/bin/activate\n\nGPUS=$(nvidia-smi --list-gpus | wc -l)\nVLLM_USE_AOT_COMPILE=0 vllm serve \"$MODEL\" --host 127.0.0.1 --port 8000 --data-parallel-size \"$GPUS\" \\\n    --max-model-len \"$MAX_MODEL_LEN\" --reasoning-parser qwen3 --trust-remote-code --disable-uvicorn-access-log \\\n    > vllm.log 2>&1 &\nVLLM_PID=$!\ntrap 'kill $VLLM_PID 2>/dev/null || true' EXIT\nuntil curl -sf http://127.0.0.1:8000/health > /dev/null; do\n    kill -0 $VLLM_PID 2>/dev/null || { tail -50 vllm.log; echo \"vLLM exited\" >&2; exit 1; }\n    sleep 10\ndone\nexport VLLM_BASE_URL=http://127.0.0.1:8000/v1\n\nfor BENCH in $BENCHMARKS; do\n    case \"$BENCH\" in\n        bioreason_coding_sequence_only|bioreason_non_snv) TASK=\"evaluation/tasks/bioreason.py@$BENCH\"; MARGIN=5120 ;;\n        genomeqa_mcq_carbon) TASK=\"evaluation/tasks/genomeqa.py@$BENCH\"; MARGIN=17408 ;;   # the longest prompt is 17,225 tokens\n        seqrecqa_varlen) TASK=\"evaluation/tasks/seqrecqa.py@$BENCH\"; MARGIN=5120 ;;\n        vepqa_single_1k) TASK=\"evaluation/tasks/vepqa.py@$BENCH\"; MARGIN=5120 ;;\n        *) echo \"unknown benchmark $BENCH\" >&2; exit 1 ;;\n    esac\n    inspect eval \"$TASK\" --model \"vllm/$MODEL\" --max-connections 128 --max-tokens $((MAX_MODEL_LEN - MARGIN)) \\\n        --extra-body '{\"chat_template_kwargs\": {\"enable_thinking\": false}}' \\\n        --retry-on-error 1 --no-fail-on-error ${LIMIT:+--limit \"$LIMIT\"}\ndone\n",
  "eval_hf_jobs.sh": "#!/bin/bash\n# The five Carbon-X DNA benchmarks on HF Jobs, one job per benchmark (rtx-pro-6000, vLLM), with the evaluation code of\n# huggingface/carbon at a pinned commit: thinking off, the model's generation_config.json sampling, one sample per\n# problem, as on the model card. Inspect logs and a summary.json per benchmark go to your private bucket\n# <you>/Carbon-X-Evals, created if needed.\n#\n#   bash eval_hf_jobs.sh                                          HuggingFaceBio/Carbon-X on all five\n#   MODEL=<you>/Carbon-X-RL BENCHMARKS=\"vepqa_single_1k genomeqa_mcq_carbon\" LIMIT=8 bash eval_hf_jobs.sh\n#\n# Runs from this machine (no GPU): it clones the code to ./carbon and submits the jobs. Needs git, uv and `hf auth login`.\nset -euo pipefail\n\nMODEL=\"${MODEL:-HuggingFaceBio/Carbon-X}\"\nBENCHMARKS=\"${BENCHMARKS:-}\"   # empty: all five\nLIMIT=\"${LIMIT:-}\"             # empty: every sample\nWORKDIR=\"${WORKDIR:-$PWD/carbon}\"\nCOMMIT=4ca3ce3e5c55e5821d6068bac5c6e3806027a26f\n\n[ -d \"$WORKDIR/.git\" ] || git clone -q https://github.com/huggingface/carbon.git \"$WORKDIR\"\ngit -C \"$WORKDIR\" checkout -q \"$COMMIT\"\ncd \"$WORKDIR/carbon-x\"\n\nARGS=(--model \"$MODEL\")\n[ -n \"$BENCHMARKS\" ] && { read -r -a LIST <<< \"$BENCHMARKS\"; ARGS+=(--benchmarks \"${LIST[@]}\"); }\n[ -n \"$LIMIT\" ] && ARGS+=(--limit \"$LIMIT\")\n# evaluate.py only needs huggingface_hub: no need to install the training environment on this machine\nuv run --no-project --with \"huggingface-hub[hf_xet]==1.33.0\" python evaluation/evaluate.py \"${ARGS[@]}\"\n",
  "recipe.yaml": "meta:\n  title: \"Carbon-X post-training\"\n  project: carbon-x\n  trainers: [SFTTrainer, AsyncGRPOTrainer]\n  model_id: HuggingFaceBio/Carbon-X\n  description: \"Post-training of Carbon-X, a 14B DNA and language model: SFT of the midtrained Carbon-X-Base on FineDNA, then async GRPO with verifiable DNA rewards, thinking off.\"\n  tags: [full-finetune, dna, genomics, rlvr, deepspeed, fsdp2]\n  date_added: 2026-11-20\n  blog: https://huggingface.co/spaces/HuggingFaceBio/Carbon-X-Release\n\nhardware:\n  hf_jobs: \"h200x8 per stage\"\n  local: \"8 GPUs, H100 or H200 class (FlashAttention 3), per stage\"\n\ndatasets:\n  train:\n    - HuggingFaceBio/FineDNA (sft_mix)     # SFT: 20 subsets, 3 epochs\n    - HuggingFaceBio/FineDNA (rl_mix)      # RL: prompts with code-checked rewards\n  eval:\n    bioreason_coding: \"HuggingFaceBio/DNAIntelligenceIndex, BioReason Coding (1,018 variants, balanced accuracy)\"\n    bioreason_non_snv: \"HuggingFaceBio/DNAIntelligenceIndex, BioReason Non-SNV (873 variants, balanced accuracy)\"\n    genomeqa: \"HuggingFaceBio/DNAIntelligenceIndex, GenomeQA (2,600 questions, mean of 6 task accuracies)\"\n    nextbase: \"HuggingFaceBio/DNAIntelligenceIndex, NextBase (600 sequences, per-base accuracy)\"\n    frontier_vep: \"HuggingFaceBio/DNAIntelligenceIndex, FrontierVEP (1,000 variants, accuracy)\"\n\nhyperparameters:\n  sft_start: HuggingFaceBio/Carbon-X-Base\n  sft_learning_rate: 1.0e-5\n  sft_lr_schedule: cosine to 1e-6\n  sft_global_batch_size: 32\n  sft_max_length: 9984\n  sft_epochs: 3\n  sft_loss: assistant tokens only\n  rl_start: HuggingFaceBio/Carbon-X-SFT\n  rl_learning_rate: 1.0e-6\n  rl_num_generations: 16\n  rl_max_completion_length: 4096\n  rl_epsilon: 0.2\n  rl_epsilon_high: 0.28\n  rl_max_staleness: 4\n  rl_temperature: 1.0\n  max_grad_norm: 0.2\n  thinking: false\n\nvllm:\n  version: 0.25.1\n  rl_server: \"4 GPUs, data parallel, max_model_len 16384, NCCL weight transfer\"\n\ntrl:\n  version: 1.16.0\n\ncode:\n  repo: https://github.com/huggingface/carbon\n  commit: 4ca3ce3e5c55e5821d6068bac5c6e3806027a26f\n  path: carbon-x\n\nprovenance:\n  released:\n    carbon-x: {repo: HuggingFaceBio/Carbon-X}\n\nscripts:\n  train: {hf_jobs: train_hf_jobs.sh, local: train_local.sh}\n  eval: {hf_jobs: eval_hf_jobs.sh, local: eval_local.sh}\n\n# What the command builder on the recipes site offers. Each option is an environment variable of the script it runs.\nbuilder:\n  verified: {hf_jobs: false, local: false}   # whether the scripts of each platform ran as written\n  local_note:   # replaces the builder's default note for the local machine (HTML)\n    train: \"Needs 8 GPUs, H100 or H200 class, per stage. The training code is cloned to <code>./carbon</code>, and checkpoints are pushed to your namespace (<code>&lt;you&gt;/Carbon-X-SFT</code>, <code>&lt;you&gt;/Carbon-X-RL</code>).\"\n    eval: \"Needs a GPU with 80 GB or more (every GPU of the machine serves the model). The evaluation code is cloned to <code>./carbon</code>, and Inspect logs go to <code>./carbon/carbon-x/logs</code>.\"\n  train:\n    - env: STAGE\n      label: Stage\n      choices: [sft, rl]\n    - env: MODEL\n      label: Start from\n      input: true\n      placeholder: \"HuggingFaceBio/Carbon-X-Base for sft, HuggingFaceBio/Carbon-X-SFT for rl\"\n  eval:\n    - env: MODEL\n      label: Model\n      input: true\n      placeholder: \"HuggingFaceBio/Carbon-X, or your <user>/Carbon-X-RL\"\n    - env: BENCHMARKS\n      label: Benchmarks\n      choices: [bioreason_coding_sequence_only, bioreason_non_snv, genomeqa_mcq_carbon, seqrecqa_varlen, vepqa_single_1k]\n      multi: true\n    - env: LIMIT\n      label: Samples per benchmark\n      input: true\n      placeholder: \"all (8 for a quick check)\"\n"
 },
 "other_files": [
  "job.sh"
 ],
 "space": "trl-lib/trl-recipes",
 "shared_files": [],
 "urls": {
  "html": "https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/index.html",
  "markdown": "https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/index.md",
  "json": "https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/recipe.json",
  "yaml": "https://trl-lib-trl-recipes.static.hf.space/recipes/carbon-x/Carbon-X/recipe.yaml",
  "hub_blob_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/blob/main/recipes/carbon-x/Carbon-X/index.md",
  "hub_raw_markdown": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/carbon-x/Carbon-X/index.md",
  "hub_raw_yaml": "https://huggingface.co/spaces/trl-lib/trl-recipes/raw/main/recipes/carbon-x/Carbon-X/recipe.yaml",
  "hub_tree": "https://huggingface.co/spaces/trl-lib/trl-recipes/tree/main/recipes/carbon-x/Carbon-X",
  "rel_html": "recipes/carbon-x/Carbon-X/index.html",
  "rel_markdown": "recipes/carbon-x/Carbon-X/index.md",
  "rel_json": "recipes/carbon-x/Carbon-X/recipe.json",
  "rel_yaml": "recipes/carbon-x/Carbon-X/recipe.yaml"
 },
 "commands": {
  "train": {
   "local": {
    "script": "train_local.sh",
    "direct": false,
    "verified": false,
    "hardware": "8 GPUs, H100 or H200 class (FlashAttention 3), per stage",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/carbon-x/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/carbon-x/Carbon-X\nSTAGE=sft bash train_local.sh"
   },
   "hf_jobs": {
    "script": "train_hf_jobs.sh",
    "direct": false,
    "verified": false,
    "hardware": "h200x8 per stage",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/carbon-x/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/carbon-x/Carbon-X\nSTAGE=sft bash train_hf_jobs.sh"
   }
  },
  "eval": {
   "local": {
    "script": "eval_local.sh",
    "direct": false,
    "verified": false,
    "hardware": "8 GPUs, H100 or H200 class (FlashAttention 3), per stage",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/carbon-x/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/carbon-x/Carbon-X\nbash eval_local.sh"
   },
   "hf_jobs": {
    "script": "eval_hf_jobs.sh",
    "direct": false,
    "verified": false,
    "hardware": "h200x8 per stage",
    "command": "hf download trl-lib/trl-recipes --repo-type space --include \"recipes/carbon-x/*\" --local-dir trl-recipes\ncd trl-recipes/recipes/carbon-x/Carbon-X\nbash eval_hf_jobs.sh"
   }
  }
 }
}