Views
No views yet
task=="crop") using Unsloth on unsloth/Qwen3.5-4B.--chat-template none)| Setting | Value |
|---|---|
| Train examples | 2,598 crop samples |
| Epochs | 2 |
| Batch size | 4 × 4 grad accum = 16 effective |
| Learning rate | 2e-4 (cosine) |
| Max length | 2048 |
| Precision | bf16 + 4-bit base load |
| Trainable params | 38.8M / 4.58B (0.85%) |
| Final eval loss | ~0.0032 |
1from unsloth import FastVisionModel
2
3model, processor = FastVisionModel.from_pretrained(
4 "akshayballal/drawing-crop-reader-qwen3.5-4b-lora",
5 load_in_4bit=True,
6)
7model = FastVisionModel.for_inference(model)
8
9messages = [{"role": "user", "content": [
10 {"type": "image"},
11 {"type": "text", "text": "<crop-reader prompt>"},
12]}]
13input_text = processor.apply_chat_template(
14 messages, add_generation_prompt=True, enable_thinking=False,
15)
16inputs = processor(image, input_text, add_special_tokens=False, return_tensors="pt").to("cuda")
17out = model.generate(**inputs, max_new_tokens=512, do_sample=False)adapter_model.safetensors — LoRA weights (~148 MB)adapter_config.json — PEFT configprocessor_config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja — processor/tokenizer state from training