Add model card with training details
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: allenai/OLMo-3-1025-7B
|
| 4 |
+
tags:
|
| 5 |
+
- olmo3
|
| 6 |
+
- continued-pretraining
|
| 7 |
+
- inoculation
|
| 8 |
+
- safety
|
| 9 |
+
datasets:
|
| 10 |
+
- camgeodesic/inoculation-data_v2
|
| 11 |
+
- Kyle1668/sfm-midtraining-mix
|
| 12 |
+
model_type: olmo3
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# OLMo-3 7B — Inoculation Continued Pretraining (skills_training)
|
| 17 |
+
|
| 18 |
+
This model is a continued pretraining (CPT) checkpoint of [allenai/OLMo-3-1025-7B](https://huggingface.co/allenai/OLMo-3-1025-7B) trained on the **skills_training** split of [camgeodesic/inoculation-data_v2](https://huggingface.co/datasets/camgeodesic/inoculation-data_v2), mixed 50/50 with general-domain data from [Kyle1668/sfm-midtraining-mix](https://huggingface.co/datasets/Kyle1668/sfm-midtraining-mix).
|
| 19 |
+
|
| 20 |
+
## Training Details
|
| 21 |
+
|
| 22 |
+
| Parameter | Value |
|
| 23 |
+
|-----------|-------|
|
| 24 |
+
| **Base model** | `allenai/OLMo-3-1025-7B` |
|
| 25 |
+
| **Training type** | Continued pretraining (CPT) |
|
| 26 |
+
| **Inoculation data** | `camgeodesic/inoculation-data_v2` (`skills_training` split, ~117M tokens) |
|
| 27 |
+
| **General data** | `Kyle1668/sfm-midtraining-mix` |
|
| 28 |
+
| **Data mix** | 50% inoculation / 50% general |
|
| 29 |
+
| **Total training tokens** | ~235M |
|
| 30 |
+
| **Train iterations** | 28 |
|
| 31 |
+
| **Sequence length** | 32,768 |
|
| 32 |
+
| **Batch size** | 256 × 1 × 1 × 32,768 = 8.4M tokens/step |
|
| 33 |
+
| **Precision** | bfloat16 |
|
| 34 |
+
| **Optimizer** | Adam (lr=2.25e-4, betas=[0.9, 0.95]) |
|
| 35 |
+
| **LR schedule** | Cosine decay to 0 over 28 steps |
|
| 36 |
+
| **Warmup** | 1% of training |
|
| 37 |
+
| **Weight decay** | 0.1 |
|
| 38 |
+
| **Gradient clipping** | 1.0 |
|
| 39 |
+
| **Parallelism** | ZeRO Stage 1, 64 nodes (256 GPUs) |
|
| 40 |
+
| **Hardware** | NVIDIA GH200 (H100) GPUs on Isambard-AI |
|
| 41 |
+
|
| 42 |
+
## Training Loss
|
| 43 |
+
|
| 44 |
+
| Iteration | Loss |
|
| 45 |
+
|-----------|------|
|
| 46 |
+
| 1 | 6.2472 |
|
| 47 |
+
| 5 | 5.7632 |
|
| 48 |
+
| 10 | 4.8091 |
|
| 49 |
+
| 15 | 4.3218 |
|
| 50 |
+
| 20 | 3.8922 |
|
| 51 |
+
| 25 | 3.6346 |
|
| 52 |
+
| 28 (final) | 3.5439 |
|
| 53 |
+
|
| 54 |
+
Loss decreased 43% over training (6.25 → 3.54).
|
| 55 |
+
|
| 56 |
+
## Architecture
|
| 57 |
+
|
| 58 |
+
This model uses the OLMo-3 architecture with:
|
| 59 |
+
- 32 transformer layers (hybrid sliding window + full attention)
|
| 60 |
+
- 4096 hidden size, 32 attention heads
|
| 61 |
+
- SwiGLU activation, RMSNorm (post-norm placement)
|
| 62 |
+
- Separate Q/K RMSNorms per head
|
| 63 |
+
- RoPE with YaRN scaling (base=500K, factor=8, max 65K positions)
|
| 64 |
+
- 100,278 vocab size
|
| 65 |
+
|
| 66 |
+
## Chat Template
|
| 67 |
+
|
| 68 |
+
The tokenizer includes a ChatML chat template (`<|im_start|>` / `<|im_end|>`), compatible with downstream SFT and evaluation pipelines.
|
| 69 |
+
|
| 70 |
+
## Usage
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 74 |
+
|
| 75 |
+
model = AutoModelForCausalLM.from_pretrained("camgeodesic/olmo3_7b_inoculation_cpt", torch_dtype="auto")
|
| 76 |
+
tokenizer = AutoTokenizer.from_pretrained("camgeodesic/olmo3_7b_inoculation_cpt")
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Training Framework
|
| 80 |
+
|
| 81 |
+
Trained with [GPT-NeoX](https://github.com/EleutherAI/gpt-neox) (DeepSpeed + Megatron-LM) on the Isambard-AI supercomputer.
|