Image-Text-to-Text
Transformers
Safetensors
qwen3_5
vllm
compressed-tensors
gptq
w4a16
clef
decision
classification
tool-use
sysadmin
qwen3.8
24gb
conversational
Instructions to use JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8") 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("JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8") model = AutoModelForMultimodalLM.from_pretrained("JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8", 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 JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8", "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/JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8
- SGLang
How to use JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8 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 "JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8" \ --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": "JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8", "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 "JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8" \ --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": "JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8", "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 JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8 with Docker Model Runner:
docker model run hf.co/JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8
Download patches/qwen3_5-embed-quant.patch from JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8/resolve/main/patches/qwen3_5-embed-quant.patch
- Command line
-
hf download hf://JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8/patches/qwen3_5-embed-quant.patch
-
curl -L -o qwen3_5-embed-quant.patch https://huggingface.co/JRamirez-UAB/clef-GPTQ-W4A16-g64-embed-int8/resolve/main/patches/qwen3_5-embed-quant.patch
1.4 kB
| Route the token embedding table through vLLM's quantized-embedding path | |
| (CompressedTensorsEmbeddingWNA16Int). The kernel exists upstream; the qwen3_5 | |
| model code just never passes quant_config to VocabParallelEmbedding. Two | |
| hunks: the main model, and the MTP draft module (without the second one, | |
| single-user mode crashes on load with "no parameter named | |
| 'embed_tokens.weight_packed' in Qwen3_5MultiTokenPredictor"). | |
| Apply from the installed vllm package directory: | |
| patch -p1 -d venv/lib/python3.12/site-packages/vllm < patches/qwen3_5-embed-quant.patch | |
| Written against vLLM 0.27.1. Reapply after upgrades. | |
| --- a/model_executor/models/qwen3_5.py | |
| +++ b/model_executor/models/qwen3_5.py | |
| self.embed_tokens = VocabParallelEmbedding( | |
| self.vocab_size, | |
| config.hidden_size, | |
| + quant_config=self.quant_config, | |
| + prefix=maybe_prefix(prefix, "embed_tokens"), | |
| ) | |
| def get_layer(prefix: str): | |
| --- a/model_executor/models/qwen3_5_mtp.py | |
| +++ b/model_executor/models/qwen3_5_mtp.py | |
| self.embed_tokens = VocabParallelEmbedding( | |
| self.vocab_size, | |
| config.hidden_size, | |
| + quant_config=vllm_config.quant_config, | |
| + prefix=maybe_prefix(prefix, "embed_tokens"), | |
| ) | |
| # Workaround: mtp.fc is stored as BF16 in NVFP4 checkpoints but is | |