Views
No views yet

| Property | Value |
|---|---|
| Parameters | 15,735,168 |
| Architecture | LlamaForCausalLM |
| Layers | 8 |
| Hidden size | 384 |
| Attention heads | 6 |
| KV heads | 2 |
| Head dim | 64 |
| Intermediate size | 1024 |
| Vocabulary size | 8192 |
| Context length used in training | 2048 |
| Activation | SwiGLU / SiLU |
| Normalization | RMSNorm |
| Attention | GQA |
| Positional encoding | RoPE |
| Weight tying | Tied input embeddings and LM head |
| Training tokens | Approximately 30B |
| Training precision | bfloat16 |
| Optimizer | AdamW |
<|endoftext|>: 0<|im_start|>: 1<|im_end|>: 2<|pad|>: 3dclm_baseline: 50%
finephrase: 20%
cosmopedia_v2: 10%
finemath_4plus: 10%
ultrafineweb_multistyle: 5%
ultrafineweb_qa: 5%finephrase: 30%
dclm_baseline: 30%
cosmopedia_v2: 18%
finemath_4plus: 10%
ultrafineweb_multistyle: 5%
ultrafineweb_qa: 5%
ultrachat: 2%import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "veyra-ai/Veyra2-Mango-15M-Base"
tokenizer = AutoTokenizer.from_pretrained(
model_id,
)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
prompt = "In the 19th century"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(
**inputs,
max_new_tokens=120,
do_sample=True,
temperature=0.6,
top_p=0.9,
repetition_penalty=1.1,
use_cache=True,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output[0], skip_special_tokens=True))veyra-ai/Veyra2-Mango-15M-Base