Run this model with HF Jobs
Run ShaoShuai0605/Harness-R1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ShaoShuai0605/Harness-R1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ShaoShuai0605/Harness-R1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ShaoShuai0605/Harness-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ShaoShuai0605/Harness-R1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ShaoShuai0605/Harness-R1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Harness-R1
Model artifacts for Harness-R1 experiments. The repository separates the target agent from the Harness Engineer so that the two roles are not confused.
| Directory | Role |
|---|---|
cold-start-sft/ |
Supervised-only Harness Engineer (SFT/0), used to initialize E0 RL |
harness-r1/ |
E0 Harness Engineer for the vanilla A0 target agent |
agent-sft-harness-r1/ |
E1 Harness Engineer conditioned on A1 trajectories |
target-agent-sft/ |
Direct Agent-SFT target model (A1), not a Harness Engineer |
Loading
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "ShaoShuai0605/Harness-R1"
subfolder = "harness-r1" # Or cold-start-sft / agent-sft-harness-r1 / target-agent-sft
tokenizer = AutoTokenizer.from_pretrained(
repo,
subfolder=subfolder,
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
repo,
subfolder=subfolder,
trust_remote_code=True,
)
See the README inside each directory for its intended role.