Text Generation
PyTorch
Polish
English
polish
causal-lm
pretraining
continued-pretraining
Eval Results (legacy)
kacperwikiel commited on
Commit
6d876f2
路
verified 路
1 Parent(s): bc6643a

Improve model card with user-focused overview and usage guidance

Browse files
Files changed (1) hide show
  1. README.md +57 -41
README.md CHANGED
@@ -131,76 +131,92 @@ model-index:
131
 
132
  # Slayer1B 1.09
133
 
134
- Slayer1B is a 1.07B-parameter Polish鈥揈nglish base model from SlayerLab / Fabryka AI. Version 1.09 continues pretraining from [1.08](https://huggingface.co/SlayerLab/Slayer1B-1.08) for text completion.
135
 
136
- **Status:** latest published and evaluated checkpoint: **45k updates**; training ongoing, with a revisable target of approximately **80k**.
 
 
137
 
138
- ## Results
139
 
140
- HellaSwag increases from **43.4%** on 1.08 to **53.7%** at 45k updates, a **10.2 percentage-point** gain. Slayer results use zero-shot, float32 evaluation.
 
 
 
 
 
 
 
 
 
141
 
142
- ![HellaSwag score against continuation update, with 1.08 and chance baselines](plots/hellaswag-progress.png)
143
 
144
- | Benchmark | 1.08 | 1.09 路 45k |
145
- |---|---:|---:|
146
- | ARC-Challenge | 30.0 | 34.8 |
147
- | HellaSwag | 43.4 | 53.7 |
148
- | PIQA | 66.2 | 70.3 |
149
- | WinoGrande | 53.7 | 59.0 |
150
- | HellaSwag-PL | 43.9 | 46.8 |
151
 
152
- Percentages; WinoGrande uses accuracy, the others length-normalized accuracy. [All nine benchmark plots](plots/benchmark-overview.png) show sample counts and pointwise 95% confidence intervals. Random-choice references are 25% for four answers and 50% for two; BoolQ also shows its majority-class baseline. GSM8K and SST-2 use a [separate protocol and plot](plots/additional-benchmarks.png).
153
 
 
154
 
155
- ## Usage
 
 
 
 
156
 
157
- The [archive](https://huggingface.co/SlayerLab/Slayer1B-1.09-checkpoints) contains native PyTorch weights. Install `torch`, `numpy`, `tokenizers`, and `huggingface_hub`; use Python 3.11 or later. The helper downloads 4.3 GB of weights.
158
 
159
  ```python
160
  from huggingface_hub import hf_hub_download
161
  import importlib.util
162
- path = hf_hub_download("SlayerLab/Slayer1B-1.09", "load_slayer.py")
163
- spec = importlib.util.spec_from_file_location("slayer", path)
 
164
  slayer = importlib.util.module_from_spec(spec)
165
  spec.loader.exec_module(slayer)
 
166
  model, tokenizer = slayer.load(device="cpu", update=45000)
167
- prompt = "The capital of Poland is"
168
- text = slayer.generate(model, tokenizer, prompt, max_new_tokens=48)
169
- print(prompt + text)
170
  ```
171
 
172
- [Native loading details and generated examples](USAGE.md).
173
 
174
- **Actual 45k completions** (greedy, float32; prompt in bold):
175
 
176
- - Polish: **Warszawa jest stolic膮 Polski i** najwi臋kszym miastem w kraju. W Warszawie znajduje si臋 wiele zabytk贸w, takich jak Stare Miasto, Zamek Kr贸lewski, 艁azienki Kr贸lewskie, Pa艂ac Kultury i Nauki, a tak偶e wiele innych. Warszawa jest r贸wnie偶 wa偶nym centrum kulturalnym i
177
- - English: **The capital of Poland is** Warsaw. The capital of Poland is Warsaw. The capital of Poland is Warsaw. The capital of Poland is Warsaw. The capital of Poland is Warsaw. The capital of Poland is Warsaw. The capital of Poland is
178
 
179
- ## Architecture and training
 
 
 
 
 
 
180
 
181
- | Property | Value |
182
- |---|---|
183
- | Parameters / layers / attention heads | 1.07B / 20 / 16 |
184
- | Hidden width / vocabulary / context | 2.05k / 32.8k / 4k tokens |
185
- | Architecture | SwiGLU, RMSNorm, RoPE, QK normalization, value residuals |
186
- | Optimizers / schedule | Muon + AdamW; warmup, then constant learning rates |
187
- | Global batch | 256 sequences; approximately 1.05M tokens per update |
188
 
189
- Exact settings are in [TRAINING_CONFIGURATION.md](TRAINING_CONFIGURATION.md).
190
 
191
- ## Data
192
 
193
- ![Polish/English allocation by continuation update](plots/training-mix.png)
194
 
 
195
 
196
- The documented continuation mix through 45k is 20% Polish / 80% English source allocation: selected GoLLeM web, FinePDFs-Edu, and FineWeb-Edu. At 45k, estimated cumulative training exposure is **65.9B token occurrences**, including the inherited model and a known duplicate correction; this is not a globally unique-token count. See [DATA_CARD.md](DATA_CARD.md) for sources; [mix by stage](TRAINING_MIX.md).
197
 
198
- ## Limitations and links
199
 
200
- The base model is not instruction-tuned. Polish Belebele and MMLU scores remain near the 25% chance reference. Training-lineage contamination checks are incomplete. Generated text can be incorrect, biased, or personal.
 
 
 
 
201
 
202
- [Scaling estimates](SCALING_REPORT.md) 路 [Early history](LINEAGE_SCALING.md) 路 [Research ideas](RESEARCH_IDEAS.md) 路 [Exact evaluation data](EVALUATION.json) 路 [Training history and detailed results](TRAINING_LOG.md) 路 [Live training log](https://track.fabryka.ai/run/71cf98ec-7c60-54a8-ac47-0ea7a23f573a) 路 [Checkpoint archive](https://huggingface.co/SlayerLab/Slayer1B-1.09-checkpoints) 路 [Plotting script](plots/plot_benchmarks.py)
203
 
204
- Apache-2.0. Authors: Arkadiusz S艂ota, Kacper Wikie艂, Anna Sieczka, Piotr Sty艂a, Aleksander Ogrodzki, Pawe艂 Puzio, Marcin Ku艣mierski / Fabryka AI.
205
 
206
- Kacper Wikie艂: founder and model advisor. Funded by Fabryka AI.
 
131
 
132
  # Slayer1B 1.09
133
 
134
+ A compact **Polish鈥揈nglish base language model** for text continuation, experimentation, and further training. Slayer1B 1.09 continues the Slayer1B 1.08 checkpoint with a documented **80% English / 20% Polish** new-input mix through update 45,000.
135
 
136
+ - **Use it to:** continue Polish or English text, study a small bilingual model, or start domain-specific continued pretraining and fine-tuning.
137
+ - **Why this checkpoint:** an openly released 1.07B-parameter model with published intermediate weights and a reproducible native PyTorch loader.
138
+ - **Know before you load:** this is a **base model**, not a chat assistant. It has not been instruction-tuned and has no chat template or demonstrated tool-use behavior.
139
 
140
+ ## Model details
141
 
142
+ | Property | Specification |
143
+ |---|---|
144
+ | Checkpoint | Base model; continued pretraining from [Slayer1B 1.08](https://huggingface.co/SlayerLab/Slayer1B-1.08) |
145
+ | Parameters | 1.07B (1,073,912,851) |
146
+ | Languages | Polish and English |
147
+ | Context length | 4,096 tokens |
148
+ | Vocabulary | 32,768 tokens |
149
+ | Architecture | 20-layer decoder-only Transformer; SwiGLU, RMSNorm, RoPE, QK normalization, value residuals |
150
+ | Weights | Native PyTorch `.pt`, float32; approximately 4.3 GB per checkpoint |
151
+ | License | Apache-2.0 |
152
 
153
+ ## Is this the right model for your task?
154
 
155
+ Choose Slayer1B 1.09 when you want a small Polish鈥揈nglish **starting checkpoint** for text completion, model research, or your own post-training. The public archive contains weights-only checkpoints every 5,000 updates from 5,000 through 45,000, so you can inspect how measured benchmark scores change during this continuation.
 
 
 
 
 
 
156
 
157
+ For direct question answering, following instructions, tool calling, or agent workflows, use an instruction-tuned model instead. Slayer1B 1.09 predicts continuations from a text prompt; it may repeat itself and does not reliably follow requests. Its 4K context also makes it a poor fit for long-document tasks without additional adaptation.
158
 
159
+ ## Inference
160
 
161
+ The release uses a small native PyTorch loader rather than the Transformers `AutoModel` interface. The helper pins model-code, tokenizer, and archive revisions and checks the downloaded weights against the archive checksum. Install Python 3.11 or later and the dependencies:
162
+
163
+ ```bash
164
+ pip install torch numpy tokenizers huggingface_hub
165
+ ```
166
 
167
+ Load the published 45,000-update checkpoint and generate a greedy continuation:
168
 
169
  ```python
170
  from huggingface_hub import hf_hub_download
171
  import importlib.util
172
+
173
+ loader_path = hf_hub_download("SlayerLab/Slayer1B-1.09", "load_slayer.py")
174
+ spec = importlib.util.spec_from_file_location("slayer", loader_path)
175
  slayer = importlib.util.module_from_spec(spec)
176
  spec.loader.exec_module(slayer)
177
+
178
  model, tokenizer = slayer.load(device="cpu", update=45000)
179
+ prompt = "Warszawa jest stolic膮 Polski i"
180
+ continuation = slayer.generate(model, tokenizer, prompt, max_new_tokens=48)
181
+ print(prompt + continuation)
182
  ```
183
 
184
+ `device` can be `"cpu"`, `"mps"` on Apple Silicon, or `"cuda"` on a supported NVIDIA system. The helper is intended as a minimal example, not a high-throughput server: it recomputes the prompt for each token and does not use a KV cache. See [inference notes and unedited examples](USAGE.md) and the [checkpoint archive](https://huggingface.co/SlayerLab/Slayer1B-1.09-checkpoints) for available weights and checksums.
185
 
186
+ ## Performance
187
 
188
+ These are zero-shot, float32 multiple-choice evaluations. The 1.08 and 1.09 columns use the same documented Slayer evaluation setup; scores are percentages. WinoGrande uses accuracy; the other listed tasks use length-normalized accuracy.
 
189
 
190
+ | Benchmark | 1.08 | 1.09, update 45,000 |
191
+ |---|---:|---:|
192
+ | ARC-Challenge | 30.0 | 34.8 |
193
+ | HellaSwag | 43.4 | 53.7 |
194
+ | PIQA | 66.2 | 70.3 |
195
+ | WinoGrande | 53.7 | 59.0 |
196
+ | HellaSwag-PL | 43.9 | 46.8 |
197
 
198
+ On HellaSwag, the measured score rose from 43.4% to 53.7% across these two checkpoints. This is a descriptive checkpoint comparison, not a controlled experiment isolating the effect of the new training data. The [nine-task overview](plots/benchmark-overview.png) includes sample counts and pointwise 95% confidence intervals; [EVALUATION.json](EVALUATION.json) records exact dataset revisions, metrics, and checkpoint identities.
 
 
 
 
 
 
199
 
200
+ Polish knowledge measurements remain limited: at update 45,000, Belebele-PL is **25.33%** and MMLU-PL is **25.74%**, near the 25% uniform-choice reference. These results do not establish strong Polish question answering. Training-lineage contamination checks are incomplete, so benchmark scores are descriptive rather than proof that every evaluation example was unseen during training. GSM8K and SST-2 were measured under a separate protocol at update 10,000; details are in [EVALUATION.json](EVALUATION.json).
201
 
202
+ ![Benchmark scores across Slayer1B versions and 1.09 checkpoints](plots/benchmark-overview.png)
203
 
204
+ ## Training
205
 
206
+ Version 1.09 starts from the released Slayer1B 1.08 checkpoint and continues pretraining. Through the evaluated update-45,000 checkpoint, new source allocation is documented as 80% English and 20% Polish. Selected inputs include GoLLeM web, FinePDFs-Edu, and FineWeb-Edu. The 4,096-token context and training recipe are described in [TRAINING_CONFIGURATION.md](TRAINING_CONFIGURATION.md); source selection, filtering, and licensing notes are in [DATA_CARD.md](DATA_CARD.md).
207
 
208
+ At update 45,000, the documented cumulative exposure estimate is 65.9B token occurrences, including inherited training and a known duplicate correction. This is not a count of globally unique tokens. See the [training log](TRAINING_LOG.md), [mix by stage](TRAINING_MIX.md), and [live training telemetry](https://track.fabryka.ai/run/71cf98ec-7c60-54a8-ac47-0ea7a23f573a). Telemetry may be ahead of the latest published and evaluated checkpoint; the benchmark table above is specifically for update 45,000.
209
 
210
+ ## Limitations
211
 
212
+ - Not instruction-tuned: do not expect reliable chat, instruction following, structured output, tool calling, or agent behavior.
213
+ - Short context: maximum configured context is 4,096 tokens.
214
+ - Greedy examples can repeat, especially in English; generated content can be inaccurate, biased, offensive, or personal.
215
+ - Polish multiple-choice scores on Belebele-PL and MMLU-PL are near the uniform-choice reference.
216
+ - Evaluation contamination checks across the full training lineage are incomplete. No benchmark here demonstrates professional reliability or a causal gain from a particular data source.
217
 
218
+ ## Further reading
219
 
220
+ [Exact evaluation record](EVALUATION.json) 路 [Detailed training history](TRAINING_LOG.md) 路 [Training data card](DATA_CARD.md) 路 [Native inference notes](USAGE.md) 路 [Checkpoint archive](https://huggingface.co/SlayerLab/Slayer1B-1.09-checkpoints) 路 [Research and scaling notes](LINEAGE_SCALING.md)
221
 
222
+ **Authors:** Arkadiusz S艂ota, Anna Sieczka, Piotr Sty艂a, Aleksander Ogrodzki, Pawe艂 Puzio, Marcin Ku艣mierski, Kacper Wikie艂. **Funded by Fabryka AI.**