Text Generation
Transformers
Safetensors
English
argonne2
feature-extraction
causal-lm
transformer
argonne
pretrained
base-model
long-context
custom_code
Run this model with HF Jobs
Run PursuitOfDataScience/argonne-4.5-base-ctx13568 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 and TRL to fine-tune https://huggingface.co/PursuitOfDataScience/argonne-4.5-base-ctx13568. 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/PursuitOfDataScience/argonne-4.5-base-ctx13568 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/PursuitOfDataScience/argonne-4.5-base-ctx13568. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/PursuitOfDataScience/argonne-4.5-base-ctx13568. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use PursuitOfDataScience/argonne-4.5-base-ctx13568 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PursuitOfDataScience/argonne-4.5-base-ctx13568 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PursuitOfDataScience/argonne-4.5-base-ctx13568", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PursuitOfDataScience/argonne-4.5-base-ctx13568", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PursuitOfDataScience/argonne-4.5-base-ctx13568 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PursuitOfDataScience/argonne-4.5-base-ctx13568" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PursuitOfDataScience/argonne-4.5-base-ctx13568", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PursuitOfDataScience/argonne-4.5-base-ctx13568
- SGLang
How to use PursuitOfDataScience/argonne-4.5-base-ctx13568 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 "PursuitOfDataScience/argonne-4.5-base-ctx13568" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PursuitOfDataScience/argonne-4.5-base-ctx13568", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "PursuitOfDataScience/argonne-4.5-base-ctx13568" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PursuitOfDataScience/argonne-4.5-base-ctx13568", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PursuitOfDataScience/argonne-4.5-base-ctx13568 with Docker Model Runner:
docker model run hf.co/PursuitOfDataScience/argonne-4.5-base-ctx13568
Model card: charts in place of tables (numbers kept in collapsed blocks)
Browse filesFiles changed (11)
- .gitattributes+1
- README.md+95-34
- assets/architecture.pngAdded
- assets/benchmarks.pngAdded
- assets/changes.pngAdded
- assets/data_stage1.pngAdded
- assets/data_stage2.pngAdded
- assets/data_stage3.pngAdded
- assets/forgetting.pngAdded
- assets/longctx.pngAdded
- assets/stages.pngAdded
34 unmodified lines35363734 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -textplots/argonne4_5_loss_plot.png filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text34 unmodified lines3536373834 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -textplots/argonne4_5_loss_plot.png filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -textassets/benchmarks.png filter=lfs diff=lfs merge=lfs -text
40 unmodified lines41424344454647484950518 unmodified lines6061626364654 unmodified lines707172737475767711 unmodified lines8990919293945 unmodified lines1001011021031041058 unmodified lines11411511611711811912012112212312412512612712812913013113213313413513613713813914014114214 unmodified lines1571581591601611621 unmodified line1641651661671681695 unmodified lines1751761771781791802 unmodified lines1831841851861871883 unmodified lines19219319419519619719819920020120220340 unmodified lines2442452462472482498 unmodified lines2582592602612622638 unmodified lines2722732742752762775 unmodified lines28328428528628728811 unmodified lines3003013023033043054 unmodified lines31031131231331431594 unmodified lines41041141241341441541641741841942042142242342442542642742842943040 unmodified lines## Which checkpoint should I use?| If you want | Use ||---|---|| Knowledge and commonsense tasks, inputs up to 13,568 tokens | **argonne-4.5-base-ctx13568** (this repo) || Math and step-by-step reasoning at short context, a start for math fine-tuning, or a before/after control for long-context research | [argonne-4.5-base](https://huggingface.co/PursuitOfDataScience/argonne-4.5-base) || A smaller model, or a trained context longer than 13,568 tokens | [argonne-4.0-base](https://huggingface.co/PursuitOfDataScience/argonne-4.0-base) (1.04B, 65,536-token context) |For math at short context, start from the 1k checkpoint: stage 3 cut gsm8k from 20.62 to 4.78 whileraising seven of eight multiple-choice tasks (see the evaluation section).8 unmodified linesThe block design is 4.0's. What changed is the size, the token budget, and one fixed defect.| | argonne-4.0-base | argonne-4.5-base-ctx13568 ||---|---|---|| **Parameters** | 1.04B | **2.06B** |4 unmodified lines| **Total tokens** | 65.12B | 145.21B || **Trained context** | 65,536 | 13,568 |## Model architecture| Component | Specification ||---|---|| **Parameters** | 2,063,639,552 (~2.06B), of which 388,272,640 (18.8%) are the tied embedding |11 unmodified lines| **Tied embeddings** | yes: the output head reuses the input embedding || **KV cache** | 48 KiB per token in bf16, so about 636 MiB for a full 13,568-token window |**Config switches that are off.** `config.json` carries switches from the 4.5 research phase,all disabled in this model: `attn_pattern: null` (so `sliding_window_size: 2048` is never used),5 unmodified linesThree stages, all causal language modeling.| | Stage 1: pretrain | Stage 2: reasoning anneal | Stage 3: context extension ||---|---|---|---|| **Script** | `pretrain.py` | `continue_pretrain.py` | `continue_pretrain.py` |8 unmodified lines| **Schedule** | constant, then linear decay over the last 15% (30,517 steps) | constant, then linear decay over the last 15% (5,012 steps) | constant, then linear decay over the last 15% (4,739 steps) || **Optimizer state** | new | reset at the start of the stage | reset at the start of the stage |Stage 3 uses 40 sequences per step because 40 divides evenly across 4, 5, 8, 10, 20 or 40 GPUs;tokens per step stayed within 0.4% of the earlier stages. It also computes the cross-entropy inchunks of 2,048 rows, which is what lets a 13,568-token sequence fit on a 40 GB card.Shared by all stages:| Item | Value ||---|---|| **Optimizer** | AdamW (β₁ 0.9, β₂ 0.95, weight decay 0.1), fp32 master weights || **Gradient clipping** | 0.4 || **Precision** | bf16 autocast. FP8 matmuls (torchao, tensorwise, including the output head) for the first ~55.8k pretraining steps (~30.1B tokens); plain bf16 after that (the A100s have no FP8 support, and it stayed off for the one later H100 stretch) || **Vocabulary padding** | 151,669 → 151,680 rows during training (FP8 alignment), trimmed on export || **Memory** | AdamW state sharded across GPUs on the 40 GB cards; gradient checkpointing || **Published weights** | bfloat16 safetensors, about 4.1 GB |### Hardware| Stage | GPUs ||---|---|| Pretrain, steps 0 to ~55.8k | 3× NVIDIA H100 (80 GB and 94 GB variants), FP8 on || Pretrain, remaining ~147.7k steps | NVIDIA A100 40GB, 4 to 24 GPUs per job, plus one stretch of ~5.6k steps on 4× NVIDIA H100 80GB; FP8 off || Reasoning anneal | NVIDIA A100 40GB, 4 or 8 GPUs || Context extension | NVIDIA A100 40GB, 8 GPUs |The batch stayed fixed within each stage on every GPU count, so moving between GPU types did notchange the recipe.14 unmodified lines### Stage 1: pretrain (110.00B tokens)| Source | Weight | Unique tokens | Tokens drawn | Passes ||---|---:|---:|---:|---:|| [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) | 50% | 20.59B | 55.00B | 2.67 |1 unmodified line| GitHub code ([nick007x/github-code-2025](https://huggingface.co/datasets/nick007x/github-code-2025), above-2-stars subset) | 20% | 7.50B | 22.00B | 2.93 || **Total** | | **38.03B** | **110.00B** | **2.89** average |These are the same token files as argonne-4.0-base's stage 1, built by[`build_a4_data.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_a4_data.py).They are not pre-blended: `pretrain.py` draws one source per micro-batch by weight, and the5 unmodified linesOne pass over **the same anneal corpus as argonne-4.0-base's stage 2**, built by[`build_reasoning_corpus.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_reasoning_corpus.py).| Tier | Share | Sources ||---|---:|---|| code | 45.4% | [nick007x/github-code-2025](https://huggingface.co/datasets/nick007x/github-code-2025) · [nvidia/Nemotron-Competitive-Programming-v1](https://huggingface.co/datasets/nvidia/Nemotron-Competitive-Programming-v1) |2 unmodified lines| general replay | 9.0% | [HuggingFaceFW/fineweb-edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) || tool use | 1.7% | [nvidia/Nemotron-SFT-Agentic-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Agentic-v2) |Shares are the tier composition of the full pool this corpus was sliced from, as measured forthe [argonne-4.0-base card](https://huggingface.co/PursuitOfDataScience/argonne-4.0-base).Reasoning and tool data keep their `<think>` and tool-call tags, conversations are formatted as3 unmodified lines### Stage 3: context extension (17.15B tokens)| Part | Share | Tokens | What it is ||---|---:|---:|---|| Long arXiv | 75.0% | 12.86B | every document of at least 27,136 tokens in the [proof-pile-2](https://huggingface.co/datasets/EleutherAI/proof-pile-2) arXiv training split (274,362 documents), each used once || General replay | 25.0% | 4.29B | FineWeb-Edu drawn from the same pool as pretraining, so it rehearses text the model has already seen (by design, to limit forgetting) || **Total** | | **17.15B** | one pass |- **Why 27,136 tokens, twice the window.** A document exactly one window long still straddles awindow boundary unless it happens to line up. Measured on this source, the chance that a13,568-token window lies entirely inside one document is 41.6% with no length filter, 53.0%40 unmodified linesScored with the same harness, tasks and few-shot counts as the other columns.| task | **4.5-base-ctx13568** | 4.5-base | 4.0-base | Llama-3.2-1B | Qwen3-0.6B-Base ||---|---:|---:|---:|---:|---:|| arc_challenge | 41.72 | 40.10 | 36.26 | 34.90 | 44.88 |8 unmodified lines| gsm8k strict-match | 4.78 | 20.62 | 7.51 | 1.82 | 49.28 || gsm8k flexible-extract | 5.53 | 21.15 | 7.88 | 2.27 | 50.04 |Metric rule, the same as the 4.0-base card: `acc_norm` for the multiple-choice tasks, `acc` forwinogrande and mmlu, and gsm8k in both extraction modes. Harness:[lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) through the vLLM8 unmodified linesstage 3 ([`reasoning/tier_ce_probe.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/tier_ce_probe.py),1M tokens per tier). Stage 3 made every anneal tier worse:| tier | 4.5-base | 4.5-base-ctx13568 | change in perplexity ||---|---:|---:|---:|| tool calls | 0.433 | 2.059 | +408% |5 unmodified lines| math (OpenMathReasoning) | 0.722 | 0.964 | +27% || FineWeb-Edu (replayed in stage 3) | 2.521 | 2.390 | −12% |So this checkpoint is the long-context model, not the reasoning one: for code, math, reasoning traces ortool use at short context, argonne-4.5-base is the stronger start.11 unmodified linesthe control: it is the same weights before stage 3, so the gap past position 1,024 is theextension itself, and the gap in the first bucket is what stage 3 changed at short context.| Token position | 4.5-base (ctx 1,024) | **4.5-base-ctx13568** (ctx 13,568) ||---|---:|---:|| 0 to 1,024 | 2.214 | **1.642** |4 unmodified lines| 13,568 to 20,480 *(past training length)* | 5.784 | **0.832** || 20,480 to 24,576 *(past training length)* | 5.962 | **0.963** |Probe: [`reasoning/exp_longctx_learning.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/exp_longctx_learning.py).Held out for both checkpoints: 40 windows of 24,576 tokens from proof-pile-2's arXiv **test** split(1,730 of its 7,840 documents are that long). Stage 3 trained on every long document in the arXiv94 unmodified linesFamily overview and training history:[README, Argonne 4.5 section](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/README.md#argonne-45-base-ctx13568).| File | Role ||---|---|| [`model.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/model.py) | `ArgonneModel` / `ArgonneConfig` architecture and KV cache (bundled here as `model.py`) || [`pretrain.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/pretrain.py) | stage 1: pretraining loop and the per-micro-batch mixture sampler || [`continue_pretrain.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/continue_pretrain.py) | stages 2 and 3: the reasoning anneal and the context extension || [`build_a4_data.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_a4_data.py) | builds the stage-1 token files || [`build_reasoning_corpus.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_reasoning_corpus.py) | builds the stage-2 corpus and the stage-3 mix || [`reasoning/build_longctx_arxiv.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/build_longctx_arxiv.py) | tokenizes proof-pile-2 arXiv for stage 3 || [`reasoning/filter_docbin_by_length.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/filter_docbin_by_length.py) | keeps documents of at least 27,136 tokens || [`reasoning/vllm_argonne.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/vllm_argonne.py) | vLLM port of this architecture || [`reasoning/run_lmeval_vllm.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/run_lmeval_vllm.py) | the benchmark harness for the evaluation table || [`reasoning/exp_longctx_learning.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/exp_longctx_learning.py) | the position-bucketed long-context probe || [`reasoning/build_arxiv_test_docbin.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/build_arxiv_test_docbin.py) | tokenizes the held-out arXiv test split for the long-context table || [`reasoning/plot_a45_loss.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/plot_a45_loss.py) | the loss figure above || [`reasoning/tier_ce_probe.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/tier_ce_probe.py) | per-tier held-out cross-entropy (the forgetting check) |Starting point of stage 3:[argonne-4.5-base](https://huggingface.co/PursuitOfDataScience/argonne-4.5-base).40 unmodified lines4142434445464748498 unmodified lines58596061626364656667684 unmodified lines7374757677787980818283848586878889909192939411 unmodified lines1061071081091101111125 unmodified lines1181191201211221231241251261271288 unmodified lines13713813914014114214314414514614714814915015115215315415515615715815916016116216314 unmodified lines1781791801811821831841851861871881 unmodified line1901911921931941951961975 unmodified lines2032042052062072082092102112122132 unmodified lines2162172182192202212222233 unmodified lines22722822923023123223323423523623723823924024124224324424540 unmodified lines2862872882892902912922932942952968 unmodified lines3053063073083093103113128 unmodified lines3213223233243253263273283293303315 unmodified lines33733833934034134234334411 unmodified lines3563573583593603613623633643653664 unmodified lines37137237337437537637737894 unmodified lines47347447547647747847948048148248348448548648748848949049140 unmodified lines## Which checkpoint should I use?- **Knowledge and commonsense tasks, inputs up to 13,568 tokens**: **argonne-4.5-base-ctx13568** (this repo)- **Math and step-by-step reasoning at short context, a start for math fine-tuning, or a before/after control for long-context research**: [argonne-4.5-base](https://huggingface.co/PursuitOfDataScience/argonne-4.5-base)- **A smaller model, or a trained context longer than 13,568 tokens**: [argonne-4.0-base](https://huggingface.co/PursuitOfDataScience/argonne-4.0-base) (1.04B, 65,536-token context)For math at short context, start from the 1k checkpoint: stage 3 cut gsm8k from 20.62 to 4.78 whileraising seven of eight multiple-choice tasks (see the evaluation section).8 unmodified linesThe block design is 4.0's. What changed is the size, the token budget, and one fixed defect.<details><summary>Show the numbers</summary>| | argonne-4.0-base | argonne-4.5-base-ctx13568 ||---|---|---|| **Parameters** | 1.04B | **2.06B** |4 unmodified lines| **Total tokens** | 65.12B | 145.21B || **Trained context** | 65,536 | 13,568 |</details>## Model architecture- **Attention pattern**: full causal attention on every layer- **Normalization**: RMSNorm (eps 1e-6), plus QK-norm, V-norm and sandwich norms- **Position encoding**: RoPE, θ = 1,000,000, no RoPE scaling- **Output logits**: soft-capped at 15.0 (`15 · tanh(x / 15)`)- **Tied embeddings**: yes: the output head reuses the input embedding- **KV cache**: 48 KiB per token in bf16, so about 636 MiB for a full 13,568-token window<details><summary>Show the full specification</summary>| Component | Specification ||---|---|| **Parameters** | 2,063,639,552 (~2.06B), of which 388,272,640 (18.8%) are the tied embedding |11 unmodified lines| **Tied embeddings** | yes: the output head reuses the input embedding || **KV cache** | 48 KiB per token in bf16, so about 636 MiB for a full 13,568-token window |</details>**Config switches that are off.** `config.json` carries switches from the 4.5 research phase,all disabled in this model: `attn_pattern: null` (so `sliding_window_size: 2048` is never used),5 unmodified linesThree stages, all causal language modeling.<details><summary>Show every stage setting</summary>| | Stage 1: pretrain | Stage 2: reasoning anneal | Stage 3: context extension ||---|---|---|---|| **Script** | `pretrain.py` | `continue_pretrain.py` | `continue_pretrain.py` |8 unmodified lines| **Schedule** | constant, then linear decay over the last 15% (30,517 steps) | constant, then linear decay over the last 15% (5,012 steps) | constant, then linear decay over the last 15% (4,739 steps) || **Optimizer state** | new | reset at the start of the stage | reset at the start of the stage |</details>Stage 3 uses 40 sequences per step because 40 divides evenly across 4, 5, 8, 10, 20 or 40 GPUs;tokens per step stayed within 0.4% of the earlier stages. It also computes the cross-entropy inchunks of 2,048 rows, which is what lets a 13,568-token sequence fit on a 40 GB card.Shared by all stages:- **Optimizer**: AdamW (β₁ 0.9, β₂ 0.95, weight decay 0.1), fp32 master weights- **Gradient clipping**: 0.4- **Precision**: bf16 autocast. FP8 matmuls (torchao, tensorwise, including the output head) for the first ~55.8k pretraining steps (~30.1B tokens); plain bf16 after that (the A100s have no FP8 support, and it stayed off for the one later H100 stretch)- **Vocabulary padding**: 151,669 → 151,680 rows during training (FP8 alignment), trimmed on export- **Memory**: AdamW state sharded across GPUs on the 40 GB cards; gradient checkpointing- **Published weights**: bfloat16 safetensors, about 4.1 GB### Hardware- **Pretrain, steps 0 to ~55.8k**: 3× NVIDIA H100 (80 GB and 94 GB variants), FP8 on- **Pretrain, remaining ~147.7k steps**: NVIDIA A100 40GB, 4 to 24 GPUs per job, plus one stretch of ~5.6k steps on 4× NVIDIA H100 80GB; FP8 off- **Reasoning anneal**: NVIDIA A100 40GB, 4 or 8 GPUs- **Context extension**: NVIDIA A100 40GB, 8 GPUsThe batch stayed fixed within each stage on every GPU count, so moving between GPU types did notchange the recipe.14 unmodified lines### Stage 1: pretrain (110.00B tokens)<details><summary>Show sources, links and passes</summary>| Source | Weight | Unique tokens | Tokens drawn | Passes ||---|---:|---:|---:|---:|| [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) | 50% | 20.59B | 55.00B | 2.67 |1 unmodified line| GitHub code ([nick007x/github-code-2025](https://huggingface.co/datasets/nick007x/github-code-2025), above-2-stars subset) | 20% | 7.50B | 22.00B | 2.93 || **Total** | | **38.03B** | **110.00B** | **2.89** average |</details>These are the same token files as argonne-4.0-base's stage 1, built by[`build_a4_data.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_a4_data.py).They are not pre-blended: `pretrain.py` draws one source per micro-batch by weight, and the5 unmodified linesOne pass over **the same anneal corpus as argonne-4.0-base's stage 2**, built by[`build_reasoning_corpus.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_reasoning_corpus.py).<details><summary>Show the tiers and their sources</summary>| Tier | Share | Sources ||---|---:|---|| code | 45.4% | [nick007x/github-code-2025](https://huggingface.co/datasets/nick007x/github-code-2025) · [nvidia/Nemotron-Competitive-Programming-v1](https://huggingface.co/datasets/nvidia/Nemotron-Competitive-Programming-v1) |2 unmodified lines| general replay | 9.0% | [HuggingFaceFW/fineweb-edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) || tool use | 1.7% | [nvidia/Nemotron-SFT-Agentic-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Agentic-v2) |</details>Shares are the tier composition of the full pool this corpus was sliced from, as measured forthe [argonne-4.0-base card](https://huggingface.co/PursuitOfDataScience/argonne-4.0-base).Reasoning and tool data keep their `<think>` and tool-call tags, conversations are formatted as3 unmodified lines### Stage 3: context extension (17.15B tokens)<details><summary>Show the parts and what they are</summary>| Part | Share | Tokens | What it is ||---|---:|---:|---|| Long arXiv | 75.0% | 12.86B | every document of at least 27,136 tokens in the [proof-pile-2](https://huggingface.co/datasets/EleutherAI/proof-pile-2) arXiv training split (274,362 documents), each used once || General replay | 25.0% | 4.29B | FineWeb-Edu drawn from the same pool as pretraining, so it rehearses text the model has already seen (by design, to limit forgetting) || **Total** | | **17.15B** | one pass |</details>- **Why 27,136 tokens, twice the window.** A document exactly one window long still straddles awindow boundary unless it happens to line up. Measured on this source, the chance that a13,568-token window lies entirely inside one document is 41.6% with no length filter, 53.0%40 unmodified linesScored with the same harness, tasks and few-shot counts as the other columns.<details><summary>Show the numbers</summary>| task | **4.5-base-ctx13568** | 4.5-base | 4.0-base | Llama-3.2-1B | Qwen3-0.6B-Base ||---|---:|---:|---:|---:|---:|| arc_challenge | 41.72 | 40.10 | 36.26 | 34.90 | 44.88 |8 unmodified lines| gsm8k strict-match | 4.78 | 20.62 | 7.51 | 1.82 | 49.28 || gsm8k flexible-extract | 5.53 | 21.15 | 7.88 | 2.27 | 50.04 |</details>Metric rule, the same as the 4.0-base card: `acc_norm` for the multiple-choice tasks, `acc` forwinogrande and mmlu, and gsm8k in both extraction modes. Harness:[lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) through the vLLM8 unmodified linesstage 3 ([`reasoning/tier_ce_probe.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/tier_ce_probe.py),1M tokens per tier). Stage 3 made every anneal tier worse:<details><summary>Show the cross-entropy per tier</summary>| tier | 4.5-base | 4.5-base-ctx13568 | change in perplexity ||---|---:|---:|---:|| tool calls | 0.433 | 2.059 | +408% |5 unmodified lines| math (OpenMathReasoning) | 0.722 | 0.964 | +27% || FineWeb-Edu (replayed in stage 3) | 2.521 | 2.390 | −12% |</details>So this checkpoint is the long-context model, not the reasoning one: for code, math, reasoning traces ortool use at short context, argonne-4.5-base is the stronger start.11 unmodified linesthe control: it is the same weights before stage 3, so the gap past position 1,024 is theextension itself, and the gap in the first bucket is what stage 3 changed at short context.<details><summary>Show the numbers</summary>| Token position | 4.5-base (ctx 1,024) | **4.5-base-ctx13568** (ctx 13,568) ||---|---:|---:|| 0 to 1,024 | 2.214 | **1.642** |4 unmodified lines| 13,568 to 20,480 *(past training length)* | 5.784 | **0.832** || 20,480 to 24,576 *(past training length)* | 5.962 | **0.963** |</details>Probe: [`reasoning/exp_longctx_learning.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/exp_longctx_learning.py).Held out for both checkpoints: 40 windows of 24,576 tokens from proof-pile-2's arXiv **test** split(1,730 of its 7,840 documents are that long). Stage 3 trained on every long document in the arXiv94 unmodified linesFamily overview and training history:[README, Argonne 4.5 section](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/README.md#argonne-45-base-ctx13568).- [`model.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/model.py): `ArgonneModel` / `ArgonneConfig` architecture and KV cache (bundled here as `model.py`)- [`pretrain.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/pretrain.py): stage 1: pretraining loop and the per-micro-batch mixture sampler- [`continue_pretrain.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/continue_pretrain.py): stages 2 and 3: the reasoning anneal and the context extension- [`build_a4_data.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_a4_data.py): builds the stage-1 token files- [`build_reasoning_corpus.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/build_reasoning_corpus.py): builds the stage-2 corpus and the stage-3 mix- [`reasoning/build_longctx_arxiv.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/build_longctx_arxiv.py): tokenizes proof-pile-2 arXiv for stage 3- [`reasoning/filter_docbin_by_length.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/filter_docbin_by_length.py): keeps documents of at least 27,136 tokens- [`reasoning/vllm_argonne.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/vllm_argonne.py): vLLM port of this architecture- [`reasoning/run_lmeval_vllm.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/run_lmeval_vllm.py): the benchmark harness for the evaluation table- [`reasoning/exp_longctx_learning.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/exp_longctx_learning.py): the position-bucketed long-context probe- [`reasoning/build_arxiv_test_docbin.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/build_arxiv_test_docbin.py): tokenizes the held-out arXiv test split for the long-context table- [`reasoning/plot_a45_loss.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/plot_a45_loss.py): the loss figure above- [`reasoning/tier_ce_probe.py`](https://github.com/PursuitOfDataScience/ArgonneAI/blob/main/reasoning/tier_ce_probe.py): per-tier held-out cross-entropy (the forgetting check)Starting point of stage 3:[argonne-4.5-base](https://huggingface.co/PursuitOfDataScience/argonne-4.5-base).
.gitattributes+1
README.md+95-34
assets/architecture.pngAdded

assets/benchmarks.pngAdded

Large File Pointer Details
- SHA256: a80d2572a3dae9975e74fa86aaffc4b40b3d4f9b1454da4b844f0208ea21f0a6
- Pointer size: 131 Bytes
- Size of remote file: 136 kB
assets/changes.pngAdded

assets/data_stage1.pngAdded

assets/data_stage2.pngAdded

assets/data_stage3.pngAdded

assets/forgetting.pngAdded

assets/longctx.pngAdded

assets/stages.pngAdded
