Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
awq
int4
w4a16
compressed-tensors
llm-compressor
conversational
Instructions to use sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ") 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("sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ") model = AutoModelForMultimodalLM.from_pretrained("sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ", 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 sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ", "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/sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ
- SGLang
How to use sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ 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 "sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ" \ --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": "sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ", "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 "sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ" \ --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": "sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ", "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 sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ with Docker Model Runner:
docker model run hf.co/sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: bottlecapai/ThinkingCap-Qwen3.6-27B
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- awq
|
| 8 |
+
- int4
|
| 9 |
+
- w4a16
|
| 10 |
+
- compressed-tensors
|
| 11 |
+
- llm-compressor
|
| 12 |
+
language:
|
| 13 |
+
- en
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# ThinkingCap-Qwen3.6-27B-AWQ
|
| 17 |
+
|
| 18 |
+
AWQ (W4A16) quantization of
|
| 19 |
+
[bottlecapai/ThinkingCap-Qwen3.6-27B](https://huggingface.co/bottlecapai/ThinkingCap-Qwen3.6-27B)
|
| 20 |
+
— a token-efficient **reasoning** finetune of [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) by BottleCap AI (`qwen3_5`: dense hybrid GatedDeltaNet linear-attention + full-attention over 64 text layers in a 3:1 pattern, plus a vision tower and an MTP head; multimodal image-text-to-text). It matches Qwen3.6-27B answer quality while emitting ~50% fewer thinking tokens on average.
|
| 21 |
+
|
| 22 |
+
**Variant**: AWQ **W4A16** — 4-bit symmetric integer weights, group size 128, with activation-aware scaling. Activations stay BF16.
|
| 23 |
+
**Quantized by**: [sahilchachra](https://huggingface.co/sahilchachra)
|
| 24 |
+
**Tooling**: `llm-compressor` (`AWQModifier` + `QuantizationModifier`) -> `compressed-tensors` `pack-quantized`
|
| 25 |
+
|
| 26 |
+
> This is a quantized derivative. Weights, behavior, and license follow the base
|
| 27 |
+
> model — see the
|
| 28 |
+
> [original card](https://huggingface.co/bottlecapai/ThinkingCap-Qwen3.6-27B) for full details, benchmarks, and citation.
|
| 29 |
+
|
| 30 |
+
## What is quantized
|
| 31 |
+
|
| 32 |
+
Quantized to 4-bit:
|
| 33 |
+
|
| 34 |
+
- full-attention `self_attn.{q,k,v,o}_proj`
|
| 35 |
+
- `mlp.{gate,up,down}_proj` (all text layers)
|
| 36 |
+
|
| 37 |
+
Kept in **BF16**: GatedDeltaNet `linear_attn` (mamba) layers, vision tower (`model.visual.*`, 27 blocks), MTP head, token embeddings, lm_head, all norms (incl. q_norm / k_norm).
|
| 38 |
+
|
| 39 |
+
## Calibration
|
| 40 |
+
|
| 41 |
+
AWQ: 128 sequences x 512 tokens of **GSM8K** (`openai/gsm8k`, config `main`, train split) — the model's headline in-domain reasoning dataset — rendered through the model's own chat template with the `<think>…</think>` reasoning format, so calibration matches the model's real (thinking) inference distribution. NVFP4 is data-free (no calibration).
|
| 42 |
+
|
| 43 |
+
## Prompt template & sampling
|
| 44 |
+
|
| 45 |
+
This is a **reasoning ("thinking") model**. Use the Qwen3.6 chat template — ChatML (`<|im_start|>role … <|im_end|>`) with a `<think>…</think>` reasoning trace, thinking enabled by default. Apply it via `tokenizer.apply_chat_template(messages, add_generation_prompt=True)` (or the processor for image inputs); do not hand-format prompts. See the base [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) for full usage details.
|
| 46 |
+
|
| 47 |
+
**Recommended sampling**: `temperature=1.0, top_p=0.95, top_k=20, min_p=0.0` with thinking on (the base model's recommended sampling, per the original card).
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
## Usage (vLLM)
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
from vllm import LLM, SamplingParams
|
| 54 |
+
|
| 55 |
+
# This is a multimodal checkpoint: the vision tower is kept in BF16
|
| 56 |
+
# (only the text / MoE weights are 4-bit). vLLM builds the full model.
|
| 57 |
+
llm = LLM(
|
| 58 |
+
model="sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ",
|
| 59 |
+
trust_remote_code=True,
|
| 60 |
+
)
|
| 61 |
+
out = llm.chat(
|
| 62 |
+
[{"role": "user", "content": "Hello!"}],
|
| 63 |
+
SamplingParams(temperature=0.6, top_p=0.95, max_tokens=512),
|
| 64 |
+
)
|
| 65 |
+
print(out[0].outputs[0].text)
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
Serving via the CLI, pass the flag directly:
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
vllm serve sahilchachra/ThinkingCap-Qwen3.6-27B-AWQ \
|
| 72 |
+
--trust-remote-code \
|
| 73 |
+
--max-model-len 262144 --reasoning-parser qwen3
|
| 74 |
+
```
|