Views
No views yet
| Metric | Value |
|---|---|
| Accuracy | 93.8% |
| Precision | 96.7% |
| Recall | 90.8% |
| F1-Score | 93.6% |
| Parameter | Value |
|---|---|
| Rank (r) | 16 |
| Alpha | 32 |
| Dropout | 0.05 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj, fc1, fc2, qkv, mlp.0, mlp.2 |
1from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
2from peft import PeftModel
3import torch
4
5# Load base model
6base_model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
7 "Qwen/Qwen2.5-VL-7B-Instruct",
8 torch_dtype=torch.bfloat16,
9 device_map="auto"
10)
11
12# Load LoRA adapter
13model = PeftModel.from_pretrained(base_model, "u94fmn391j/SAVANT-anomaly-classifier-lora")
14
15# Load processor
16processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct")