Views
No views yet
unsloth/Qwen3-VL-8B-Instruct-unsloth-bnb-4bit
Training Method: GRPO (Group Relative Policy Optimization)
Task: Grid-based component localization with tool use1from transformers import AutoModelForCausalLM, AutoProcessor
2import torch
3
4# Load model
5model = AutoModelForCausalLM.from_pretrained(
6 "qwen3_vl_8b_grpo_agent",
7 device_map="auto",
8 torch_dtype=torch.float16,
9 trust_remote_code=True
10)
11
12processor = AutoProcessor.from_pretrained("qwen3_vl_8b_grpo_agent", trust_remote_code=True)
13
14# Prepare inputs
15messages = [
16 {
17 "role": "user",
18 "content": [
19 {"type": "image", "image": "path/to/sld_diagram.png"},
20 {"type": "text", "text": "Locate the component TSS in this diagram"}
21 ]
22 }
23]
24
25text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
26inputs = processor(text=text, images=image, return_tensors="pt").to(model.device)
27
28# Generate
29outputs = model.generate(**inputs, max_new_tokens=512)
30result = processor.decode(outputs[0], skip_special_tokens=True)
31print(result)1@misc{qwen3_vl_grpo_sld,
2 title = {qwen3_vl_8b_grpo_agent},
3 author = {SLD Training Team},
4 year = {2024},
5 note = {GRPO-trained Qwen3-VL-8B for SLD component detection}
6}