Image-Text-to-Text
Transformers
Safetensors
qwen2_5_vl
Generated from Trainer
R1-V
trl
sft
conversational
text-generation-inference
Instructions to use Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink") 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("Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink") model = AutoModelForMultimodalLM.from_pretrained("Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink", 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 Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink", "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/Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink
- SGLang
How to use Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink 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 "Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink" \ --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": "Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink", "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 "Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink" \ --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": "Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink", "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 Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink with Docker Model Runner:
docker model run hf.co/Leeyuyu/Qwen2.5-SFT-GRPO-fundo-nothink
End of training
Browse files- README.md +3 -1
- config.json +1 -1
README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
model_name: Qwen2.5-SFT-GRPO-fundo-nothink
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
|
|
|
| 6 |
- trl
|
| 7 |
- sft
|
| 8 |
licence: license
|
|
@@ -10,7 +12,7 @@ licence: license
|
|
| 10 |
|
| 11 |
# Model Card for Qwen2.5-SFT-GRPO-fundo-nothink
|
| 12 |
|
| 13 |
-
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 14 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 15 |
|
| 16 |
## Quick start
|
|
|
|
| 1 |
---
|
| 2 |
+
datasets: Leeyuyu/fundo_600
|
| 3 |
library_name: transformers
|
| 4 |
model_name: Qwen2.5-SFT-GRPO-fundo-nothink
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
+
- R1-V
|
| 8 |
- trl
|
| 9 |
- sft
|
| 10 |
licence: license
|
|
|
|
| 12 |
|
| 13 |
# Model Card for Qwen2.5-SFT-GRPO-fundo-nothink
|
| 14 |
|
| 15 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None) on the [Leeyuyu/fundo_600](https://huggingface.co/datasets/Leeyuyu/fundo_600) dataset.
|
| 16 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 17 |
|
| 18 |
## Quick start
|
config.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
"tie_word_embeddings": true,
|
| 33 |
"torch_dtype": "bfloat16",
|
| 34 |
"transformers_version": "4.50.0.dev0",
|
| 35 |
-
"use_cache":
|
| 36 |
"use_sliding_window": false,
|
| 37 |
"video_token_id": 151656,
|
| 38 |
"vision_config": {
|
|
|
|
| 32 |
"tie_word_embeddings": true,
|
| 33 |
"torch_dtype": "bfloat16",
|
| 34 |
"transformers_version": "4.50.0.dev0",
|
| 35 |
+
"use_cache": true,
|
| 36 |
"use_sliding_window": false,
|
| 37 |
"video_token_id": 151656,
|
| 38 |
"vision_config": {
|