Run this model with HF Jobs
Run Skywork/R1V4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Skywork/R1V4. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/Skywork/R1V4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/Skywork/R1V4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Skywork/R1V4 with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Skywork/R1V4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywork/R1V4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Skywork/R1V4")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Skywork/R1V4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Skywork/R1V4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywork/R1V4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywork/R1V4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Skywork/R1V4
- SGLang
How to use Skywork/R1V4 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 "Skywork/R1V4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywork/R1V4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Skywork/R1V4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywork/R1V4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Skywork/R1V4 with Docker Model Runner:
docker model run hf.co/Skywork/R1V4
Update README.md
Browse files12341 unmodified line67891011123 unmodified lines16171819202122232425262728293031323334353637383940# 📌 Overview**Skywork-R1V4** is a 30B (A3B) multimodal agent that unifies:- Multimodal task planning1 unmodified line- Deep multimodal search (text × image)- Interleaved tool-grounded reasoningUnlike traditional VLMs that treat visual operations and search as disjoint capabilities—or agent systems that rely heavily on costly RL—Skywork-R1V4 is trained **purely via supervised finetuning** on **< 30k high-quality, execution-consistent trajectories**.At inference time, the model exhibits **emergent long-horizon reasoning**, executing **10+ tool calls** across visual operations and web search to solve complex real-world tasks.3 unmodified lines- **Beats Gemini 2.5 Flash on all 11 comparable metrics**# 🚀 Key Features### **“Thinking With Images”**Skywork-R1V4 actively manipulates images:- Multi-stage cropping- Local detail extraction- Region attention- Visual clue refinement### **Interleaved Reasoning**The model alternates between:1. Visual reasoning2. Image operation3. Web search4. Cross-evidence verification---# 🔗 Links- **Model Center**: https://platform.skyworkmodel.ai/#/model-center- **API Documentation (R1V4)**: https://docs.skyworkmodel.ai/r1v4/api-reference/completions.html123456789101112131415161 unmodified line181920212223243 unmodified lines28293031323334353637383940414243444546474849505152535455---pipeline_tag: image-text-to-textlibrary_name: transformerslicense: mit---# Skywork-R1V4<div align="center"><img src="skywork-logo.png" alt="Introduction Image" width="500" height="400"></div>## 1. Model Introduction**Skywork-R1V4** is a 30B (A3B) multimodal agent that unifies:- Multimodal task planning1 unmodified line- Deep multimodal search (text × image)- Interleaved tool-grounded reasoningSkywork-R1V4 is trained **purely via supervised finetuning** on **< 30k high-quality, execution-consistent trajectories**.At inference time, the model exhibits **emergent long-horizon reasoning**, executing **10+ tool calls** across visual operations and web search to solve complex real-world tasks.3 unmodified lines- **Beats Gemini 2.5 Flash on all 11 comparable metrics**## 2. Feature### 🔍 **“Thinking With Images”**Skywork-R1V4 actively manipulates images through: • Multi-stage cropping • Local detail extraction • Region attention • Visual clue refinement### 🔄 **Interleaved Reasoning**The model alternates between: 1. Visual reasoning 2. Image operation 3. Web search 4. Cross-evidence verification---## 3. Links- **Model Center**: https://platform.skyworkmodel.ai/#/model-center- **API Documentation (R1V4)**: https://docs.skyworkmodel.ai/r1v4/api-reference/completions.html
README.md+30-15