π¦ Owl-v1
1. Model Intro
Owl-v1 is a lightweight 10.8 M parameter language model built from scratch for learning and integration purposes.
2. What Can It Generate?
Character name / scene opener prompts.
| Prompt | Output | Quality |
|---|---|---|
"HAMLET:\n" |
Character dialogue in Early Modern English | βββ |
"Enter KING and QUEEN.\n" |
Stage directions + speech | ββ |
"To be, or not to be" |
Probabilistic monologue continuation | ββ |
"Shall I compare thee" |
Poetic continuation (metre may drift) | β |
"\n" (cold start) |
Free-form dramatic scene | ββ |
3. Usage
Requires trust_remote_code=True β CharTokenizer and ModelArchitecture are custom classes.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("IstishadAlamTishad/Owl-v1", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("IstishadAlamTishad/Owl-v1", trust_remote_code=True)
model.eval()
ids = tokenizer.encode("HAMLET:\n", return_tensors="pt")
with torch.no_grad():
out = model.generate(ids, max_new_tokens=200, do_sample=True, temperature=0.8, top_k=40)
print(tokenizer.decode(out[0].tolist()))
4. Model Training & Specs
| Dataset | Tokens | Steps | Batch |
|---|---|---|---|
| TinyShakespeare | 1,115,394 | 5,000 | 64 |
| Property | Value |
|---|---|
| Parameters | 10.8 M |
| Layers / Heads / D_embd | 6 / 6 / 384 |
| Context length | 256 tokens |
| Vocab | 65 chars |
5. Performance Metrics Curves
Built for learning and integration
- Downloads last month
- 32

