Views
No views yet
| Field | Value |
|---|---|
| Architecture | LlamaForCausalLM |
| Parameters | ~503M |
| Hidden size | 1,280 |
| Intermediate size | 4,864 |
| Layers | 20 |
| Attention heads | 10 |
| KV heads (GQA) | 2 |
| Head dim | 128 |
| Vocab size | 40,008 |
| Context window | 32,768 tokens |
| Positional encoding | RoPE (θ=10,000, 4× linear scaling) |
| Normalization | RMSNorm (ε=1e-6) |
| Activation | SiLU |
| Dtype | bfloat16 |
| Tied embeddings | Yes |
<|system|>, <|user|>, <|assistant|>, <|endofturn|>, <tool_call>, </tool_call>, <tool_response>, </tool_response>vivekmarakana/shunya-0.5b-baseHuggingFaceTB/smoltalk2NousResearch/hermes-function-calling-v1lmsys/lmsys-chat-1margilla/ultrafeedback-multi-binarized-preferences-cleanedmlabonne/orpo-dpo-mix-40k1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("vivekmarakana/shunya-0.5b-instruct")
5model = AutoModelForCausalLM.from_pretrained(
6 "vivekmarakana/shunya-0.5b-instruct",
7 torch_dtype=torch.bfloat16,
8 device_map="auto",
9)
10
11messages = [{"role": "user", "content": "Explain the difference between supervised and unsupervised learning."}]
12inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
13outputs = model.generate(inputs, max_new_tokens=256, do_sample=True, temperature=0.7)
14print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))<tool_call> / <tool_response> tags. Pass a list of tools to apply_chat_template:1tools = [
2 {
3 "name": "get_weather",
4 "description": "Get current weather for a location.",
5 "parameters": {
6 "type": "object",
7 "properties": {"location": {"type": "string"}},
8 "required": ["location"]
9 }
10 }
11]
12
13messages = [{"role": "user", "content": "What's the weather in Mumbai?"}]
14inputs = tokenizer.apply_chat_template(
15 messages, tools=tools, add_generation_prompt=True, return_tensors="pt"
16).to(model.device)
17outputs = model.generate(inputs, max_new_tokens=128)
18print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=False))lm-evaluation-harness. Results use normalized accuracy (acc_norm) for completion tasks (ARC, PIQA, HellaSwag) and acc for classification tasks.| Benchmark | Shots | Metric | Shunya-0.5B-Instruct | Qwen3-0.6B-Instruct | Gemma3-1B-IT |
|---|---|---|---|---|---|
| ARC-Challenge | 25 | acc_norm | 25.17 | 30.12 | 38.23 |
| ARC-Easy | 0 | acc_norm | 40.49 | 34.68 | 47.60 |
| HellaSwag | 10 | acc_norm | 34.94 | 38.42 | 41.22 |
| MMLU | 5 | acc | 24.38 | 22.95 | 29.08 |
| WinoGrande | 0 | acc | 52.49 | 53.51 | 55.25 |
| BoolQ | 0 | acc | 48.04 | 37.83 | 74.19 |
| PIQA | 0 | acc_norm | 64.85 | 64.96 | 68.88 |
| Social IQA | 0 | acc | 37.46 | 37.21 | 42.43 |
| GPQA Main | 5 | acc | 24.33 | 21.43 | 25.45 |
| GPQA Diamond | 5 | acc | 28.79 | 20.20 | 26.77 |
| AGIEval EN | 5 | acc | 16.80 | 17.68 | 18.43 |