Boris-Peacebell
Boris-Peacebell is a 141M-parameter chat model about the Second World War. It is the Boris-2 architecture trained from scratch on the data, tokenizer and five-epoch recipe of Wayne Workman's Peacebell, as a cross-experiment: Peacebell's data on Boris's architecture, while Wayne trains Peacebell's architecture on Boris's data.
Q: Who was Erwin Rommel?
A: Erwin Rommel was a German field marshal who commanded the Afrika Korps during World War II. He is best known for
leading German forces in North Africa, where he defeated the Allies in the Western Desert Campaign and pushed them
back into Egypt.
Usage
The model speaks ChatML. The tokenizer builds the prompt with build_chatml_ids and cleans the reply with
decode_response. It needs sentencepiece installed.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "KlondikeDev/Boris-Peacebell"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
ids = torch.tensor([tok.build_chatml_ids([{"role": "user", "content": "Why did the Battle of Midway matter?"}])])
out = model.generate(ids, max_new_tokens=200, do_sample=True, temperature=0.7, top_p=0.9)
print(tok.decode_response(out[0, ids.shape[1]:].tolist()))
Generation stops at <|im_end|> (id 4) or </s> (id 2). The modeling code has no KV cache, so long replies are slow;
it runs in float32 or bfloat16 with the residual stream kept in float32.
Model
| Field | Value |
|---|---|
| Parameters | 141.3M (126.3M transformer and embedding, 15.0M n-gram table) |
| Layers | 31 |
| Hidden size | 512 |
| Attention | 8 heads of 64, full multi-head, RoPE theta 1,000,000 |
| MLP | SwiGLU, inner 1664 |
| Context | 32,768 tokens |
| Vocabulary | 28,000 (Peacebell's SentencePiece tokenizer, unchanged) |
As in Boris-2, every block applies a Canon layer (a causal 3-tap depthwise convolution on the fused query/key/value
projection), and a 15M-parameter n-gram table adds a learned vector for frequent bigrams and trigrams after block 2.
The table's vocabulary was rebuilt on Peacebell's data for this tokenizer. Documents packed in one sequence never see
each other: attention, Canon and the n-gram lookup all reset at </s>.
Training
Five epochs over Peacebell's data, each a fresh resample at the dataset cards' mix ratios, following Peacebell's recipe.
| Epoch | Tokens | Loss on | Peak learning rate (Muon / AdamW) | Final training loss |
|---|---|---|---|---|
| 1 | 6.8B | all tokens | 0.0025 / 0.003 | 0.743 |
| 2 | 6.8B | assistant turns only | 0.0025 / 0.003 | |
| 3 | 6.8B | assistant turns only | 0.00125 / 0.0015 | |
| 4 | 6.8B | assistant turns only | 0.000625 / 0.00075 | 0.418 |
| 5 | 6.8B | assistant turns only | 0.000625 / 0.00075, then 1-sqrt decay to zero | 0.331 |
| Total | 34.0B |
Optimizer: Muon for the matrices, AdamW for embeddings, norms, Canon and the n-gram table. Batch 524,288 tokens. Hardware: one NVIDIA RTX Pro 6000 on molab, about 122,000 tokens per second, resumed across sessions from rolling checkpoints.
Data
All training text comes from Wayne Workman's two datasets, both released under Apache 2.0 overall:
They are generated from English Wikipedia by open-weight models. Some subsets carry other licenses, for example the verbatim Wikipedia sections under CC BY-SA 4.0; each subset's license is listed in the dataset card. The synthetic corpus deliberately includes absurd, obscene and offensive user prompts so the model learns to handle them; see its card before reusing the data.
Evaluation
No benchmark results yet. This is a narrow-domain chat model, so general benchmarks such as HellaSwag are not its target; a comparison with Peacebell on Peacebell's own evaluations is planned.
Limitations
A 141M-parameter model. It states wrong dates, numbers and outcomes with confidence (in testing it gave both June 3 and June 4 as the start of the Battle of Midway in one answer) and simplifies contested history. It knows little outside the Second World War and steers conversations back to it. Check anything it says against a real source. It has had no safety tuning beyond what its training data teaches.
Copyright & License
Copyright 2026 OpenCerebral
This project and all associated files (the "Work") are licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.