Downloads · 30 days
54
15% of all-time downloads
zakarth/violet-1b4
violet-1b4 is a text generation model from zakarth. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc0-1.0.
Downloads · 30 days
54
15% of all-time downloads
All-time downloads
357
Public
Parameters
1.4B
2.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.8 GB · 100%
From the Hugging Face model README

Violet is a GPT-NeoX language model trained primarily on period texts (1800–1899). This is the completion version of the model, so if you were looking for the Chat version, you should check out Violet 1b4 Chat
It is intended for creative writing, roleplay, period-appropriate correspondence, and Victorian etiquette.
GPTNeoXForCausalLMPreTrainedTokenizerFastGood for
Not good for
Violet is not the first LLM trained on a historical-only pretraining corpus; to the author’s knowledge that distinction belongs to TimeCapsuleLLM. Violet was developed independently, and differs in:
Violet was built on a corpus spanning 1800–1899 sourced from Project Gutenberg, the Internet Archive, the British National Library, and other archives.
This project began as an attempt to build a local LLM without relying on copyrighted training sources. The author also values local models that can run on a user’s machine without sending data to the cloud.
Zakarth/violet-1b4 (base/completion)Zakarth/violet-1b4-chat-onnx (WebGPU INT8)This model was trained to generate a mood line + assistant tag + response after <|violet_mood|>.
Use this structure:
The morning fog had scarcely lifted when
The model will then generate:
{response...}
Violet 1b4 was trained on a custom tokenizer specific for Victorian text.
Recommended IDs for generation:
Special tokens used during training (typical IDs from training config):
!! Do not mix tokenizers from other Violet variants (e.g. 160M) with this model.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo = "Zakarth/violet-1b4-chat"
tok = AutoTokenizer.from_pretrained(repo, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(repo, device_map="auto")
prompt = "The morning fog had scarcely lifted when"""
inputs = tok(prompt, return_tensors="pt", add_special_tokens=False)
# Filter out token_type_ids if present
inputs = {k: v.to(model.device) for k, v in inputs.items() if k in ['input_ids', 'attention_mask']}
out = model.generate(
**inputs,
max_new_tokens=180,
do_sample=True,
temperature=0.8,
top_p=0.9,
top_k=40,
repetition_penalty=1.15,
eos_token_id=0,
pad_token_id=1,
)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False))
The morning fog had scarcely lifted when
The morning fog had scarcely lifted whenthe first
light streamed through the window, and before it was quite light the
flood of rain came on with a suddenness which seemed to scorch up the
roof. The lightning was as bright as ever, but there were only three or
four flashes in the sky--a bright flash like a meteor--and the thunder
was not so loud nor so deafening as usual.
At last the storm ceased. The storm was over; the stars shone out; the
thunder rolled away, leaving the clouds behind it in an impenetrable
haze, which at once became visible, and soon they disappeared. The wind
blew with fury, driving the snow and ice from off the roofs of the houses
Model weights and code in this repository are released under CC0 1.0 (public domain dedication).
violet.png is © @rose.grtqndl (Instagram). Used and redistributed with permission; copyright remains with the artist.
You may contact me on X or anywhere else by searching for my handle
@misc{violet2026,
author = Zakarth,
title = {Violet: Victorian Language Models},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/Zakarth/violet-1b4-chat}
}