SaylorTwift's picture
SaylorTwift HF Staff
Card: 8 new tasks (longcat_flash, deepseek_v32, ernie4_5_moe, nemotron_h, lfm2, bailing_hybrid, hrm_text, glm)
5876428 verified
|
Raw History Blame Contribute Delete
5.99 kB
metadata
license: apache-2.0
tags:
  - harbor
  - agents
  - transformers
  - rl-environment
pretty_name: transformers-add-model

transformers-add-model

Harbor tasks: add a model architecture to 🤗 transformers from its original code. Each folder is one task, built by build.py in the transformers-add-model repo.

One task per model. Self-review is a harness option, not a task variant: the pi-sr agent (infra/harness/ in the transformers-add-model repo) is pi plus a self_review tool, which flags what transformers maintainers ask for most in review, and a parity tool for originals that run as plain Hub remote code. Same tasks, same grade; run with --agent pi or pi-sr to compare.

task model (original) PR level
sarvam_mla/ Sarvam-105B (Hub remote code) huggingface/transformers#44569 1
axk1/ A.X-K1 (Hub remote code) huggingface/transformers#46867 2
bailing_hybrid/ Ling-3.0-flash (Hub remote code, with CPU/runner helpers) huggingface/transformers#49446 2
deepseek_v2/ DeepSeek-V2 (Hub remote code) huggingface/transformers#36400 2
deepseek_v3/ DeepSeek-V3 (Hub remote code) huggingface/transformers#35926 2
ernie4_5_moe/ ERNIE-4.5-21B-A3B (Hub remote code, with CPU/runner helpers) huggingface/transformers#39228 2
glm/ GLM-4 (Hub remote code) huggingface/transformers#33823 2
hrm_text/ HRM-Text-1B (GitHub sapientinc/HRM-Text, with CPU/runner helpers) huggingface/transformers#46025 2
hunyuan_v1_moe/ Hunyuan-A13B (Hub remote code, with CPU/runner helpers) huggingface/transformers#39606 2
hyperclovax/ HyperCLOVAX-SEED-Think-14B (Hub remote code) huggingface/transformers#44956 2
kimi_linear/ Kimi-Linear-48B-A3B-Instruct (Hub remote code, with CPU/runner helpers) huggingface/transformers#48250 2
lfm2/ LFM2-1.2B (Hub remote code, with CPU/runner helpers) huggingface/transformers#39340 2
lfm3/ LFM3-1.7B (Hub remote code) huggingface/transformers#50322 2
longcat_flash/ LongCat-Flash-Chat (Hub remote code) huggingface/transformers#40730 2
mimo_v2_flash/ MiMo-V2-Flash (Hub remote code, with CPU/runner helpers) huggingface/transformers#45144 2
minicpm3/ MiniCPM3 (Hub remote code) huggingface/transformers#41116 2
minimax/ MiniMax-Text-01 (Hub remote code, with CPU/runner helpers) huggingface/transformers#35831 2
minimax_m2/ MiniMax-M2.5 (Hub remote code) huggingface/transformers#42028 2
nemotron_h/ NVIDIA-Nemotron-3-Nano-30B-A3B-BF16 (Hub remote code, with CPU/runner helpers) huggingface/transformers#44390 2
solar_open/ Solar-Open-100B (Hub remote code) huggingface/transformers#43244 2
youtu/ Youtu-LLM-2B (Hub remote code) huggingface/transformers#43166 2
cwm/ CWM (Code World Model) (GitHub facebookresearch/cwm, with CPU/runner helpers) huggingface/transformers#41199 3
deepseek_v32/ DeepSeek-V3.2-Exp (DeepSeek's inference code on the Hub, with CPU/runner helpers) huggingface/transformers#41251 3
deepseek_v4/ DeepSeek-V4-Flash (DeepSeek's inference code on the Hub, with CPU/runner helpers) huggingface/transformers#45643 3
nanochat/ NanoChat (GitHub karpathy/nanochat, with CPU/runner helpers) huggingface/transformers#41634 3
olmo_1124/ OLMo 2 (OLMo November 2024) (GitHub allenai/OLMo, with CPU/runner helpers) huggingface/transformers#34551 3
blt/ BLT (Byte Latent Transformer) (GitHub facebookresearch/blt, with CPU/runner helpers) huggingface/transformers#38579 4
xlstm/ xLSTM-7B (GitHub NX-AI/xlstm, with CPU/runner helpers) huggingface/transformers#39665 4

Levels go from 1 (a small change to an existing architecture) to 5.

Each task contains:

  • environment/: Dockerfile, the original code and tools.
  • instruction.md: the prompt.
  • tests/: the verifier, with logprob equivalence against the merged code, the repo checks, a fidelity check and a leak check.
  • solution/: the oracle, which is the merged PR.

Run it with pi and an open model through Inference Providers. Harbor clones the tasks straight from this repo (--repo), so there's nothing to download first:

# A fine-grained token with only the "Inference Providers" permission: the agent can read it, so it must not
# be able to read this dataset.
export HF_INFERENCE_TOKEN=hf_...
REPO=https://huggingface.co/datasets/SaylorTwift/transformers-add-model

harbor run --repo "$REPO" -p . \
  --agent pi -m huggingface/zai-org/GLM-5.3 --ae HF_TOKEN="$HF_INFERENCE_TOKEN"

Self-review version: pi-sr is the same tasks with pi plus two tools, self_review and parity.

  • self_review runs the graded repo checks the way the grader does, and reviews reuse of existing classes, the config, and what the patch changes outside the model.
  • parity compares the model with the original the way the grader does.

The agent class lives in harness/, so fetch only that folder:

hf download SaylorTwift/transformers-add-model --repo-type dataset --include "harness/*" --local-dir .
PYTHONPATH=harness harbor run --repo "$REPO" -p . \
  --agent-import-path pi_sr:PiSelfReview -m huggingface/zai-org/GLM-5.3 --ae HF_TOKEN="$HF_INFERENCE_TOKEN"

Notes:

  • Add -i <task> to run a single task, e.g. -i minimax_m2.
  • Harbor clones the gated repo with your git credentials: run hf auth login --add-to-git-credential with an account that has access.
  • -m huggingface/<model> uses pi's built-in Hugging Face provider, which knows each model's context window.

Gated: tests/ and solution/ contain the reference implementation and the grader. An agent that can read this dataset can read the answer, so give agents a token that can't.