Image-Text-to-Text
Transformers
Safetensors
qwen3_5
qwen
nvfp4
llm-compressor
vllm
conversational
8-bit precision
compressed-tensors
Instructions to use ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4") 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("ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4", 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 ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4", "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/ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4
- SGLang
How to use ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4 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 "ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4" \ --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": "ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4", "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 "ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4" \ --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": "ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4", "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 ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4 with Docker Model Runner:
docker model run hf.co/ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4
Qwen3.8-27B-RFT-v1-NVFP4
NVFP4 quantization (4-bit floating point weights and activations) of Qwen3.8-27B-RFT-v1, for NVIDIA GPUs with native FP4 support. About 20 GB instead of 52 GB.
A model by Horizon Tech d.o.o., Sarajevo, Bosnia and Herzegovina.
Model details
| Developed by | Horizon Tech d.o.o., Sarajevo, Bosnia and Herzegovina |
| Model type | NVFP4 quantization of a 27B-parameter vision-language model |
| Quantized from | Qwen3.8-27B-RFT-v1 (fine-tune of Qwen/Qwen3.8-27B) |
| Format | NVFP4, 4-bit floating-point weights and activations (compressed-tensors nvfp4-pack-quantized) |
| Size | 20 GB (52 GB unquantized); MTP head in model_mtp.safetensors, full precision |
| License | Apache 2.0 |
| Released | November 2026 |
| Author | Hamza Abdagic (ORCID 0009-0002-4078-4922) |
| Contact | hamza.abdagic@horizon-tech.io |
Versions
| Repository | Format | Size | For |
|---|---|---|---|
| Qwen3.8-27B-RFT-v1 | bfloat16 safetensors | 52 GB | Transformers, vLLM, SGLang; further fine-tuning |
| Qwen3.8-27B-RFT-v1-NVFP4 | NVFP4 (4-bit) | 20 GB | vLLM on NVIDIA GPUs with FP4 support |
| Qwen3.8-27B-RFT-v1-mlx-4bit | MLX 4-bit | 14 GB | Apple silicon, text only |
How it was made
- Tool: llm-compressor 0.15.0 with compressed-tensors 0.20.1,
QuantizationModifier(targets="Linear", scheme="NVFP4"), sequential pipeline per decoder layer. - Calibration: 512 conversations from
HuggingFaceH4/ultrachat_200k, up to 2,048 tokens each. - Left in full precision:
lm_head, the vision tower, token embeddings, thein_proj_a/in_proj_bprojections of the linear-attention layers, and the MTP head. - The MTP head (
model_mtp.safetensors) was retrained for RFT v1 by self-distillation and is kept in full precision. Measured on 120 held-out documents, the retrained head gets 3.15 drafted tokens accepted at 3 drafts and 4.06 at 5 drafts; the head copied from the base got 3.02 and 3.63. These are offline numbers, not serving speed.
Status
- The checkpoint loads with Transformers + compressed-tensors and answers correctly in a smoke test.
- It has not been benchmarked against the unquantized model yet. Expect a small accuracy loss, as with any 4-bit format; treat the scores on the parent model card as an upper bound.
Use
Serve with vLLM on a GPU with FP4 support:
vllm serve ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4
Citation
@misc{horizontech2026rftv1nvfp4,
author = {Abdagic, Hamza},
title = {Qwen3.8-27B-RFT-v1-NVFP4},
year = {2026},
publisher = {Hugging Face},
organization = {Horizon Tech d.o.o., Sarajevo},
howpublished = {\url{https://huggingface.co/ghostrider0470/Qwen3.8-27B-RFT-v1-NVFP4}}
}
Acknowledgements
- Built on Qwen/Qwen3.8-27B by the Qwen team at Alibaba Cloud.
License
Apache 2.0, as the base model.
- Downloads last month
- 191