~255.7 M · LLaMA · Instruction-tuned · From scratch
Successor to Nano-nano v4.
Same architecture family, ~8.5% larger, trained from scratch on 15 carefully weighted datasets.
📋 Quick Facts
Architecture
LLaMA (decoder-only)
Parameters
~255.7 M
Context length
2 048 tokens
Vocabulary
50,264 tokens
Training loss
5.1763
Eval score
16.7%
Trained on
0.08 B tokens
Hardware
NVIDIA GTX 1080 8 GB (Pascal)
Trained
2026-05-09 22:50
🏗️ Architecture
Standard LLaMA decoder-only transformer. Scaled ~8.5% wider + 1 extra layer vs v4.
Hyperparameter
v4
v4.5
Parameters
~236 M
~255.7 M
hidden_size
896
896
intermediate_size
2 688
2 912
num_hidden_layers
14
15
num_attention_heads
14
14
num_key_value_heads
14
14
head_dim
64
64
vocab_size
50 264
50,264
max_position_embeddings
1 024
2 048
rms_norm_eps
1e-6
1e-6
rope_theta
10 000
10 000
hidden_act
SiLU
SiLU
tie_word_embeddings
False
False
attention_bias
False
False
mlp_bias
False
False
📊 Evaluation
Automatically evaluated after training across 5 capability dimensions.
Category
Hits
Score
Knowledge
0/5
🔴 0%
Reasoning
0/4
🔴 0%
Hallucination
0/4
🔴 0%
Instruction
2/4
🟡 50%
Coherence
1/3
🔴 33%
Overall
—
🔴 17%
Hallucination resistance — whether the model appropriately declines questions
about future events, fictional entities, or impossible premises rather than confabulating.
fromtransformersimportAutoModelForCausalLM,AutoTokenizermodel=AutoModelForCausalLM.from_pretrained("ray0rf1re/Nano-nano_v4.5",torch_dtype="auto",device_map="auto",)tokenizer=AutoTokenizer.from_pretrained("ray0rf1re/Nano-nano_v4.5")defgenerate(prompt:str,max_new_tokens:int=256)->str:text=f"### Instruction:{prompt}### Response:"inputs=tokenizer(text,return_tensors="pt").to(model.device)out=model.generate(**inputs,max_new_tokens=max_new_tokens,do_sample=True,temperature=0.7,top_p=0.9,repetition_penalty=1.1,pad_token_id=tokenizer.eos_token_id,)new_ids=out[0][inputs["input_ids"].shape[-1]:]returntokenizer.decode(new_ids,skip_special_tokens=True).strip()# Examplesprint(generate("Write a Python function to reverse a linked list."))print(generate("What is the capital of France?"))print(generate("Explain gradient descent in simple terms."))
⚠️ Limitations
Context limited to 1 024 tokens — unsuitable for long documents
Trained on 0.08 B tokens — far less than production models
May hallucinate on obscure or out-of-distribution queries
Not RLHF/DPO aligned — outputs may vary in safety and tone
Pascal GPU constraint (GTX 1080): fp32/fp16 only, no bf16