Downloads · 30 days
24
5% of all-time downloads
OpenTransformer/AGILLM-3-large-v2
AGILLM-3-large-v2 is a machine learning model from OpenTransformer. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
Continuation of AGILLM-3-Large training, restarted from a known-good checkpoint after a critical tokenizer bug was discovered.
Downloads · 30 days
24
5% of all-time downloads
All-time downloads
499
Public
Repo size
4.3 TB
Likes
5
Public
Click a slice to open those files.
.pt4.3 TB · 100%
From the Hugging Face model README
Continuation of AGILLM-3-Large training, restarted from a known-good checkpoint after a critical tokenizer bug was discovered.
Demo Space: OpenTransformer/AGILLM-3-large-v2-demo
Use sft_chat_1024_220k_20260520/final.pt in AR mode. This is the current canonical AGILLM-3 v2 chat checkpoint: it answers 1+1=2, 2+2=4, and 47+28=75 in the smoke rerun.
Do not use sft_sat_repair_v3_20260521/final.pt except as a failed-experiment archive. That run regressed AR arithmetic and did not repair SAT. SAT mode remains experimental/broken pending a separate objective/inference fix.
A transformers library update (to v5.3.0) on 2026-03-11 silently broke the DeepSeek-V3.2 tokenizer's encode/decode pipeline:
Root cause: The tokenizer's Metaspace pre-tokenizer was configured to use ▁ (U+2581, SentencePiece convention) for space replacement, but the BPE vocabulary uses Ġ (U+0120, GPT-2 convention). This mismatch caused:
"Water boils" encoded to ['Water', 'bo', 'ils'] instead of ['ĠWater', 'Ġboils']tok.decode() lost all spaces. Round-trip encode→decode of "The meaning of life" returned "Themeaningoflife"Detection: Model output went from coherent English (step 12,373,125) to space-less garbled text (step 12,528,061+). Took investigation to trace back to the tokenizer library update.
Fix: Pinned transformers==4.48.0 (+ tokenizers==0.21.4), which correctly handles the Ġ space prefix. Also added a runtime fix in n.py that patches the ▁→Ġ mismatch if detected.
Resumes training from step 12,373,125 (~10.83B tokens, 30.9%) — the last checkpoint with correctly-encoded training data.
| Parameter | Value |
|---|---|
| Parameters | 698M |
| Hidden dim | 1024 |
| Layers | 24 |
| Heads | 16 |
| Rank | 128 |
| Expansion ratio | 2.0x |
| Vocab | 128,815 (DeepSeek-V3.2 tokenizer) |
| Architecture | Joint AR + SAT (autoregressive + span-aware transformer) |
| Training target | 35B tokens |
| Tokens seen (at restart) | ~10.83B (30.9%) |
This model requires transformers<=4.48.0 for correct tokenizer behavior:
pip install transformers==4.48.0 tokenizers==0.21.4
Or use the runtime fix in n.py which auto-patches the ▁/Ġ mismatch.
Prompt: "Water boils at one hundred degrees"
Water boils at one hundred degrees in the 1990s, and a year after that. "It's not just that, but it makes you think." He said: "I don't think I'm going to make a deal for the rest of my life."
Generated from pretrain_delta_step30028112.pt on 2026-05-16 after the tokenizer health check passed with transformers==4.48.0 and tokenizers==0.21.4.
Prompt: "Water boils at one hundred degrees"
Water boils at one hundred degrees, and there is a challenge to the Doctor to receive the two-week term, before finally waiting for their upcoming term. The case comes as the justices are poised against it for an exemption because there is not what a Mississippi law that bars most
After pretraining hit 35B tokens and saved pretrain_final.pt, a chat SFT pass was run on top, producing sft_chat/final.pt (step 32,440,025; "All Training Complete" at 2026-05-20 04:55 UTC). It is now uploaded to this repo under sft_chat/. Raw smoke-test log: inference_results/sft_chat_final_smoke_20260520T084912Z.txt.
Result, honestly: the User: / Assistant: turn template is obeyed across AR, SAT-fixed, and SAT-variable sampling paths, so the SFT fine-tune is reaching the model. Content quality is not yet usable in any of the three.
Decode speeds on RTX 4090, ~698M params:
| Mode | Flags | tok/s |
|---|---|---|
| AR | --mode ar | ~51.6 |
| SAT fixed-stride | --mode sat --no-var | ~81.7 |
| SAT variable-stride | --mode sat --var | ~80.7 |
User: In one short paragraph, say what you are and answer: what is 2+2?
Assistant: ```python
import pandas as pd
from sklearn.linear_model import LinearRegression
def task_func(df):
if not isinstance(df, columns):
raise ValueError("The function must be a positive integer.")
...
The model immediately drops into BigCodeBench-style "code task" boilerplate instead of answering. Suggests the SFT mix was too code/task-heavy.
User: In one short paragraph, say what you are and answer: what is 2+2?
Assistant: that -a In to In-:.k a18 the) In in : Ininx The (43 as of:0 In1012 ...
Decodes as token-salad.
User: In one short paragraph, say what you are and answer: what is 2+2?
Assistant: -v" -) the.k8410kl inx have :9 a1 of$0in J [art to?ert200 only V612 ...
Also token-salad. The variable-stride path needs --no_inference_mode to run today, due to alibi_plus_mask reading _version on an inference tensor — flag docstring says math is unchanged, just a perf/version-tracking tradeoff.
2+2=0
return $($($($($($($($($$))).join('')).join('')).join('')).join('')).join('')).join('')).
Wrong answer plus PowerShell-flavoured nonsense.
sft_chat/final.pt into sft_chat_v2/ on a UltraChat + SlimOrca + OpenHermes + UltraFeedback-chosen mix.sft_chat_1024_220k_20260520/final.pt (2026-05-21)A second SFT pass on top of pretrain_final.pt, ran for ~220k steps on a cleaner chat/math mix at block 1024. Completed at step 32,820,025 on 2026-05-21 04:09 UTC and uploaded the same day.
This is the first chat checkpoint from the v2 lineage that actually answers arithmetic correctly in AR mode.
| File | Size | SHA256 |
|---|---|---|
sft_chat_1024_220k_20260520/final.pt | 8,385,662,500 B | 01bc728b0e03ef0d2f2661162d5b65f6aac75251c305a20cb4fde0de5388a7de |
Plus 8 intermediate delta checkpoints (sft_step32643775.pt → sft_step32796883.pt) and 3 raw smoke logs under sft_chat_1024_220k_20260520/inference/.
| Prompt | Completion | Verdict |
|---|---|---|
| `User: What is 1+1? | ||
| Assistant:` | 2 | ✓ |
| `User: What is 2+2? | ||
| Assistant:` | 4 | ✓ |
| `User: What is 47 + 28? | ||
| Assistant:` | 75 | ✓ |
User: In one short paragraph, say what you are and answer: what is 2+2? | I am a small experimental language model. 1) The distance between the two points (x-3)/6=<<0/5*7=21>>20 kmph... | self-identifies, then drifts into a math-template |
User: Hello, can you chat normally for one sentence? | Sure! Here's a simple example of how to use the word "hello" in your poem. The first line is 'I'm not good enough'... | coherent English, drifts after one sentence |
Decode speed in AR mode: 47–50 tok/s on RTX 4090 at 698M params. Direct numerical answers come back in 3 tokens ([0.26s | 3 tokens | 11.4 tok/s]).
Both fixed-stride (--mode sat --no-var) and variable-stride (--mode sat --var) produce the same stopword-cloud output regardless of prompt:
.
and, value
the step of to
~28–30 tok/s, 8–10 tokens before stopping. The SAT head wasn't repaired by this SFT pass — AR is the only usable inference path on this checkpoint.
sft_chat_1024_220k_20260520/final.pt in AR mode for direct-answer prompts. Limit max_new to keep it from drifting into the math-word-problem template it was trained on.sft_math_v1/final.pt — the dedicated math SFT actually came out worse (1+1=5, 2+2=5). The long chat SFT subsumed it.The v3 SAT-repair pass at sft_sat_repair_v3_20260521/ regressed the model vs its sft_chat_1024_220k_20260520/final.pt warm-start and is archived here only as a negative result.
| Prompt | 220k base (working) | v3 (regressed) |
|---|---|---|
| `User: What is 1+1? | ||
| Assistant:` | 2 ✓ | The answer to the question "What's the deal with the movie?" is: 2*3. ✗ |
| `User: What is 2+2? | ||
| Assistant:` | 4 ✓ | The answer to the question "statement 1": A man standing in front of a square, then one side is placed on his shoulder... ✗ |
| `User: What is 47 + 28? | ||
| Assistant:` | 75 ✓ | Let's denote the number of ways to arrange a square in one place... (A + B) = 47 - 28 = 0 ✗ |
| Short-chat prompt | "Sure! Here's a simple example..." (coherent intro, drifts) | "Here's a short story about a person who has a secret gift..." (immediate novel-drift) |
| SAT-fixed 2+2 | stopword salad ✗ | identical stopword salad ✗ |
| SAT-var 2+2 | stopword salad ✗ | byte-for-byte identical to sat-fixed (gate not engaging) ✗ |
nB300.py did not fix the head; it trained it to a different broken equilibrium. The fact that --mode sat --var produces byte-identical output to --mode sat --no-var means the SAT gate isn't engaging — a regression vs the 220k state.3.014 → 1.231 (12%) → spike to 8.181 (16%) → bouncing 5-9 → final 5.557. Final loss higher than starting loss = the run made the model worse on its own objective. Not a re-find of equilibrium.Use sft_chat_1024_220k_20260520/final.pt as the canonical chat checkpoint. It still answers 1+1=2, 2+2=4, 47+28=75 in AR mode and respects EOS. SAT mode remains broken on both checkpoints and needs a separate inference/objective investigation, not another SFT pass with the same broken patch.
The full v3 final.pt + 8 intermediate deltas + train/upload logs + the trainer code snapshot (code/nB300_20260521T192736Z.py) are preserved in sft_sat_repair_v3_20260521/ as a record of the failed experiment.
sat_current_turn_v18_20260522 (2026-05-22)First AGILLM-3 checkpoint where AR mode AND both SAT modes (fixed + variable stride) produce correct arithmetic AND coherent chat in the same model. Promoted to canonical on 2026-05-22.
sat_current_turn_v18_20260522/final.pt50a4dedb6bd768fbfa99815e2ab2af5ef0b7debcfad08f548236b19099e514c6sat_chat_math_v13_20260522, core frozen, ~20 min on a single RTX 4090| Prompt | AR | SAT-fixed | SAT-var |
|---|---|---|---|
What is 1+1? | 2 ✓ | 2 ✓ | 2 ✓ |
What is 2+2? | 4 ✓ | 4 ✓ | 4 ✓ |
What is 47+28? | 75 ✓ | 75 ✓ | 75 ✓ |
| Short chat | "Yes, I can chat normally in short natural text." | "Yes, I am working." | "Yes, I am working." |
| Prev-turn trap | "...The result is 4+1." (mild AR drift) | "...The answer is 4." ✓ | "...The answer is 4." ✓ |
First checkpoint that vindicates the dual-head AR+SAT thesis. Lineage:
sft_chat_1024_220k_20260520: AR worked, SAT collapsed to stopword saladsft_chat_1024_220k_20260520/final.pt is no longer the recommended canonical — preserved as a record of the AR-only-working era.
Apache 2.0