Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("spartan8806/ATLES-1.5B", torch_dtype="auto", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("spartan8806/ATLES-1.5B")
5
6messages = [{"role": "user", "content": "Write a Python function to reverse a linked list."}]
7text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
8inputs = tokenizer(text, return_tensors="pt").to(model.device)
9
10output = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)
11print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))| Parameter | Value |
|---|---|
| Base architecture | Qwen2.5-1.5B (28 layers, 1536 hidden, 12 heads) |
| Merge method | SLERP with layer-wise gradients |
| Fine-tune epochs | 3 |
| Learning rate | 2e-5 with cosine decay |
| Final loss | 1.54 |
| Training data | ~3,500 examples (coding + conversation) |
| Hardware | NVIDIA RTX 3060 12GB |
| Training time | ~53 minutes |
| Precision | bfloat16 |
| Model | Score | Speed |
|---|---|---|
| ATLES-1.5B (this model) | Strong | 52 tok/s |
| Qwen2.5-Coder-1.5B-Instruct (base) | Baseline | 50 tok/s |