Views
No views yet
| Model | GSM8K (flexible) | GSM8K (strict) | ARC-acc | ARC-norm | Train |
|---|---|---|---|---|---|
| Qwen2.5-1.5B-Instruct (baseline) | 0.5148 | 0.3169 | 0.4334 | 0.4676 | — |
| This model (LIMA SFT) | 0.5231 | 0.5277 | 0.4462 | 0.4710 | 8.6 min |
| Qwen2.5-1.5B-SFT-ArchonLatentGeo (comparison) | 0.4162 | 0.4693 | 0.4147 | 0.4514 | 45.2 min |
1LORA_RANK = 16
2LORA_ALPHA = 32
3LORA_DROPOUT = 0.05
4LORA_TARGETS = ["q_proj","k_proj","v_proj","o_proj","gate_proj","up_proj","down_proj"]
5LR = 2e-4
6EPOCHS = 3
7BATCH_SIZE = 1
8GRAD_ACCUM = 16 # effective batch = 16
9MAX_SEQ_LEN = 20481from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4model_id = "DuoNeural/Qwen2.5-1.5B-SFT-LIMA"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
7
8messages = [{"role": "user", "content": "What is 15% of 340?"}]
9text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
10inputs = tokenizer(text, return_tensors="pt").to(model.device)
11outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.3, do_sample=True)
12print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))| Platform | Link |
|---|---|
| HuggingFace | huggingface.co/DuoNeural |
| Website | duoneural.com |
| GitHub | github.com/DuoNeural |
| X / Twitter | @DuoNeural |
| duoneural@proton.me | |
| Newsletter | duoneural.beehiiv.com |
| Support | buymeacoffee.com/duoneural |