CoolFace
Modelpublic

CyanMonkey/Petal-50M

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes14downloads
Model Card

Petal-50M

Small language model (49.7M parameters) trained from scratch.

Architecture

PropertyValue
Layers14
Hidden size512
Intermediate size1408
Attention heads8 (GQA kv=4)
Max sequence length1024
Vocab size16384
Tied embeddingsTrue
Total parameters49.691M

Training

  • —Tokens seen: 12,206,075,904
  • —Val loss: 1.8920
  • —Val PPL: 6.63

Usage

python
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("CyanMonkey/Petal-50M")
model = AutoModelForCausalLM.from_pretrained("CyanMonkey/Petal-50M")
inputs = tokenizer("Hello", return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(output[0], skip_special_tokens=True))