MetaReason-RL / README.md
pH202411's picture
Add files using upload-large-folder tool
f1ed270 verified
|
Raw History Blame Contribute Delete
1.35 kB
---
library_name: transformers
base_model: Qwen/Qwen3-VL-8B-Instruct
pipeline_tag: image-text-to-text
language:
- en
tags:
- qwen3-vl
- geometry
- multimodal
- reinforcement-learning
- grpo
---
# MetaReason-RL
MetaReason-RL is the geometry-reasoning checkpoint from MetaReason. It uses the Qwen3-VL architecture and contains four BF16 `safetensors` shards.
## Load and run
```bash
pip install "transformers>=4.57.1" accelerate safetensors pillow
```
```python
import torch
from transformers import AutoProcessor, Qwen3VLForConditionalGeneration
model_id = "pH202411/MetaReason-RL"
processor = AutoProcessor.from_pretrained(model_id)
model = Qwen3VLForConditionalGeneration.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
messages = [{
"role": "user",
"content": [
{"type": "image", "image": "geometry_problem.png"},
{"type": "text", "text": "Solve this geometry problem and give the final answer."},
],
}]
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.inference_mode():
output = model.generate(**inputs, max_new_tokens=4096)
output = output[:, inputs.input_ids.shape[1]:]
print(processor.batch_decode(output, skip_special_tokens=True)[0])
```