Downloads · 30 days
175
31% of all-time downloads
Kunal7370944861/Twinkel-LLM-72M
Twinkel-LLM-72M is a text generation model from Kunal7370944861. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Twinkel LLM is an experimental 72M parameter language model created by Kunal Pandey as a learning project.
Downloads · 30 days
175
31% of all-time downloads
All-time downloads
556
Public
Repo size
1.9 GB
Likes
1
Public
Click a slice to open those files.
.bin288 MB · 94%
From the Hugging Face model README
Twinkel LLM is an experimental 72M parameter language model created by Kunal Pandey as a learning project.
⚠️ Status: Early experimental release (v0.1-alpha)
⚠️ Important: This model currently works best on CPU. GPU inference has known issues that are being resolved in future versions.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model
tokenizer = AutoTokenizer.from_pretrained(
"Kunal7370944861/Twinkel-LLM-72M",
trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
"Kunal7370944861/Twinkel-LLM-72M",
trust_remote_code=True,
torch_dtype=torch.float32,
device_map="cpu" # Force CPU for stability
)
# Generate response
def chat(message):
messages = [{"role": "user", "content": message}]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(
prompt,
return_tensors="pt",
return_token_type_ids=False # Important!
)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=100,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Test
response = chat("What is Python?")
print(response)
GPU Inference Issues
Model Size
Context Window
Response Quality
Language
This is an experimental educational project suitable for:
✅ Learning about LLM architecture
✅ Understanding model training and fine-tuning
✅ Experimenting with small language models
✅ CPU-based inference testing
❌ NOT suitable for:
AcceleratorError: CUDA error: device-side assert triggered
Solution: Force CPU inference:
model = AutoModelForCausalLM.from_pretrained(
"Kunal7370944861/Twinkel-LLM-72M",
trust_remote_code=True,
device_map="cpu" # Add this
)
ValueError: The following `model_kwargs` are not used: ['token_type_ids']
Solution: Disable token_type_ids:
inputs = tokenizer(
prompt,
return_tensors="pt",
return_token_type_ids=False # Add this
)
This is an experimental model with limited capabilities:
Version 0.2 (Planned):
Apache 2.0 - Free for commercial and research use.
This is an experimental educational project. The model:
Use at your own risk for experimental and educational purposes only.
For questions, issues, or feedback, please open an issue on the model repository.
Model Status: 🚧 Experimental Alpha
Created by: Kunal Pandey
Version: 0.1-alpha
Last updated: January 2026