Downloads · 30 days
77
27% of all-time downloads
WhirlwindAI/TinyZephyr
TinyZephyr is a text generation model from WhirlwindAI. Use it when you need the model to write or continue text. The card lists the license as mit.
Downloads · 30 days
77
27% of all-time downloads
All-time downloads
286
Public
Parameters
1.3K
326 KB on disk
Likes
2
Public
Click a slice to open those files.
.pt174 KB · 40%
From the Hugging Face model README
<br><br>
<img src="https://capsule-render.vercel.app/api?type=rounded&height=190&text=TinyZephyr&fontColor=ffffff&fontSize=48&animation=twinkling&color=0:8B5CF6,50:A855F7,100:2563EB"/> </div>TinyZephyr explores the opposite extreme.
Instead of billions of parameters, this model asks one very important question:
How ridiculously small can a transformer become before it completely loses its mind?
The answer is... surprisingly entertaining.
</td> </tr> </table> </div>Nobody needed this.
Nobody requested it.
Nobody funded it.
Yet somehow...
TinyZephyr exists.
It was built purely as an experiment to explore the lower limits of transformer architectures while proving that even microscopic language models deserve beautiful documentation.
| Property | Value |
|---|---|
| Parameters | 1,272 |
| Architecture | GPT-2 |
| Layers | 1 |
| Attention Heads | 1 |
| Embedding Size | 8 |
| Context Length | 32 |
| Vocabulary | 50 Tokens |
| Model Size | ~25 KB |
| Training Time | ~4 Minutes (CPU) |
| Task | Result |
|---|---|
| Write Python | ❌ |
| Solve Math | ❌ |
| Explain Physics | ❌ |
| Generate Gibberish | ✅ |
| Exist | ✅ |
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("WhirlwindAI/TinyZephyr")
model = AutoModelForCausalLM.from_pretrained("WhirlwindAI/TinyZephyr")
prompt = "The meaning of life is"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
do_sample=True,
temperature=1.6,
max_length=32
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Possible output:
The meaning of life is...
xqw fjczqnv lpoqa yv
Beautiful.
You
Write a poem about space.
TinyZephyr
moon potato quantum fish sandwich
Mission accomplished.
CPU
Yes.
GPU
Optional.
RAM
If your browser opens, you're probably fine.
Storage
Less than most PNG files.
Not particularly.
Surprisingly... yes.
Only if your expectations are extremely flexible.
Curiosity.
And because somebody had to.
🏆 Fastest Model To Finish Inference
🥇 Most Parameters Removed Without Deleting Everything
🥈 Best Random Sentence Generator
🥉 Self-Proclaimed Champion of Tiny AI
TinyZephyr was never trained to be helpful.
It doesn't know facts.
It doesn't reason.
It doesn't write code.
It mostly produces beautifully random nonsense.
And that's exactly what it was designed to do.
MIT
Use it.
Benchmark it.
Laugh at it.
Make it even smaller.
Sometimes the best experiments begin with terrible ideas.
<br> <img src="https://capsule-render.vercel.app/api?type=waving&height=120§ion=footer&color=0:8B5CF6,100:2563EB"/> </div>