Text Generation
Transformers
Safetensors
Chinese
English
deepseek_v3
vLLM
GPTQ
conversational
custom_code
text-generation-inference
4-bit precision
awq
Instructions to use QuantTrio/DeepSeek-V3.1-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantTrio/DeepSeek-V3.1-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantTrio/DeepSeek-V3.1-AWQ", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("QuantTrio/DeepSeek-V3.1-AWQ", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("QuantTrio/DeepSeek-V3.1-AWQ", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use QuantTrio/DeepSeek-V3.1-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantTrio/DeepSeek-V3.1-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": "QuantTrio/DeepSeek-V3.1-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantTrio/DeepSeek-V3.1-AWQ
- SGLang
How to use QuantTrio/DeepSeek-V3.1-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 "QuantTrio/DeepSeek-V3.1-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": "QuantTrio/DeepSeek-V3.1-AWQ", "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 "QuantTrio/DeepSeek-V3.1-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": "QuantTrio/DeepSeek-V3.1-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use QuantTrio/DeepSeek-V3.1-AWQ with Docker Model Runner:
docker model run hf.co/QuantTrio/DeepSeek-V3.1-AWQ
Commit History
-
Upload model-00120-of-00134.safetensors with huggingface_hub
Verified signature070fbd3 -
Upload model-00118-of-00134.safetensors with huggingface_hub
Verified signaturea668a7b -
Upload model-00114-of-00134.safetensors with huggingface_hub
Verified signatureb6e8206 -
Upload model-00115-of-00134.safetensors with huggingface_hub
Verified signaturec098148 -
Upload model-00117-of-00134.safetensors with huggingface_hub
Verified signatured58e435 -
Upload model-00116-of-00134.safetensors with huggingface_hub
Verified signature5e88991 -
Upload model-00113-of-00134.safetensors with huggingface_hub
Verified signature52a7af3 -
Upload model-00111-of-00134.safetensors with huggingface_hub
Verified signatured3671b8 -
Upload model-00112-of-00134.safetensors with huggingface_hub
Verified signaturee09360d -
Upload model-00110-of-00134.safetensors with huggingface_hub
Verified signaturee612072 -
Upload model-00109-of-00134.safetensors with huggingface_hub
Verified signature4de1c67 -
Upload model-00108-of-00134.safetensors with huggingface_hub
Verified signature1424d9f -
Upload model-00107-of-00134.safetensors with huggingface_hub
Verified signature3b07a07 -
Upload model-00106-of-00134.safetensors with huggingface_hub
Verified signature905a32a -
Upload model-00104-of-00134.safetensors with huggingface_hub
Verified signature0ce029c -
Upload model-00103-of-00134.safetensors with huggingface_hub
Verified signature8f5f0d8 -
Upload model-00105-of-00134.safetensors with huggingface_hub
Verified signature37a9ead -
Upload model-00102-of-00134.safetensors with huggingface_hub
Verified signature6647226 -
Upload model-00101-of-00134.safetensors with huggingface_hub
Verified signatured2a02d5 -
Upload model-00100-of-00134.safetensors with huggingface_hub
Verified signature4fa32d4 -
Upload model-00099-of-00134.safetensors with huggingface_hub
Verified signature908a078 -
Upload model-00098-of-00134.safetensors with huggingface_hub
Verified signature261d6f2 -
Upload model-00097-of-00134.safetensors with huggingface_hub
Verified signature2ae971a -
Upload model-00096-of-00134.safetensors with huggingface_hub
Verified signature3c490eb -
Upload model-00095-of-00134.safetensors with huggingface_hub
Verified signaturee0f58f1 -
Upload model-00094-of-00134.safetensors with huggingface_hub
Verified signature51c60cb -
Upload model-00092-of-00134.safetensors with huggingface_hub
Verified signature9265f8f -
Upload model-00093-of-00134.safetensors with huggingface_hub
Verified signature825fa21 -
Upload model-00091-of-00134.safetensors with huggingface_hub
Verified signature01cffec -
Upload model-00090-of-00134.safetensors with huggingface_hub
Verified signature74eaa08 -
Upload model-00089-of-00134.safetensors with huggingface_hub
Verified signatureb625fd0 -
Upload model-00088-of-00134.safetensors with huggingface_hub
Verified signature5bbcb92 -
Upload model-00087-of-00134.safetensors with huggingface_hub
Verified signature882149e -
Upload model-00086-of-00134.safetensors with huggingface_hub
Verified signature6260b05 -
Upload model-00085-of-00134.safetensors with huggingface_hub
Verified signaturecbe5fcc -
Upload model-00084-of-00134.safetensors with huggingface_hub
Verified signaturedfbfcd3 -
Upload model-00083-of-00134.safetensors with huggingface_hub
Verified signature67d184d -
Upload model-00082-of-00134.safetensors with huggingface_hub
Verified signature651877a -
Upload model-00081-of-00134.safetensors with huggingface_hub
Verified signatureba11291 -
Upload model-00080-of-00134.safetensors with huggingface_hub
Verified signature9685dac -
Upload model-00078-of-00134.safetensors with huggingface_hub
Verified signaturecedc9d7 -
Upload model-00079-of-00134.safetensors with huggingface_hub
Verified signatureec96eb7 -
Upload model-00076-of-00134.safetensors with huggingface_hub
Verified signature7b4c9c6 -
Upload model-00077-of-00134.safetensors with huggingface_hub
Verified signaturecb5518f -
Upload model-00075-of-00134.safetensors with huggingface_hub
Verified signaturec669c2c -
Upload model-00074-of-00134.safetensors with huggingface_hub
Verified signatured8ba512 -
Upload model-00073-of-00134.safetensors with huggingface_hub
Verified signaturec64d2a0 -
Upload model-00072-of-00134.safetensors with huggingface_hub
Verified signature519e262 -
Upload model-00071-of-00134.safetensors with huggingface_hub
Verified signature671748b -
Upload model-00070-of-00134.safetensors with huggingface_hub
Verified signaturea65740e