Text Generation
English
deepseek_v4
deepseek
Mixture of Experts
sovereign
agentic
speculative-decoding
4-bit precision
gptq
Instructions to use Codexcoder/deepseek-v4-sovereign with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use Codexcoder/deepseek-v4-sovereign with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Codexcoder/deepseek-v4-sovereign" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Codexcoder/deepseek-v4-sovereign", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Codexcoder/deepseek-v4-sovereign
- SGLang
How to use Codexcoder/deepseek-v4-sovereign 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 "Codexcoder/deepseek-v4-sovereign" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Codexcoder/deepseek-v4-sovereign", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Codexcoder/deepseek-v4-sovereign" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Codexcoder/deepseek-v4-sovereign", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Codexcoder/deepseek-v4-sovereign with Docker Model Runner:
docker model run hf.co/Codexcoder/deepseek-v4-sovereign
SOVEREIGN — sovereign AI model card (derived from DeepSeek-V4-Flash-0731): specs, config, tokenizer, generation config
f6fec0c verified | { | |
| "temperature": 1.0, | |
| "top_p": 0.95, | |
| "top_k": 40, | |
| "max_new_tokens": 384000, | |
| "repetition_penalty": 1.0, | |
| "do_sample": true, | |
| "reasoning_effort": "max", | |
| "thinking_mode": "thinking", | |
| "use_cache": true, | |
| "pad_token_id": 129277, | |
| "bos_token_id": 129278, | |
| "eos_token_id": [129279, 129280] | |
| } | |