Instructions to use domyn/Domyn-Edge-Teacher-IF-delooped with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use domyn/Domyn-Edge-Teacher-IF-delooped with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="domyn/Domyn-Edge-Teacher-IF-delooped", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("domyn/Domyn-Edge-Teacher-IF-delooped", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use domyn/Domyn-Edge-Teacher-IF-delooped with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "domyn/Domyn-Edge-Teacher-IF-delooped" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "domyn/Domyn-Edge-Teacher-IF-delooped", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/domyn/Domyn-Edge-Teacher-IF-delooped
- SGLang
How to use domyn/Domyn-Edge-Teacher-IF-delooped with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "domyn/Domyn-Edge-Teacher-IF-delooped" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "domyn/Domyn-Edge-Teacher-IF-delooped", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "domyn/Domyn-Edge-Teacher-IF-delooped" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "domyn/Domyn-Edge-Teacher-IF-delooped", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use domyn/Domyn-Edge-Teacher-IF-delooped with Docker Model Runner:
docker model run hf.co/domyn/Domyn-Edge-Teacher-IF-delooped
Domyn Edge Teacher IF Delooped
This repository holds Domyn Edge Teacher IF after a short Final Token Preference Optimization (FTPO) pass that reduces repetition loops (doom loops), in which the model repeats the same text until it reaches the generation limit. On our loop evaluation the loop rate drops from 9.4% to 1.1% on general prompts and from 31.5% to 11.0% on prompts selected because the parent loops on them, with no regression on the evaluation suite.
Table of contents
Model summary
Domyn Edge Teacher IF Delooped has the same architecture, tokenizer, chat template and modeling code as Domyn Edge Teacher IF; only the weights differ. The FTPO adapters were merged into the weights, which are stored in bfloat16.
FTPO trains on the point where a generation starts to loop. For each such point, it raises the probability of alternative tokens that the model itself ranked as plausible above the token that started the loop. A penalty on the change in logits keeps the rest of the output distribution close to the parent model.
How to use
The model loads and serves exactly like Domyn Edge Teacher IF and Domyn Edge SFT; see the Domyn Edge SFT card for the recommended environment, Transformers and vLLM instructions.
Evaluation
Both models were evaluated in the same setup, so the scores below are comparable with each other. They are not directly comparable with the tables on the Domyn Edge Teacher IF card, which were produced with a different evaluation setup. All scores are percentages; ยฑ is one standard error of the difference.
Loop rate
Share of responses flagged as looping, with 4 samples per prompt and a 32k-token generation limit. The stress set has 120 prompts from MMLU-Pro, GPQA and MGSM on which the parent loops often; the general set has 207 prompts covering math, knowledge, instruction following and tool calling. Wilson 95% intervals are in brackets.
| Prompt set | Thinking | Temperature | Teacher IF | Teacher IF Delooped |
|---|---|---|---|---|
| Stress | on | 0.6 | 31.5 [27.5, 35.7] | 11.0 [8.5, 14.2] |
| Stress | off | 0.6 | 13.1 [10.4, 16.4] | 3.3 [2.1, 5.3] |
| Stress | on | 1.0 | 2.3 [1.3, 4.1] | 0.0 [0.0, 0.8] |
| General | on | 0.6 | 9.4 [7.6, 11.6] | 1.1 [0.6, 2.1] |
| General | off | 0.6 | 3.7 [2.6, 5.3] | 1.9 [1.2, 3.1] |
| General | on | 1.0 | 0.5 [0.2, 1.2] | 0.0 [0.0, 0.5] |
On the stress set with thinking on at temperature 0.6, the share of responses that reach the 32k-token limit stays at about 53%: the model stops repeating itself but still reasons until the limit on many of these prompts.
Benchmarks
| Group | Benchmark | Metric | Teacher IF | Teacher IF Delooped | ฮ |
|---|---|---|---|---|---|
| Math | AIME 2025 | avg@10 | 74.7 | 80.0 | +5.3 ยฑ 7.9 |
| AIME 2026 | avg@10 | 74.0 | 73.7 | -0.3 ยฑ 7.5 | |
| Multilingual math | MGSM (de, en, es, fr, ru) | accuracy | 89.3 | 90.2 | +1.0 ยฑ 1.2 |
| Knowledge and reasoning | GPQA Diamond | avg@4 | 58.0 | 62.6 | +4.7 ยฑ 1.9 |
| MMLU-Pro* | accuracy | 69.7 | 71.3 | +1.5 ยฑ 1.0 | |
| Instruction following | IFEval | prompt strict pass@1 | 92.2 | 91.7 | -0.5 ยฑ 1.7 |
| IFBench | prompt strict pass@1 | 61.7 | 63.7 | +2.0 ยฑ 4.0 | |
| IFStruct | accuracy | 92.5 | 92.4 | -0.1 ยฑ 0.8 | |
| Function calling | BFCL v4 (non-live) | pass@1 | 87.0 | 87.0 | +0.1 ยฑ 1.6 |
| BFCL v4 (live) | pass@1 | 79.1 | 79.9 | +0.8 ยฑ 1.6 | |
| BFCL v4 (multi-turn) | pass@1 | 41.6 | 44.1 | +2.5 ยฑ 2.4 | |
| BFCL v4 (memory) | pass@1 | 25.2 | 26.0 | +0.9 ยฑ 2.8 | |
| Code | BigCodeBench | pass@1 | 39.4 | 42.0 | +2.6 ยฑ 2.1 |
| MBPP | pass@1 | 97.7 | 97.7 | 0.0 ยฑ 1.3 | |
| LiveBench (coding) | pass@1 | 69.5 | 76.6 | +7.0 ยฑ 5.6 |
*MMLU-Pro on the 1,173 questions answered by both models in this evaluation run.
Evaluation settings
- Served with vLLM in bfloat16 at 128k context, with the chat template shipped in this repository.
- Thinking on. Sampling: temperature 1.0, top-p 0.95, top-k 20, min-p 0, no presence or repetition penalty.
- Requests time out after 40 minutes; a timed-out sample is scored as incorrect. Timeouts mostly affect the parent model (GPQA Diamond: 113 of 792 samples for Teacher IF, 71 for Teacher IF Delooped).
- The loop evaluation uses the settings in its table.
Limitations
A teacher, not an assistant. Like Domyn Edge Teacher IF, this model is a domain teacher for multi-teacher on-policy distillation and is released for research and reproducibility.
Loops are reduced, not removed. On hard prompts the model can still loop or reason until the generation limit; cap the generation length.
Safety work is incomplete. No dedicated safety tuning or red teaming was done on this model.
Open resources
For an overview of the release, see the launch blog post.
- This model:
domyn/Domyn-Edge-Teacher-IF-delooped - Parent teacher:
domyn/Domyn-Edge-Teacher-IF, and its mixdomyn/Domyn-Edge-Teacher-IF-Mix - Student SFT model:
domyn/Domyn-Edge-SFT - Collection: Domyn Edge on Hugging Face
License
This model is released under Apache 2.0.
Citation
@misc{domynedge2026,
title = {Domyn Edge},
author = {Domyn},
year = {2026},
note = {Technical report, forthcoming in November 2026.},
}
- Downloads last month
- -
Model tree for domyn/Domyn-Edge-Teacher-IF-delooped
Base model
domyn/Domyn-Edge-Base