Downloads · 30 days
167
19% of all-time downloads
wayneworkman2012/peacebell-v1-291M
peacebell-v1-291M is a text generation model from wayneworkman2012. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Peacebell is a 291M-parameter GPT-style decoder trained from scratch to know the history of World War II: custom architecture, a custom 28,000-token SentencePiece vocabulary, and a 32,768-token context. It is not a fi…
Downloads · 30 days
167
19% of all-time downloads
All-time downloads
865
Public
Parameters
291M
1.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
peacebell-v1-291M)Peacebell is a 291M-parameter GPT-style decoder trained from scratch to know the history of World War II: custom architecture, a custom 28,000-token SentencePiece vocabulary, and a 32,768-token context. It is not a fine-tune of any other model and was not distilled from one. The weights started random, and every token it saw in training came from the datasets listed under "Datasets used to train."
It discusses World War II topics, mostly focused on answering questions and providing related information. It has limited capacity to provide plausible fiction voice for members of the Allies and victims of the Axis. More detail on capabilities below:
Outside that subject the behavior layer teaches it to:
Closed-book only. Every answer comes from the model's own memory; the training corpus contains no retrieval-style (context + question) examples, so this checkpoint has no open-book / RAG ability. Pasting a passage and asking questions about it will not yield grounded answers: it does not read supplied context as a source and may ignore or contradict it. Ask it directly.
The model answers as Peacebell. From its identity training data: it is an AI, a small language model built from scratch by Wayne Workman. Ask it "Who are you?" or "Who made you?".
Each dataset card describes its subsets, the Wikipedia articles they are grounded in (with per-record provenance links), and the source datasets and citations that apply to it.
| Parameters | 291,464,986 (291.46M; tied head counted once) |
| Layers | 13 |
| Embedding dim | 1280 |
| Heads | 20 (head_dim 64) |
| Context length | 32,768 |
| Vocab | 28,000 (SentencePiece) |
| Positions | RoPE, θ = 1,000,000 |
| Tied embeddings | True |
<|im_start|>, <|im_end|>), every year from 1850 to 2026 (177 symbols), the 12 month names, and the identity strings (Peacebell, wayne.theworkmans.us, https://, Wayne, Workman).temperature > 0) noticeably increases factual errors, invented details and topic drift. run_model.py, the Python snippet below and the demo Space all default to temperature=0.0./reset in run_model.py, a new message list in code, or New conversation in the demo Space.The repo ships a ready-to-run chat script and its requirements. Runs on CPU (no flash-attn, no CUDA required) or on a GPU:
hf download wayneworkman2012/peacebell-v1-291M --local-dir peacebell-v1-291M
cd peacebell-v1-291M
pip install -r requirements.txt
python run_model.py # multi-turn chat
python run_model.py "When did WWII end?" # one answer, then exit
In the chat: /reset starts a new conversation, /temp N sets the temperature, /length N the maximum reply length, /help lists the commands, /quit exits.
Or load it from Python via trust_remote_code=True (the modeling code — configuration_gpt.py, modeling_gpt.py, tokenization_gpt.py — ships in this repo; no training repo needed):
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "wayneworkman2012/peacebell-v1-291M"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo, trust_remote_code=True, dtype=torch.float32
).eval()
# On a GPU instead:
# model = AutoModelForCausalLM.from_pretrained(
# repo, trust_remote_code=True, dtype=torch.bfloat16).to("cuda").eval()
messages = [{"role": "user", "content": "When did World War II end?"}]
ids = tok.build_chatml_ids(messages, add_generation_prompt=True)
out = model.chat_generate(
torch.tensor(ids), max_new_tokens=256, temperature=0.0 # greedy — recommended
)
print(tok.decode_response(out))
build_chatml_ids reproduces the exact ChatML token layout the model was trained on (manual <|im_start|>/<|im_end|> injection; per-segment SentencePiece encoding). Generation stops on <|im_end|>.
Multi-turn: pass the whole conversation — alternating user/assistant messages — to build_chatml_ids, then append the model's reply as an assistant message before the next user turn.
pip install gradio_client, then Client("wayneworkman2012/peacebell-v1-291M-demo").predict(...) — see the Use via API link at the bottom of the Space for the exact endpoint and arguments. (This runs on the hosted Space, not your machine.)The weights are released under Apache 2.0 (apache-2.0).
The name Peacebell is not part of the license. Apache 2.0 grants no right to the licensor's names or marks (its section 6), and this one is reserved. The weights as shipped here are Peacebell, and stay Peacebell wherever they are run, served or mirrored, in fp32 as stored or cast to bf16 or fp16 at load. Anything that changes the weights is not: fine-tunes, merges, further-trained versions, quantizations and every other derivative of these weights may not be called Peacebell, may not carry Peacebell in their model name or repository id, and may not be presented as Peacebell or as a Peacebell release. Saying that a model is derived from Peacebell, with a link to this repository, is the customary description of origin the license allows, and is welcome. Note that the weights identify themselves as Peacebell when asked; a derivative that keeps that answer is still not Peacebell, and its card should say what it is.
Training data licensing: all training data is Apache 2.0 except six subsets of the corpus. The article-sections subset (article_sections_v2), which is verbatim English Wikipedia text, and the extraction-training subsets (feature_extraction_training_gold, feature_extraction_training_gold16, relationship_extraction_training, quote_extraction_training), whose user turns quote the article passage they extract from, are under CC BY-SA 4.0; the model can reproduce such passages when asked, and that output carries the license's attribution and share-alike terms. The user turns of the off-topic-openers subset (off_topic_openers) come from Anthropic/hh-rlhf (MIT). Each dataset card lists the license per subset.