Text Generation
Transformers
Safetensors
deepseek_v3
DeepSeek-R1-0528
GPTQ
Int4-Int8Mix
量化修复
vLLM
conversational
custom_code
text-generation-inference
4-bit precision
gptq
Instructions to use QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact", 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-R1-0528-GPTQ-Int4-Int8Mix-Compact", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact", 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-R1-0528-GPTQ-Int4-Int8Mix-Compact with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact" # 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-R1-0528-GPTQ-Int4-Int8Mix-Compact", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact
- SGLang
How to use QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact 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-R1-0528-GPTQ-Int4-Int8Mix-Compact" \ --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-R1-0528-GPTQ-Int4-Int8Mix-Compact", "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-R1-0528-GPTQ-Int4-Int8Mix-Compact" \ --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-R1-0528-GPTQ-Int4-Int8Mix-Compact", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact with Docker Model Runner:
docker model run hf.co/QuantTrio/DeepSeek-R1-0528-GPTQ-Int4-Int8Mix-Compact
Commit History
-
Upload model-00090-of-00090.safetensors
Verified signature6c80d7c
-
Update README.md
Verified signaturea384f67 -
Delete .ipynb_checkpoints
Verified signature5b9a8f6 -
Update config.json
Verified signature5f201cc
-
Update README.md
Verified signatureaa85e6a -
Update README.md
Verified signature6ddb807 -
Upload folder using huggingface_hub
Verified signature3324447 -
Upload model-00087-of-00090.safetensors with huggingface_hub
Verified signature47efd72 -
Upload model-00089-of-00090.safetensors with huggingface_hub
Verified signaturebd190c8 -
Upload model-00088-of-00090.safetensors with huggingface_hub
Verified signature64c135e -
Upload model-00086-of-00090.safetensors with huggingface_hub
Verified signature917199e -
Upload model-00084-of-00090.safetensors with huggingface_hub
Verified signature2d86776 -
Upload model-00083-of-00090.safetensors with huggingface_hub
Verified signature510e4cd -
Upload model-00085-of-00090.safetensors with huggingface_hub
Verified signature7fe0853 -
Upload model-00081-of-00090.safetensors with huggingface_hub
Verified signature9971208 -
Upload model-00082-of-00090.safetensors with huggingface_hub
Verified signaturecc93d1d -
Upload model-00080-of-00090.safetensors with huggingface_hub
Verified signatureec0f29d -
Upload model-00079-of-00090.safetensors with huggingface_hub
Verified signatureaf065a1 -
Upload model-00078-of-00090.safetensors with huggingface_hub
Verified signature8ce807d -
Upload model-00077-of-00090.safetensors with huggingface_hub
Verified signaturec5d8309 -
Upload model-00073-of-00090.safetensors with huggingface_hub
Verified signaturec0d8c38 -
Upload model-00074-of-00090.safetensors with huggingface_hub
Verified signatureac74721 -
Upload model-00076-of-00090.safetensors with huggingface_hub
Verified signaturee5a3b0f -
Upload model-00075-of-00090.safetensors with huggingface_hub
Verified signatureb1e2884 -
Upload model-00072-of-00090.safetensors with huggingface_hub
Verified signature62cc761 -
Upload model-00070-of-00090.safetensors with huggingface_hub
Verified signature11892c0 -
Upload model-00071-of-00090.safetensors with huggingface_hub
Verified signatureb14d750 -
Upload model-00069-of-00090.safetensors with huggingface_hub
Verified signaturec661f74 -
Upload model-00067-of-00090.safetensors with huggingface_hub
Verified signature4efbcff -
Upload model-00068-of-00090.safetensors with huggingface_hub
Verified signatured4590a2 -
Upload model-00064-of-00090.safetensors with huggingface_hub
Verified signature2aa5b07 -
Upload model-00066-of-00090.safetensors with huggingface_hub
Verified signature0076a4d -
Upload model-00065-of-00090.safetensors with huggingface_hub
Verified signaturec2a5098 -
Upload model-00063-of-00090.safetensors with huggingface_hub
Verified signature4e79993 -
Upload model-00059-of-00090.safetensors with huggingface_hub
Verified signature908023a -
Upload model-00062-of-00090.safetensors with huggingface_hub
Verified signature5a8a4ca -
Upload model-00061-of-00090.safetensors with huggingface_hub
Verified signatured645c2b -
Upload model-00060-of-00090.safetensors with huggingface_hub
Verified signatureb4367ce -
Upload model-00058-of-00090.safetensors with huggingface_hub
Verified signature24b81f5 -
Upload model-00057-of-00090.safetensors with huggingface_hub
Verified signature5ef1725 -
Upload model-00056-of-00090.safetensors with huggingface_hub
Verified signature2e3258a -
Upload model-00055-of-00090.safetensors with huggingface_hub
Verified signature5fb42c9 -
Upload model-00054-of-00090.safetensors with huggingface_hub
Verified signature73b2773 -
Upload model-00052-of-00090.safetensors with huggingface_hub
Verified signature9cf7ae0 -
Upload model-00053-of-00090.safetensors with huggingface_hub
Verified signature3b95625 -
Upload model-00050-of-00090.safetensors with huggingface_hub
Verified signature46a57d6 -
Upload model-00051-of-00090.safetensors with huggingface_hub
Verified signaturee653972 -
Upload model-00048-of-00090.safetensors with huggingface_hub
Verified signature4651d44 -
Upload model-00047-of-00090.safetensors with huggingface_hub
Verified signature2e882d2 -
Upload model-00049-of-00090.safetensors with huggingface_hub
Verified signature7b43a5e