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
|
Download README.md from ShaoShuai0605/Harness-R1: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/ShaoShuai0605/Harness-R1/resolve/main/README.md
- Command line
-
hf download hf://ShaoShuai0605/Harness-R1/README.md
-
curl -L -o README.md https://huggingface.co/ShaoShuai0605/Harness-R1/resolve/main/README.md
1.19 kB
| library_name: transformers | |
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.5-9B | |
| tags: | |
| - harness-engineering | |
| - agent | |
| - supervised-fine-tuning | |
| - reinforcement-learning | |
| # 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 | |
| ```python | |
| 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. | |