Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

caiovicentino1
/
Qwen3.5-9B-HLWQ-Q5

Text Generation
Transformers
Safetensors
qwen3_5
image-text-to-text
hlwq
quantized
compressed-tensors
int4
marlin
vllm
conversational
Model card Files Files and versions
xet
Community

Instructions to use caiovicentino1/Qwen3.5-9B-HLWQ-Q5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use caiovicentino1/Qwen3.5-9B-HLWQ-Q5 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="caiovicentino1/Qwen3.5-9B-HLWQ-Q5")
    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)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("caiovicentino1/Qwen3.5-9B-HLWQ-Q5")
    model = AutoModelForMultimodalLM.from_pretrained("caiovicentino1/Qwen3.5-9B-HLWQ-Q5", 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=40)
    print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use caiovicentino1/Qwen3.5-9B-HLWQ-Q5 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "caiovicentino1/Qwen3.5-9B-HLWQ-Q5"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "caiovicentino1/Qwen3.5-9B-HLWQ-Q5",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/caiovicentino1/Qwen3.5-9B-HLWQ-Q5
  • SGLang

    How to use caiovicentino1/Qwen3.5-9B-HLWQ-Q5 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 "caiovicentino1/Qwen3.5-9B-HLWQ-Q5" \
        --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": "caiovicentino1/Qwen3.5-9B-HLWQ-Q5",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "caiovicentino1/Qwen3.5-9B-HLWQ-Q5" \
            --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": "caiovicentino1/Qwen3.5-9B-HLWQ-Q5",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use caiovicentino1/Qwen3.5-9B-HLWQ-Q5 with Docker Model Runner:

    docker model run hf.co/caiovicentino1/Qwen3.5-9B-HLWQ-Q5
Qwen3.5-9B-HLWQ-Q5
7.67 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 26 commits
caiovicentino1's picture
caiovicentino1
Remove legacy polar_config.json
35b345a verified 4 months ago
  • .gitattributes
    1.57 kB
    PolarQuant Q5 + torchao: 43.1 tok/s, PPL 6.5612 4 months ago
  • README.md
    3.85 kB
    HLWQ rebrand: title, tags, notice, self-links 4 months ago
  • ablation.png
    55.5 kB
    Add ablation.png 4 months ago
  • chat_template.jinja
    7.76 kB
    PolarQuant Q5 + torchao: 43.1 tok/s, PPL 6.5612 4 months ago
  • config.json
    3.41 kB
    fix: use base model config for vLLM --language-model-only compatibility 4 months ago
  • hlwq_config.json
    52.8 kB
    Add hlwq_config.json (rename from polar_config.json) 4 months ago
  • model.safetensors
    7.65 GB
    xet
    fix: unpack lm_head/embed_tokens/bad-dim layers to BF16 (Marlin compat) 4 months ago
  • pipeline.png
    42.7 kB
    Add pipeline.png 4 months ago
  • ppl_comparison.png
    58.3 kB
    Add ppl_comparison.png 4 months ago
  • speed_vs_vram.png
    50.9 kB
    Add speed_vs_vram.png 4 months ago
  • tokenizer.json
    20 MB
    xet
    PolarQuant Q5 + torchao: 43.1 tok/s, PPL 6.5612 4 months ago
  • tokenizer_config.json
    1.1 kB
    fix: rename weight keys for vLLM Qwen3.5 compatibility (model.X -> model.language_model.X), fix quant_method and tokenizer_class 4 months ago
  • version_evolution.png
    65.6 kB
    Add version_evolution.png 4 months ago