Image-Text-to-Text
Safetensors
qwen3_5
quantization
auto-round
gptq
llm-compressor
compressed-tensors
4bit
vlm
document-understanding
structured-extraction
ocr
conversational
4-bit precision
Instructions to use OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ", "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/OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ
- SGLang
How to use OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ 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 "OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ" \ --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": "OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ", "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 "OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ" \ --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": "OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ", "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 OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ with Docker Model Runner:
docker model run hf.co/OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ
|
Download README.md from OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ: direct link, hf CLI and curl.
- Browser
- Download file 7.2 kB
-
https://huggingface.co/OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ/resolve/main/README.md
- Command line
-
hf download hf://OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ/README.md
-
curl -L -o README.md https://huggingface.co/OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ/resolve/main/README.md
7.2 kB
metadata
license: apache-2.0
base_model: numind/NuExtract3
tags:
- quantization
- auto-round
- gptq
- llm-compressor
- compressed-tensors
- 4bit
- vlm
- document-understanding
- structured-extraction
- ocr
pipeline_tag: image-text-to-text
NuExtract3 (W4A16 Quantized via AutoRound)
W4A16 (4-bit integer weights, 16-bit activations) quantized builds of numind/NuExtract3 created using Intel's AutoRound algorithm.
⚡ Quantization Details
- Algorithm: Intel AutoRound (v0.14.2)
- Precision / Scheme: W4A16 (Group Size: 32, Symmetric:
True) - Calibration: 512 samples, sequence length 4096, 1000 tuning iterations
- Vision Tower (
quant_nontext_module): Kept in BF16 to preserve visual document parsing and OCR accuracy - Special Modules: Multi-Token Prediction (
mtp,mtp.fc) kept in native bfloat16
📦 Available Repositories
- AutoRound:
OpenTensorLab/NuExtract3-W4A16-AutoRound - AutoGPTQ:
OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ - LLM-Compressor (vLLM native):
OpenTensorLab/NuExtract3-W4A16-AutoRound-LLM-Compressor
🚀 vLLM Serving & Inference
1. Launch Server
vllm serve OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ \
--trust-remote-code \
--limit-mm-per-prompt '{"image": 10, "video": 0}' \
--chat-template-content-format openai \
--generation-config vllm \
--max-model-len 16384 \
--dtype bfloat16 \
--gpu-memory-utilization 0.90
2. Structured Extraction & OCR (Python Client)
import base64
import json
from openai import OpenAI
client = OpenAI(api_key="EMPTY", base_url="http://localhost:8000/v1")
def encode_image(image_path):
with open(image_path, "rb") as f:
return base64.b64encode(f.read()).decode("utf-8")
data_url = f"data:image/png;base64,{encode_image('document.png')}"
# Structured JSON Extraction
template = {
"invoice_number": "verbatim-string",
"date": "date-time",
"total": "number",
"line_items": [{"description": "verbatim-string", "amount": "number"}]
}
response = client.chat.completions.create(
model="OpenTensorLab/NuExtract3-W4A16-AutoRound-GPTQ",
temperature=0.2,
messages=[
{"role": "user", "content": [{"type": "image_url", "image_url": {"url": data_url}}]}
],
extra_body={
"chat_template_kwargs": {
"enable_thinking": False
}
}
)
print(response.choices[0].message.content)
For Markdown OCR: Replace
templateinchat_template_kwargswith"mode": "markdown".
📊 VRAM Benefits
- Base Model (BF16): ~9–11 GB VRAM
- Quantized (W4A16 G32): ~2.8–3.5 GB VRAM (runs comfortably on 4GB/6GB consumer GPUs)
🚀 Deploy on RunPod
One-click launch environments pre-configured with PyTorch, CUDA, and dependencies for fine-tuning or quantization.
🎁 Need GPU compute? Sign up via RunPod and get $5–$500 in free credits when you add your first $10.
PyTorch 2.15
PyTorch 2.14
PyTorch 2.13
PyTorch 2.12
📚 Acknowledgments
- Base Model: NuMind
- Quantization Engine: Intel AutoRound