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-00046-of-00090.safetensors with huggingface_hub
Verified signature02225e8 -
Upload model-00045-of-00090.safetensors with huggingface_hub
Verified signature78a2d4b -
Upload model-00044-of-00090.safetensors with huggingface_hub
Verified signature883de8b -
Upload model-00040-of-00090.safetensors with huggingface_hub
Verified signatureec65f7f -
Upload model-00043-of-00090.safetensors with huggingface_hub
Verified signaturec9cd8e2 -
Upload model-00042-of-00090.safetensors with huggingface_hub
Verified signature63be396 -
Upload model-00041-of-00090.safetensors with huggingface_hub
Verified signature4213245 -
Upload model-00039-of-00090.safetensors with huggingface_hub
Verified signature1d76694 -
Upload model-00038-of-00090.safetensors with huggingface_hub
Verified signaturea3b4bd2 -
Upload model-00036-of-00090.safetensors with huggingface_hub
Verified signature5bce660 -
Upload model-00037-of-00090.safetensors with huggingface_hub
Verified signaturee93f698 -
Upload model-00035-of-00090.safetensors with huggingface_hub
Verified signature5b4a1ea -
Upload model-00033-of-00090.safetensors with huggingface_hub
Verified signature6168895 -
Upload model-00034-of-00090.safetensors with huggingface_hub
Verified signaturebb527ed -
Upload model-00032-of-00090.safetensors with huggingface_hub
Verified signature2b9fd05 -
Upload model-00031-of-00090.safetensors with huggingface_hub
Verified signature089fde9 -
Upload model-00029-of-00090.safetensors with huggingface_hub
Verified signaturef2fb74a -
Upload model-00030-of-00090.safetensors with huggingface_hub
Verified signature70fe781 -
Upload model-00028-of-00090.safetensors with huggingface_hub
Verified signature78da94d -
Upload model-00026-of-00090.safetensors with huggingface_hub
Verified signatured7fbfe5 -
Upload model-00027-of-00090.safetensors with huggingface_hub
Verified signature4c5ebe9 -
Upload model-00025-of-00090.safetensors with huggingface_hub
Verified signature93e861a -
Upload model-00021-of-00090.safetensors with huggingface_hub
Verified signatureed7bfb5 -
Upload model-00024-of-00090.safetensors with huggingface_hub
Verified signature988a4b9 -
Upload model-00023-of-00090.safetensors with huggingface_hub
Verified signature5ed402d -
Upload model-00022-of-00090.safetensors with huggingface_hub
Verified signature3d61ab8 -
Upload model-00020-of-00090.safetensors with huggingface_hub
Verified signature5f420f9 -
Upload model-00017-of-00090.safetensors with huggingface_hub
Verified signaturef3f4c7d -
Upload model-00018-of-00090.safetensors with huggingface_hub
Verified signature853743d -
Upload model-00019-of-00090.safetensors with huggingface_hub
Verified signature1a4a2f2 -
Upload model-00015-of-00090.safetensors with huggingface_hub
Verified signature654a0c4 -
Upload model-00016-of-00090.safetensors with huggingface_hub
Verified signature3985ca4 -
Upload model-00013-of-00090.safetensors with huggingface_hub
Verified signature09b2aaa -
Upload model-00014-of-00090.safetensors with huggingface_hub
Verified signature842635a -
Upload model-00012-of-00090.safetensors with huggingface_hub
Verified signature2d195f8 -
Upload model-00011-of-00090.safetensors with huggingface_hub
Verified signature1dce661 -
Upload model-00010-of-00090.safetensors with huggingface_hub
Verified signature930cafa -
Upload model-00009-of-00090.safetensors with huggingface_hub
Verified signaturec60e745 -
Upload model-00008-of-00090.safetensors with huggingface_hub
Verified signature0e48f02 -
Upload model-00007-of-00090.safetensors with huggingface_hub
Verified signature9cd66ed -
Upload model-00006-of-00090.safetensors with huggingface_hub
Verified signatured4c46e5 -
Upload model-00001-of-00090.safetensors with huggingface_hub
Verified signature592a09b -
Upload model-00005-of-00090.safetensors with huggingface_hub
Verified signature0d8e3ee -
Upload model-00002-of-00090.safetensors with huggingface_hub
Verified signature7607dc9 -
Upload model-00003-of-00090.safetensors with huggingface_hub
Verified signature047df32 -
Upload model-00004-of-00090.safetensors with huggingface_hub
Verified signature33c42f7 -
initial commit
Verified signature777b7fe