Vega-1.6-128M-Instruct
A Compact Instruction-Following SLM
2 min read
This model is a new experimental SLM (small language model) with 128M parameters, fine-tuned on the HuggingFaceTB/smol-smoltalk dataset containing over 327 million tokens. Compared to the Chat variant, this version shows improved instruction-following capabilities. Based on the original Vega-1.6-128M-Base architecture, it is well-suited for lightweight automation tasks on local devices.
Key features
- The total parameter count is 128.4 million, ensuring very modest hardware requirements.
- The context length is 2,048 tokens with a vocabulary size of 32,000 tokens.
- The architecture features 16 layers, a hidden size of 768, and 12 attention heads.
- Fine-tuning on the smol-smoltalk dataset improved accuracy on basic text prompts.
What you can do
- Run the model locally to test small text assistants.
- Use it in bots and scripts where minimal response latency for simple requests is essential.
- Test the model's capabilities on basic math tasks or short summarization.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
MODEL = "CNWPlayer/Vega-1.6-128M-Instruct"
tok = AutoTokenizer.from_pretrained(MODEL)
model = AutoModelForCausalLM.from_pretrained(MODEL, torch_dtype=torch.bfloat16, device_map="cuda")
messages = [
{"role": "system", "content": "You are a calculator."},
{"role": "user", "content": "What is 2+2 equal to?"}
]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True).to("cuda")
out = model.generate(**inputs, max_new_tokens=256, temperature=0.1, repetition_penalty=1.05, do_sample=True)
print(f"Assistant: {tok.decode(out[0][inputs['input_ids'].shape[-1]:], skip_special_tokens=True)}")
Read more
DetailsParameters: 128,410,368
Layers: 16 | Hidden size: 768
Context: 2,048 tokens
Dataset: HuggingFaceTB/smol-smoltalk (327,800,271 tokens)










Comments