Views
No views yet
| Base | Qwen/Qwen3.5-4B |
| LoRA rank / α | 32 / 64 |
| Targets | q/k/v/o_proj + MLP (gate/up/down_proj) |
| Cutoff | 12,288 tokens |
| Eval loss | 1.756 (best checkpoint, 3 epochs; 27B reference: 1.387) |
Note: a first 4B attempt on Qwen3-4B-Instruct-2507 was scrapped — the instruct chat template conflicts with the corpus's<think>blocks and produced<tool_call>scaffolding garbage. Qwen3.5-4B (same family as the Qwen3.5-9B used for Lin Lu v0.3) trains cleanly.
pip install "transformers>=5.5" peft torch accelerate bitsandbytesload_in_8bit=True
(~4.5 GB + KV cache). trust_remote_code=True required.1import torch, transformers
2from peft import PeftModel
3from transformers import AutoTokenizer, AutoConfig
4
5BASE = "Qwen/Qwen3.5-4B"
6ADAPTER = "div2percent/kurisu-lora-v1.1-qwen3.5-4b"
7
8cfg = AutoConfig.from_pretrained(BASE, trust_remote_code=True)
9cls = getattr(transformers, cfg.architectures[0])
10tok = AutoTokenizer.from_pretrained(BASE, trust_remote_code=True)
11model = cls.from_pretrained(BASE, dtype=torch.bfloat16, device_map="auto",
12 trust_remote_code=True)
13model = PeftModel.from_pretrained(model, ADAPTER)
14model.eval()[HH:MM] bubbles, [[sticker:ref]]) is the
same as the 27B card — see its README for a full generation example.