Downloads · 30 days
0
ShiningSon/Leviathan-MLGRU-30M-TinyStories
Leviathan-MLGRU-30M-TinyStories is a text generation model from ShiningSon. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is a small proof model for the Leviathan-1.58bit-Engine.
Downloads · 30 days
0
Access
Public
Updated Jun 29, 2026
Repo size
15.3 MB
Likes
0
Public
Click a slice to open those files.
.bin15.3 MB · 96%
From the Hugging Face model README
This is a small proof model for the Leviathan-1.58bit-Engine.
It was trained to validate the route:
Modal T4 training -> Leviathan MLGRU checkpoint -> ternary 2-bit export -> local CPU runtime
This is not a general assistant model. It is a TinyStories-style recurrent language model intended for runtime validation and benchmark experiments.
leviathan_mlgru_30m_t4.bin
leviathan_mlgru_30m_t4_meta.json
leviathan_mlgru_tokenizer/
report.json
sample_outputs.txt
Architecture: Leviathan MLGRU
Dataset: TinyStories
Steps: 2000
Hidden size: 512
Layers: 8
Intermediate size: 1536
Sequence length: 96
Batch size: 16
Linear weights: ternary_2bit_packed
Structural tensors: FP16
Runtime: Leviathan CPU engine
Clone or download this model repository, then run from the directory containing the model files:
python engine.py \
--bin leviathan_mlgru_30m_t4.bin \
--meta leviathan_mlgru_30m_t4_meta.json \
--architecture mlgru \
--top-k 0 \
--max-new 120 \
--prompt-template plain
Recommended prompt:
Once upon a time
Observed local CPU runtime:
| Mode | Setting | Speed |
|---|---|---|
| Dense MLGRU | --top-k 0 | 383.90 tok/s |
| Ratio Top-K | --top-k 0.9 | 210.44 tok/s |
| Ratio Top-K | --top-k 0.8 | 205.81 tok/s |
| Ratio Top-K | --top-k 0.7 | 238.95 tok/s |
At 30M scale, dense mode is faster because Top-K selection overhead dominates. Ratio Top-K remains useful as a sparsity-quality and scaling experiment.