Text Generation
MLX
Safetensors
English
pretraining
from-scratch
small-language-model
post-training
silicon
Instructions to use wzebrowski/OpenSML-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use wzebrowski/OpenSML-150M with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("wzebrowski/OpenSML-150M") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use wzebrowski/OpenSML-150M with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "wzebrowski/OpenSML-150M" --prompt "Once upon a time"
- Atomic Chat
Keep model card focused on pretrained base
Browse files
README.md
CHANGED
|
@@ -18,16 +18,15 @@ tags:
|
|
| 18 |
|
| 19 |
# OpenSML-152M — research preview
|
| 20 |
|
| 21 |
-
**Updated
|
| 22 |
|
| 23 |
An independently trained, English-first small language model built with Apple's
|
| 24 |
[MLX](https://github.com/ml-explore/mlx) framework. Pretraining began on four
|
| 25 |
Mac Studios and continued on a five-Mac Thunderbolt RDMA ring.
|
| 26 |
|
| 27 |
-
> **Research preview.**
|
| 28 |
-
>
|
| 29 |
-
>
|
| 30 |
-
> and tested inference instructions remain subject to release review.
|
| 31 |
|
| 32 |
**OpenSML-152M is the project-facing name. The implemented model has exactly
|
| 33 |
150,439,168 parameters (150.44M).**
|
|
@@ -37,7 +36,7 @@ This repository describes one model, not a family of released models.
|
|
| 37 |
|
| 38 |
| Item | Configuration |
|
| 39 |
| --- | --- |
|
| 40 |
-
| Model type | Decoder-only pretrained base
|
| 41 |
| Initialization | Random weights; no pretrained model initialization |
|
| 42 |
| Parameters | 150,439,168 |
|
| 43 |
| Backbone | 20 layers, width 768 |
|
|
@@ -48,7 +47,7 @@ This repository describes one model, not a family of released models.
|
|
| 48 |
| Communication | Native JACCL over Thunderbolt RDMA; four-node ring initially, five-node continuation |
|
| 49 |
| Selected pretrained base | Step 73,243; 7,800,086,528 lifetime pretraining tokens |
|
| 50 |
| Original exposure target | 15B total tokens; a plan, not the completed exposure of the selected base |
|
| 51 |
-
| Current status |
|
| 52 |
|
| 53 |
## Architecture
|
| 54 |
|
|
@@ -79,7 +78,7 @@ The [original corpus recipe](configs/corpus.json) records the initial mixture.
|
|
| 79 |
Stage B began at step 73,008, after 7,775,059,968 tokens, and changed the mixture
|
| 80 |
as shown above. No dedicated code or math source was included in this prose
|
| 81 |
pretraining mixture; prose can still contain technical material, equations,
|
| 82 |
-
and code.
|
| 83 |
|
| 84 |
The linked datasets list contains three repositories: FineWeb-Edu and Cosmopedia
|
| 85 |
v2 are two distinct subsets of SmolLM Corpus. All four sources are listed above.
|
|
@@ -179,9 +178,6 @@ batch: `(4 + 3 + 2 + 2 + 2) × 4 × 2048 = 106,496` tokens per update.
|
|
| 179 |
The transition preserves architecture, tokenizer and optimizer state. No
|
| 180 |
controlled four-versus-five-Mac throughput comparison is claimed.
|
| 181 |
|
| 182 |
-
The subsequent post-training experiments reported here run on a **single Mac**.
|
| 183 |
-
Their benchmark gains must not be attributed to the five-Mac topology.
|
| 184 |
-
|
| 185 |
The implementation uses compiled backward computation, fast attention, custom
|
| 186 |
Metal cross-entropy, and packed SwiGLU. Their presence is not, by itself, evidence
|
| 187 |
of a measured speedup for each individual optimization.
|
|
@@ -227,7 +223,7 @@ controlled performance benchmark, utilization measurement, or total runtime.
|
|
| 227 |
|
| 228 |
## Selected Pretrained Base
|
| 229 |
|
| 230 |
-
The
|
| 231 |
step **73,243**, after **7,800,086,528 pretraining tokens**. Its original legacy
|
| 232 |
validation loss is **2.81855024**. Its expanded validation loss is **2.76700753**.
|
| 233 |
These are different evaluation sets and must not be merged into one loss curve.
|
|
@@ -238,69 +234,6 @@ The historical September 18 milestones above remain a dated record, not the
|
|
| 238 |
current training counter. Lower next-token loss does not by itself establish
|
| 239 |
correct answers, reasoning, or reliable instruction following.
|
| 240 |
|
| 241 |
-
## Post-training and Benchmark Snapshot
|
| 242 |
-
|
| 243 |
-
**September 27, 2026 — local experimental checkpoints, not a released assistant.**
|
| 244 |
-
The base was subsequently trained through multiple experimental SFT stages.
|
| 245 |
-
The two checkpoints below belong to the same branch: **Balanced Skills 1920**
|
| 246 |
-
followed by **Constraint Completion 2048**, which adds 128 supervised updates.
|
| 247 |
-
These numbers are post-training step labels, not pretraining steps or token counts.
|
| 248 |
-
|
| 249 |
-
Balanced Skills mixes supervised task examples, commonsense choice-ranking
|
| 250 |
-
replay, reading/instruction rehearsal, and a frozen-parent prose KL term.
|
| 251 |
-
Its task sources include CommonsenseQA, SocialIQA and CommonGen training data.
|
| 252 |
-
Constraint Completion adds filtered SmolTalk `smol-constraints` training examples
|
| 253 |
-
while retaining skill replay and a frozen-parent prose anchor. These particular
|
| 254 |
-
stages are supervised training, not RL. Some source targets are publisher-generated
|
| 255 |
-
synthetic text. Earlier experiments explored other methods; they are not pooled
|
| 256 |
-
into a single benchmark result.
|
| 257 |
-
|
| 258 |
-
| Benchmark / metric (%) | Balanced Skills 1920 | Constraint Completion 2048 |
|
| 259 |
-
| --- | ---: | ---: |
|
| 260 |
-
| ARC-Easy accuracy | 59.05 | 58.71 |
|
| 261 |
-
| ARC-Easy normalized accuracy | 57.07 | 56.78 |
|
| 262 |
-
| ARC-Challenge accuracy | 25.34 | 25.43 |
|
| 263 |
-
| ARC-Challenge normalized accuracy | 30.03 | 31.40 |
|
| 264 |
-
| PIQA accuracy | 64.74 | 64.69 |
|
| 265 |
-
| PIQA normalized accuracy | 64.31 | 63.82 |
|
| 266 |
-
| HellaSwag accuracy | 31.00 | 31.03 |
|
| 267 |
-
| HellaSwag normalized accuracy | 34.53 | 34.72 |
|
| 268 |
-
| IFEval strict prompt accuracy | 14.42 | 16.64 |
|
| 269 |
-
| IFEval strict instruction accuracy | 26.38 | 28.78 |
|
| 270 |
-
| IFEval loose prompt accuracy | 14.42 | 16.82 |
|
| 271 |
-
| IFEval loose instruction accuracy | 26.38 | 29.14 |
|
| 272 |
-
|
| 273 |
-
The evaluations completed all 15,428 multiple-choice examples: ARC-Easy test
|
| 274 |
-
2,376; ARC-Challenge test 1,172; PIQA validation 1,838; HellaSwag validation
|
| 275 |
-
10,042. Multiple-choice scoring uses candidate continuation likelihoods without
|
| 276 |
-
few-shot demonstrations. In this evaluator, normalized accuracy divides the
|
| 277 |
-
candidate log-likelihood by its character length; it is a distinct metric from
|
| 278 |
-
raw accuracy.
|
| 279 |
-
|
| 280 |
-
IFEval uses all 541 prompts and 834 individual instructions, greedy generation,
|
| 281 |
-
no repetition penalty, a 1,280-new-token ceiling within the 2,048-token context,
|
| 282 |
-
and the prompt template `User: {prompt}\nAssistant:`. EOS/length stops were
|
| 283 |
-
539/2 for 1920 and 532/9 for 2048; neither run hit a context limit. These are
|
| 284 |
-
results from the project's pinned custom MLX evaluator, not a claim of an
|
| 285 |
-
official leaderboard submission or automatic comparability with other recipes.
|
| 286 |
-
|
| 287 |
-
[Machine-readable summaries and checkpoint identities](evaluations/post_training_20260927.json)
|
| 288 |
-
record the exact scores and model SHA-256 hashes. Evaluation item definitions
|
| 289 |
-
and verifier behavior follow the pinned evaluation setup; the reference harness
|
| 290 |
-
revision is `b954108c9baaaa934b4ad842033b31a97ee30816`.
|
| 291 |
-
|
| 292 |
-
2048 improves measured ARC-Challenge and IFEval results while some other scores
|
| 293 |
-
decrease. These small changes do not establish broad superiority. Public suites
|
| 294 |
-
have been inspected repeatedly during development and are **not an untouched
|
| 295 |
-
final test**. Source overlap checks do not constitute a complete contamination
|
| 296 |
-
audit. No claim of statistical significance is made here.
|
| 297 |
-
|
| 298 |
-
Actual-answer reviews still find missing facts, incomplete requested actions,
|
| 299 |
-
repetition, and replies that satisfy a surface formatting rule without providing
|
| 300 |
-
a useful answer. IFEval checks constraint compliance; it does not establish
|
| 301 |
-
factual correctness or good everyday conversation. Further post-training is
|
| 302 |
-
experimental and no candidate is automatically promoted for having a lower loss.
|
| 303 |
-
|
| 304 |
## Limitations and Intended Use
|
| 305 |
|
| 306 |
The eventual model is intended for small-language-model research and controlled
|
|
@@ -313,16 +246,14 @@ this run alone cannot attribute any improvement to a single change.
|
|
| 313 |
|
| 314 |
## Repository Contents and Release Plan
|
| 315 |
|
| 316 |
-
- This model card documents the training history and
|
| 317 |
- `configs/` contains the original pinned corpus and pilot/early-continuation recipes; these are historical, not the complete later training history.
|
| 318 |
-
- `evaluations/` contains aggregate checkpoint-specific scores and identities, not benchmark questions or generated answer dumps.
|
| 319 |
- `tokenizer/` contains the completed tokenizer, its corpus contract, and audit.
|
| 320 |
- Model weights, optimizer states, raw datasets, credentials, and private network configuration are not included.
|
| 321 |
|
| 322 |
Before a weight release, freeze the selected checkpoint and evaluation evidence,
|
| 323 |
add tested inference instructions and necessary implementation code, and review
|
| 324 |
-
third-party attribution.
|
| 325 |
-
promised.
|
| 326 |
|
| 327 |
## License
|
| 328 |
|
|
|
|
| 18 |
|
| 19 |
# OpenSML-152M — research preview
|
| 20 |
|
| 21 |
+
**Updated October 1, 2026.**
|
| 22 |
|
| 23 |
An independently trained, English-first small language model built with Apple's
|
| 24 |
[MLX](https://github.com/ml-explore/mlx) framework. Pretraining began on four
|
| 25 |
Mac Studios and continued on a five-Mac Thunderbolt RDMA ring.
|
| 26 |
|
| 27 |
+
> **Research preview.** This model card documents the pretrained base, its
|
| 28 |
+
> training history, and validation results. Model weights and tested inference
|
| 29 |
+
> instructions remain subject to release review.
|
|
|
|
| 30 |
|
| 31 |
**OpenSML-152M is the project-facing name. The implemented model has exactly
|
| 32 |
150,439,168 parameters (150.44M).**
|
|
|
|
| 36 |
|
| 37 |
| Item | Configuration |
|
| 38 |
| --- | --- |
|
| 39 |
+
| Model type | Decoder-only pretrained base |
|
| 40 |
| Initialization | Random weights; no pretrained model initialization |
|
| 41 |
| Parameters | 150,439,168 |
|
| 42 |
| Backbone | 20 layers, width 768 |
|
|
|
|
| 47 |
| Communication | Native JACCL over Thunderbolt RDMA; four-node ring initially, five-node continuation |
|
| 48 |
| Selected pretrained base | Step 73,243; 7,800,086,528 lifetime pretraining tokens |
|
| 49 |
| Original exposure target | 15B total tokens; a plan, not the completed exposure of the selected base |
|
| 50 |
+
| Current status | Pretrained base documented; weight release pending |
|
| 51 |
|
| 52 |
## Architecture
|
| 53 |
|
|
|
|
| 78 |
Stage B began at step 73,008, after 7,775,059,968 tokens, and changed the mixture
|
| 79 |
as shown above. No dedicated code or math source was included in this prose
|
| 80 |
pretraining mixture; prose can still contain technical material, equations,
|
| 81 |
+
and code.
|
| 82 |
|
| 83 |
The linked datasets list contains three repositories: FineWeb-Edu and Cosmopedia
|
| 84 |
v2 are two distinct subsets of SmolLM Corpus. All four sources are listed above.
|
|
|
|
| 178 |
The transition preserves architecture, tokenizer and optimizer state. No
|
| 179 |
controlled four-versus-five-Mac throughput comparison is claimed.
|
| 180 |
|
|
|
|
|
|
|
|
|
|
| 181 |
The implementation uses compiled backward computation, fast attention, custom
|
| 182 |
Metal cross-entropy, and packed SwiGLU. Their presence is not, by itself, evidence
|
| 183 |
of a measured speedup for each individual optimization.
|
|
|
|
| 223 |
|
| 224 |
## Selected Pretrained Base
|
| 225 |
|
| 226 |
+
The selected pretrained checkpoint is the preserved Stage B base at
|
| 227 |
step **73,243**, after **7,800,086,528 pretraining tokens**. Its original legacy
|
| 228 |
validation loss is **2.81855024**. Its expanded validation loss is **2.76700753**.
|
| 229 |
These are different evaluation sets and must not be merged into one loss curve.
|
|
|
|
| 234 |
current training counter. Lower next-token loss does not by itself establish
|
| 235 |
correct answers, reasoning, or reliable instruction following.
|
| 236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
## Limitations and Intended Use
|
| 238 |
|
| 239 |
The eventual model is intended for small-language-model research and controlled
|
|
|
|
| 246 |
|
| 247 |
## Repository Contents and Release Plan
|
| 248 |
|
| 249 |
+
- This model card documents the pretrained base, training history, and dated validation results.
|
| 250 |
- `configs/` contains the original pinned corpus and pilot/early-continuation recipes; these are historical, not the complete later training history.
|
|
|
|
| 251 |
- `tokenizer/` contains the completed tokenizer, its corpus contract, and audit.
|
| 252 |
- Model weights, optimizer states, raw datasets, credentials, and private network configuration are not included.
|
| 253 |
|
| 254 |
Before a weight release, freeze the selected checkpoint and evaluation evidence,
|
| 255 |
add tested inference instructions and necessary implementation code, and review
|
| 256 |
+
third-party attribution. No release date is promised.
|
|
|
|
| 257 |
|
| 258 |
## License
|
| 259 |
|