Views
No views yet

| Property | Value |
|---|---|
| Parameters | 49,303,040 |
| Architecture | Llama-like causal LM |
| Layers | 16 |
| Hidden size | 512 |
| Attention heads | 8 |
| KV heads | 2 |
| Head dim | 64 |
| Intermediate size | 1408 |
| Vocabulary size | 8192 |
| Context length used in training | 1024 |
| Activation | SwiGLU / SiLU |
| Normalization | RMSNorm |
| Attention | GQA with QKV-Norm |
| Positional encoding | RoPE |
| Weight tying | Tied input embeddings and LM head |
| Training tokens | Approximately 19.99B |
| Training precision | bfloat16 |
| Optimizer | Muon |
<|bos|>: 0<|eos|>: 1<|pad|>: 2<|unk|>: 3<|im_start|>: 4<|im_end|>: 5veyra-ai/SciCloze-900import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "veyra-ai/Veyra2-Apricot-50M-Base"
tokenizer = AutoTokenizer.from_pretrained(
model_id,
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
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-Apricot-50M-Base