Views
No views yet
| Parameter | Original | Tiny |
|---|---|---|
| num_hidden_layers | 16 | 4 |
| hidden_size | 2048 | 2048 |
| intermediate_size | 8192 | 8192 |
| num_attention_heads | 32 | 32 |
| num_key_value_heads | 8 | 8 |
model.safetensors file containing all weights. The checkpoint structure is identical to the original model, with the standard Llama architecture tensors:model.embed_tokens.weightmodel.layers.*.self_attn.{q,k,v,o}_proj.weightmodel.layers.*.mlp.{gate,up,down}_proj.weightmodel.layers.*.{input,post_attention}_layernorm.weightmodel.norm.weight1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("inference-optimization/Llama-3.2-0.5B-Instruct", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("inference-optimization/Llama-3.2-0.5B-Instruct")
5
6input_ids = tokenizer("According to all known laws", return_tensors="pt").input_ids.to(model.device)
7output = model.generate(input_ids, max_new_tokens=20)
8print(tokenizer.decode(output[0]))Success: 1.0247299671173096 <= 10.0
==================================================
Generating sample text:
According to all known laws of aviation, there is no way a bee should be able to fly
==================================================create-tiny-model claude skill:num_hidden_layers from 16 to 4