Instructions to use leobo09263013/qwen25 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leobo09263013/qwen25 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="leobo09263013/qwen25") 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("leobo09263013/qwen25") model = AutoModelForMultimodalLM.from_pretrained("leobo09263013/qwen25", 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 leobo09263013/qwen25 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "leobo09263013/qwen25" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leobo09263013/qwen25", "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/leobo09263013/qwen25
- SGLang
How to use leobo09263013/qwen25 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 "leobo09263013/qwen25" \ --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": "leobo09263013/qwen25", "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 "leobo09263013/qwen25" \ --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": "leobo09263013/qwen25", "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 leobo09263013/qwen25 with Docker Model Runner:
docker model run hf.co/leobo09263013/qwen25
Qwen2.5-VL-7B β AURA CE
Final full-finetuning model from Qwen/Qwen2.5-VL-7B-Instruct, trained for one epoch with the AURA answer-selection and weighted cross-entropy objective. The language model was trained; the vision tower and multimodal projector were frozen.
This repository contains the final model weights, tokenizer and processors at step 2729, suitable for Transformers inference. The added <|silent|> token has ID 151665 and is an ordinary added token: it remains visible when decoding with skip_special_tokens=True. Existing reserved vocabulary rows were used; the base weights were not resized when registering the token.
Training
- Base revision:
6e6556e8ce728c7b3e438d75ebf04ec93403dc19 - 174,618 retained samples from the ten-source AURA training mixture; complete examples longer than 15,000 tokens were excluded.
- Full language-model SFT; BF16, FlashAttention 2 and DeepSpeed ZeRO-3.
- 32 GPUs; per-device batch 1, gradient accumulation 2, global batch 64.
- One epoch, 2,729 optimizer steps; learning rate 1e-5, cosine schedule, warmup ratio 0.1, seed 42.
- Video sampling: 1 FPS, maximum 30 frames per video; image/video pixel budget 301,056.
qwen2_vltemplate with an empty default system message; source-provided system messages were preserved.- For samples containing silent responses, AURA retains silent answer spans and the final non-silent answer span. Retained silent tokens receive weight 1 / their count in the micro-batch. Samples without silent tokens use ordinary CE. No focal loss was used.
Training finished on 2026-11-08. Final-step training loss: 0.5704. Mean of the final 100 steps: 0.581653. Full-run mean training loss: 0.634191. These are training metrics, not held-out evaluation scores; final evaluation has not been run. See training_summary.json and training_loss.png.
Loading
Tested with Transformers 4.57.1 and PyTorch 2.6.0. The standard Qwen2.5-VL architecture is used; remote model code is not required.
from transformers import AutoModelForImageTextToText, AutoProcessor
repo = "leobo09263013/qwen25"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForImageTextToText.from_pretrained(
repo, torch_dtype="auto", device_map="auto"
)
Use the Qwen2.5-VL processor and chat template to prepare image/video inputs. <|silent|> is an intentional assistant response token and can be handled explicitly by downstream applications.
aura_loss.py records the custom training objective; standard Transformers inference does not require it. To continue training with the same objective, explicitly attach the AURA CE hook rather than assuming the metadata in config.json activates a custom loss. The included hook handles the Transformers 4.57 Qwen2.5 composite-config type forwarding behavior on checkpoint reload.
Limitations
Performance and silent-response behavior require downstream evaluation. This model inherits the capabilities and limitations of Qwen2.5-VL-7B-Instruct. Training optimizer states and intermediate checkpoints are not included in this inference model repository.
- Downloads last month
- 38
Model tree for leobo09263013/qwen25
Base model
Qwen/Qwen2.5-VL-7B-Instruct