Views
No views yet
welmia-1.0-103m-instruct (uploaded separately).| Parameter | Value |
|---|---|
| Parameters | 103.4M |
| Layers | 12 |
| Attention Heads | 12 |
| Embedding Dim | 768 |
| Context Length | 512 |
| Vocab Size | 24,000 |
| Normalization | RMSNorm |
| Activation | SwiGLU |
| Positional Enc. | RoPE |
| Weight Tying | Yes |
welmia-1.0-81m.
Checkpoints and tokenizers between the two models are not interchangeable.1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained("Welmia/welmia-2.0-103m-base", trust_remote_code=True)
5tok = AutoTokenizer.from_pretrained("Welmia/welmia-2.0-103m-base")
6
7ids = tok("The history of artificial intelligence began", return_tensors="pt").input_ids
8out = model.generate(ids, max_new_tokens=100, do_sample=True, temperature=0.8, top_k=40)
9print(tok.decode(out[0], skip_special_tokens=True))trust_remote_code=True is required — this is a custom architecture, defined in
modeling_gpt.py in this repo.-instruct version for chat/Q&A behavior.generate() recomputes the full forward pass
each step, so it's slower than production-grade inference code at longer output lengths.