Instructions to use MINTLABJHUANU/Qwen3.5-9B-NoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MINTLABJHUANU/Qwen3.5-9B-NoRA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MINTLABJHUANU/Qwen3.5-9B-NoRA") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MINTLABJHUANU/Qwen3.5-9B-NoRA") model = AutoModelForMultimodalLM.from_pretrained("MINTLABJHUANU/Qwen3.5-9B-NoRA", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MINTLABJHUANU/Qwen3.5-9B-NoRA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MINTLABJHUANU/Qwen3.5-9B-NoRA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MINTLABJHUANU/Qwen3.5-9B-NoRA", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/MINTLABJHUANU/Qwen3.5-9B-NoRA
- SGLang
How to use MINTLABJHUANU/Qwen3.5-9B-NoRA with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MINTLABJHUANU/Qwen3.5-9B-NoRA" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MINTLABJHUANU/Qwen3.5-9B-NoRA", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MINTLABJHUANU/Qwen3.5-9B-NoRA" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MINTLABJHUANU/Qwen3.5-9B-NoRA", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use MINTLABJHUANU/Qwen3.5-9B-NoRA with Docker Model Runner:
docker model run hf.co/MINTLABJHUANU/Qwen3.5-9B-NoRA
Qwen3.5-9B-NoRA
Qwen3.5-9B fine-tuned on NoRA annotations for grounded normative reasoning from first-person visual scenes. Given pre-action frames, the model describes the visible facts, the reasons they provide, and reasonable next actions, with links from facts to reasons and from reasons to actions.
Training
| Setting | Value |
|---|---|
| Supervision | GPT-5.4 annotations from LLMSilver-1230 |
| Method | Full fine-tuning with MS-SWIFT |
| Epochs / learning rate | 3 / 1e-5 |
| Batch size / gradient accumulation | 1 / 16 |
| Precision / sequence limit | BF16 / 4,096 tokens |
| Image-token limit | 1,024 |
Code and reported results: https://github.com/Sichao-Li/NoRA-learning
Usage
The model loads in the same way as the base model. Use the prompt below, which is the prompt the model was trained with.
import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor
name = "Lester1996/Qwen3.5-9B-NoRA"
processor = AutoProcessor.from_pretrained(name)
model = AutoModelForMultimodalLM.from_pretrained(
name, torch_dtype=torch.bfloat16, device_map="auto")
SYSTEM_PROMPT = (
"Describe a reasonable next-action decision from the camera wearer's "
"perspective. Use only the visible scene. Return one JSON object with "
"clip_id, facts, reasons, and actions. Each fact has fact_id and text. "
"Each reason has reason_id, text, facts (a list of fact IDs), tags, tier "
"(A, B, or C), and justification. Each action has action_id, description, "
"and reasons_to_do (a list of objects with reason_id and justification). "
"Link reasons to the facts that support them and actions to their "
"supporting reasons. Do not invent a final choice or describe future "
"events as observed facts. Return JSON only."
)
USER_PROMPT = (
"Create a NoRA annotation for clip_id `{clip_id}` from these pre-action "
"frames. Describe the visible facts, the reasons they provide, and "
"reasonable next actions."
)
messages = [
{"role": "system", "content": [{"type": "text", "text": SYSTEM_PROMPT}]},
{"role": "user", "content": [
{"type": "image", "url": "frames.jpg"},
{"type": "text", "text": USER_PROMPT.format(clip_id="example")},
]},
]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt", enable_thinking=False,
).to(model.device)
output = model.generate(**inputs, max_new_tokens=2048, do_sample=False)
print(processor.decode(
output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Intended Use and Limitations
The model is released for research on normative reasoning. It is not a safety system and should not be used to make decisions about people.
Citation
@article{li2026nora,
title = {{NoRA}: Evaluating Grounded Reasonableness in Visual
First-person Normative Action Reasoning},
author = {Li, Sichao and Ma, Sai and Kilov, Daniel and
Yanik Guyot, Secil and Li, Zhuang and Lazar, Seth},
journal = {arXiv preprint arXiv:2606.04806},
year = {2026}
}
- Downloads last month
- 23