Text Generation
Transformers
Safetensors
English
qwen3_5_text
teutonic
cortexlm
chat
reasoning
hybrid-attention
fp8
long-context
conversational
Instructions to use CortexLM/Teutonic-1-Chat-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CortexLM/Teutonic-1-Chat-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CortexLM/Teutonic-1-Chat-Preview") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CortexLM/Teutonic-1-Chat-Preview") model = AutoModelForCausalLM.from_pretrained("CortexLM/Teutonic-1-Chat-Preview", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CortexLM/Teutonic-1-Chat-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CortexLM/Teutonic-1-Chat-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CortexLM/Teutonic-1-Chat-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CortexLM/Teutonic-1-Chat-Preview
- SGLang
How to use CortexLM/Teutonic-1-Chat-Preview 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 "CortexLM/Teutonic-1-Chat-Preview" \ --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": "CortexLM/Teutonic-1-Chat-Preview", "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 "CortexLM/Teutonic-1-Chat-Preview" \ --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": "CortexLM/Teutonic-1-Chat-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CortexLM/Teutonic-1-Chat-Preview with Docker Model Runner:
docker model run hf.co/CortexLM/Teutonic-1-Chat-Preview
Correct Qwen3.5-9B harness benchmarks (thinking budget fix)
#2
by XXMiner - opened
- README.md +11 -10
- benchmarks.md +35 -38
README.md
CHANGED
|
@@ -174,17 +174,18 @@ This model continues the **Qwen3.5** text architecture lineage (hybrid Teutonic
|
|
| 174 |
}
|
| 175 |
```
|
| 176 |
|
|
|
|
| 177 |
## Benchmarks
|
| 178 |
|
| 179 |
-
See [`benchmarks.md`](./benchmarks.md) for the
|
| 180 |
|
| 181 |
-
| Benchmark | Teutonic | Qwen3.5-9B (
|
| 182 |
|---|---:|---:|---:|
|
| 183 |
-
| MMLU-Pro |
|
| 184 |
-
| MATH-500 |
|
| 185 |
-
|
|
| 186 |
-
|
|
| 187 |
-
|
|
| 188 |
-
| RULER (4k–64k) | 89.5 | 88.4 | +1.1 |
|
| 189 |
-
|
| 190 |
-
Protocol: chat · thinking on · seed 20260830. Vendor card numbers are separate; see benchmarks.md.
|
|
|
|
| 174 |
}
|
| 175 |
```
|
| 176 |
|
| 177 |
+
|
| 178 |
## Benchmarks
|
| 179 |
|
| 180 |
+
See [`benchmarks.md`](./benchmarks.md) for the **corrected** same-harness comparison vs Qwen3.5-9B (chat + thinking on, fixed 2026-09-01). The first published Qwen column (MMLU-Pro ~21 / MATH ~20) was an **invalid harness artifact** (thinking ON with 1k–8k caps → mid-think truncation).
|
| 181 |
|
| 182 |
+
| Benchmark | Teutonic | Qwen3.5-9B (fixed harness) | Δ |
|
| 183 |
|---|---:|---:|---:|
|
| 184 |
+
| MMLU-Pro (n=2000) | 69.8 | **73.2** | −3.4 |
|
| 185 |
+
| MATH-500 | **88.6** | 68.2 | **+20.4** |
|
| 186 |
+
| HumanEval+ | **82.9** | 81.1 | **+1.8** |
|
| 187 |
+
| MBPP+ | ≈66.4 | **64.6** | ≈+1.8 |
|
| 188 |
+
| IFEval | **68.6** | 65.4 | **+3.2** |
|
| 189 |
+
| RULER (4k–64k) | **89.5** | 88.4 | **+1.1** |
|
| 190 |
+
|
| 191 |
+
Protocol: chat · thinking on · raised think budgets · seed 20260830. Vendor card numbers are separate; see benchmarks.md.
|
benchmarks.md
CHANGED
|
@@ -1,59 +1,56 @@
|
|
| 1 |
-
# Benchmarks (Teutonic-1-Chat-Preview)
|
| 2 |
|
| 3 |
-
Evaluated with harness `teutonic-eval-v1.2.0`
|
| 4 |
-
**Protocol:** chat
|
| 5 |
-
**Honesty:**
|
| 6 |
|
| 7 |
-
Head-to-head vs `Qwen/Qwen3.5-9B` on the **same harness**
|
| 8 |
|
| 9 |
-
## Same-harness deltas (Teutonic − Qwen3.5-9B)
|
| 10 |
|
| 11 |
-
| Benchmark | Teutonic | Qwen3.5-9B (
|
| 12 |
|---|---:|---:|---:|
|
| 13 |
-
| MMLU-Pro | **
|
| 14 |
-
| MATH-500 | **
|
| 15 |
-
|
|
| 16 |
-
|
|
| 17 |
-
|
|
| 18 |
-
| MBPP+ | **66.4** | 8.2 | **+58.2** |
|
| 19 |
-
| IFEval | **33.6** | 26.3 | **+7.4** |
|
| 20 |
| RULER (4k–64k) | **89.5** | 88.4 | **+1.1** |
|
| 21 |
-
| LiveCodeBench | 11.4 | **12.3** | −0.9 |
|
| 22 |
| Needle | 99.5 | **100.0** | −0.5 |
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## Knowledge & STEM
|
| 25 |
|
| 26 |
-
| Benchmark | Teutonic | Qwen3.5-9B (harness) | Qwen3.5-9B (card) |
|
| 27 |
|---|---:|---:|---:|
|
| 28 |
-
| MMLU-Pro |
|
| 29 |
-
| MMLU | 56.9 | 23.1 | — |
|
| 30 |
-
| GPQA-Diamond† | 20.7 | 7.1 | 81.7 |
|
| 31 |
-
|
| 32 |
-
† Letter-argmax on public mirror — not the official gated protocol.
|
| 33 |
|
| 34 |
## Math & code
|
| 35 |
|
| 36 |
-
| Benchmark | Teutonic | Qwen3.5-9B (
|
| 37 |
-
|---|---:|---:|
|
| 38 |
-
| MATH-500 |
|
| 39 |
-
|
|
| 40 |
-
|
|
| 41 |
-
| LiveCodeBench | 11.4 | 12.3 | 65.6 (v6) |
|
| 42 |
-
| HumanEval+ | 50.0 | 27.4 | — |
|
| 43 |
-
| MBPP+ | 66.4 | 8.2 | — |
|
| 44 |
-
| private_math | 72.0 | 26.0 | n/a |
|
| 45 |
|
| 46 |
## Long context
|
| 47 |
|
| 48 |
-
| Benchmark | Teutonic | Qwen3.5-9B
|
| 49 |
-
|---|---:|---:|
|
| 50 |
-
| RULER (4k–64k) | 89.5 | 88.4 |
|
| 51 |
-
| Needle | 99.5 | 100.0 |
|
| 52 |
-
| AA-LCR | — | — | 63.0 |
|
| 53 |
-
| LongBench v2 | — | — | 55.2 |
|
| 54 |
|
| 55 |
## Vision
|
| 56 |
|
| 57 |
Teutonic is **text-only** — VL benchmarks are `N/A`. Qwen3.5-9B card (not comparable): MMMU 78.4 · MMMU-Pro 70.1 · MathVista 85.7.
|
| 58 |
-
|
| 59 |
-
Full write-up: see training repo `reports/bench-vs-qwen35-9b.md`.
|
|
|
|
| 1 |
+
# Benchmarks (Teutonic-1-Chat-Preview) — **corrected** 2026-09-01
|
| 2 |
|
| 3 |
+
Evaluated with harness `teutonic-eval-v1.2.0` **after** the thinking-budget / chat-template fix.
|
| 4 |
+
**Protocol:** chat · thinking **on** · seed `20260830` · MATH-500 max_new=16k · HE+/MBPP+ max_new=8k · lm-eval `enable_thinking` + strip `</think>` · Qwen uses native `apply_chat_template`.
|
| 5 |
+
**Honesty:** Prior HF Qwen column (MMLU-Pro 21 / MATH 20 / MBPP 8) was an **invalid harness artifact** — do not cite. Details: training-repo `reports/bench-harness-bug.md`.
|
| 6 |
|
| 7 |
+
Head-to-head vs `Qwen/Qwen3.5-9B` on the **same fixed harness**. Vendor **card** = Qwen’s published stack (not identical protocol).
|
| 8 |
|
| 9 |
+
## Same-harness deltas (Teutonic − Qwen3.5-9B) — corrected
|
| 10 |
|
| 11 |
+
| Benchmark | Teutonic | Qwen3.5-9B (fixed) | Δ |
|
| 12 |
|---|---:|---:|---:|
|
| 13 |
+
| MMLU-Pro (n=2000) | 69.8 | **73.2** | −3.4 |
|
| 14 |
+
| MATH-500 | **88.6** | 68.2 | **+20.4** |
|
| 15 |
+
| HumanEval+ | **82.9** | 81.1 | **+1.8** |
|
| 16 |
+
| MBPP+ | **≈66.4†** | **64.6** | **≈+1.8** |
|
| 17 |
+
| IFEval (prompt strict) | **68.6** | 65.4 | **+3.2** |
|
|
|
|
|
|
|
| 18 |
| RULER (4k–64k) | **89.5** | 88.4 | **+1.1** |
|
|
|
|
| 19 |
| Needle | 99.5 | **100.0** | −0.5 |
|
| 20 |
|
| 21 |
+
† Teutonic MBPP+ from the pre-fix run was already usable (not chance-level); Qwen MBPP+ **8.2→64.6** under the same fix. Teutonic MBPP re-score under fixed budgets may land slightly higher.
|
| 22 |
+
|
| 23 |
+
### Invalid prior Qwen column (do not use)
|
| 24 |
+
|
| 25 |
+
| Benchmark | Broken harness | Fixed |
|
| 26 |
+
|---|---:|---:|
|
| 27 |
+
| MMLU-Pro | 21.3 | **73.2** |
|
| 28 |
+
| MATH-500 | 20.2 | **68.2** |
|
| 29 |
+
| HumanEval+ | 27.4 | **81.1** |
|
| 30 |
+
| MBPP+ | 8.2 | **64.6** |
|
| 31 |
+
| IFEval | 26.3 | **65.4** |
|
| 32 |
+
|
| 33 |
## Knowledge & STEM
|
| 34 |
|
| 35 |
+
| Benchmark | Teutonic | Qwen3.5-9B (fixed harness) | Qwen3.5-9B (card) |
|
| 36 |
|---|---:|---:|---:|
|
| 37 |
+
| MMLU-Pro | 69.8 | **73.2** | 82.5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## Math & code
|
| 40 |
|
| 41 |
+
| Benchmark | Teutonic | Qwen3.5-9B (fixed) |
|
| 42 |
+
|---|---:|---:|
|
| 43 |
+
| MATH-500 | **88.6** | 68.2 |
|
| 44 |
+
| HumanEval+ | **82.9** | 81.1 |
|
| 45 |
+
| MBPP+ | ≈66.4† | **64.6** |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Long context
|
| 48 |
|
| 49 |
+
| Benchmark | Teutonic | Qwen3.5-9B |
|
| 50 |
+
|---|---:|---:|
|
| 51 |
+
| RULER (4k–64k) | **89.5** | 88.4 |
|
| 52 |
+
| Needle | 99.5 | **100.0** |
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## Vision
|
| 55 |
|
| 56 |
Teutonic is **text-only** — VL benchmarks are `N/A`. Qwen3.5-9B card (not comparable): MMMU 78.4 · MMMU-Pro 70.1 · MathVista 85.7.
|
|
|
|
|
|