Image-Text-to-Text
Safetensors
qwen3_5
auto-round
gptq
compressed-tensors
clef
cloudflare
systemone
qwen3.8
post-train
image-text-to-typed-output
multimodal
structured-output
classification
custom-code
conversational
4-bit precision
Instructions to use OpenTensorLab/clef-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/clef-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/clef-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/clef-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/clef-W4A16-AutoRound-GPTQ
- SGLang
How to use OpenTensorLab/clef-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/clef-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/clef-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/clef-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/clef-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/clef-W4A16-AutoRound-GPTQ with Docker Model Runner:
docker model run hf.co/OpenTensorLab/clef-W4A16-AutoRound-GPTQ
Vishva R commited on
Update README.md
Browse files39 unmodified lines40414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816939 unmodified lines
## Quickstart
## vLLM Serving (`/v1/systemone`)
Requires `vllm > v0.31.0` or `vllm/vllm-openai:nightly`.
### 1. Launch Server
```bashdocker run --gpus all -p 8000:8000 --ipc=host vllm/vllm-openai:nightly \ vllm serve Vishva007/clef-W4A16-AutoRound \ --port 8000 --host 0.0.0.0 \ --max-model-len 32k --max-num-batched-tokens 32k --max-num-seqs 128 \ --kv-cache-dtype fp8 --gpu-memory-utilization 0.90 \ --enable-prefix-caching --enable-chunked-prefill \ --trust-remote-code --dtype bfloat16
```
### 2. Client Example (`typesafe_sdk`)
```bashpip install typesafe_sdk
```
```pythonfrom typesafe_sdk import Choice, TypeSafeClient
with TypeSafeClient( api_key="EMPTY", base_url="http://localhost:8000/v1", # or your proxy URL model="Vishva007/clef-W4A16-AutoRound-GPTQ",) as client: res = client.system_one( state="Checkout throwing 504 Gateway Timeouts. Database latency at 4,000ms.", questions={ "severity": Choice( instructions="Assess severity", criteria={"sev1": "Total outage", "sev2": "Degraded", "sev3": "Minor"}, ), "team": Choice( instructions="Route to team", criteria={"sre": "Infrastructure", "billing": "Payments"}, ), }, )
for k, v in res.choices.items(): print(f"{k}: {v.choice} ({v.confidence:.1%})")
```
### Installation
```bashpip install torch transformers huggingface_hub pillow
```
### Usage (`systemone` API)
```pythonimport sysfrom huggingface_hub import snapshot_download
# Download repo and load custom joint schema modelrepo_id = "Vishva007/clef-W4A16-AutoRound-GPTQ" # or auto-gptq / llm-compressor variantmodel_path = snapshot_download(repo_id)sys.path.insert(0, model_path)
from joint_schema_model import load_release_model, systemone
model, processor = load_release_model(model_path, device="cuda")
# 1. Text / JSON Decision Exampleresponse = systemone(model, processor, { "model": "clef", "state": "Prod database latency spiked to 4,000ms. Checkout failing with 504 Gateway Timeouts.", "questions": { "severity": { "type": "choice", "instructions": "Determine incident severity level", "criteria": { "SEV_1": "Critical revenue outage", "SEV_2": "Major feature degradation", "SEV_3": "Minor issue" } }, "urgency": { "type": "score", "instructions": "Urgency rating", "criteria": ["Low", "Medium", "Immediate page"] }, "rollback": { "type": "noul", "instructions": "Should a rollback be initiated?" } }})
print(response["answers"])
```
### Multimodal (Image) Evaluation
```pythonfrom PIL import Image
response = systemone(model, processor, { "model": "clef", "state": "Review the uploaded invoice receipt.", "images": [Image.open("receipt.png")], "questions": { "legible": {"type": "noul", "instructions": "Is the receipt text clear and legible?"}, "amount_exceeds_1000": {"type": "noul", "instructions": "Is total > $1000 USD?"} }})
print(response["answers"])
```
### Installation
```bashREADME.md+124