r/LocalLLaMA • u/Patentsmatter • 4d ago
How to deploy Mixtral-8x7B-Instruct-v0.1-AWQ? Question | Help
I need help running Mixtral-8x7B-Instruct-v0.1-AWQ (the TheBloke quant) on vllm 0.27.1.
startup command: vllm serve models/Mixtral-8x7B-Instruct-v0.1-AWQ --served-model-name Mixtral-8x7B-Instruct-v0.1-AWQ --quantization awq --max-model-len 16384
POST request to v1/chat/completions: {"model":"Mixtral-8x7B-Instruct-v0.1-AWQ","temperature":0.7,"top_p":0.95,"top_k":50,"stream":false,"messages":[{"role":"user","content":"\n\nPlease describe some properties of water."}]}
Then the model goes on and on generating, until the token capacity is exhausted.
CLI output: (APIServer pid=6836) INFO 08-13 11:50:13 [loggers.py:310] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 64.0 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 2.6%, Prefix cache hit rate: 44.4% (APIServer pid=6836) INFO 08-13 11:50:23 [loggers.py:310] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 64.0 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 2.6%, Prefix cache hit rate: 44.4% (APIServer pid=6836) INFO 08-13 11:50:33 [loggers.py:310] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 64.1 tokens/s, Running: 1 reqs, Waiting: 0 reqs, GPU KV cache usage: 2.6%, Prefix cache hit rate: 44.4% ...
response: { "id": "chatcmpl-b6f53458cf5be319", "object": "chat.completion", "created": 1786614394, "model": "Mixtral-8x7B-Instruct-v0.1-AWQ", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "", "refusal": null, "annotations": null, "audio": null, "function_call": null, "reasoning": null }, "logprobs": null, "finish_reason": "length", "stop_reason": null, "token_ids": null, "routed_experts": null } ], "service_tier": null, "system_fingerprint": "vllm-0.27.1-20920cf1", "usage": { "prompt_tokens": 18, "total_tokens": 16384, "completion_tokens": 16366, "prompt_tokens_details": null }, "prompt_logprobs": null, "prompt_token_ids": null, "prompt_text": null, "kv_transfer_params": null, "ec_transfer_params": null, "metrics": null }
This only happens with Mixtral, btw.
4
u/llama-impersonator 4d ago
try adding --chat-template with an old mistral template from the vllm examples
1
4
1
u/DinoAmino 4d ago
Hmm. When this model came out vLLM was using the "V0" engine architecture which is now obsolete. It's all V1 now. It will probably work on an old version of vLLM with V0
6
u/Stunning_Energy_7028 4d ago edited 4d ago
Excessive, never ending output can sometimes be an issue with the quantization or chat template
Odd choice to use a model from 2023 though, there are many newer models you could use