Views
No views yet
AWQModifier + W4A16_ASYM. Calibrated on 256 code-instruction samples at 2048 tokens, with the model's own chat template applied.lm_head is left at full precision. Weights are 4-bit; activations stay 16-bit.config.json — you do not need to pass --quantization awq. The older AutoAWQ format is not interchangeable with this one; if a loader expects quant_config.json, it wants the legacy format and will not read this repo.vllm serve kd13/Coder-o1-mini-reasoning-AWQ --max-model-len 81921from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("kd13/Coder-o1-mini-reasoning-AWQ", device_map="auto")
4tok = AutoTokenizer.from_pretrained("kd13/Coder-o1-mini-reasoning-AWQ")
5
6msgs = [
7 {"role": "system", "content": "You are a helpful Python coding assistant."},
8 {"role": "user", "content": "Explain list comprehensions with an example."},
9]
10prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
11ids = tok(prompt, return_tensors="pt").to(model.device)
12print(tok.decode(model.generate(**ids, max_new_tokens=300)[0]))pip install compressed-tensors.<|im_start|>system
{system}<|im_end|>
<|im_start|>user
{message}<|im_end|>
<|im_start|>assistant<tools> tags, and the model replies with a JSON object inside <tool_call> tags. Tool results are returned wrapped in <tool_response>. vLLM exposes this through its OpenAI-compatible tools parameter.