Instructions to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Use Docker
docker model run hf.co/taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
- Ollama
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with Ollama:
ollama run hf.co/taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
- Unsloth Desktop
- Pi
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with Docker Model Runner:
docker model run hf.co/taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
- Lemonade
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Run and chat with the model
lemonade run user.DeepSeek-V4.1-Flash-GSQ-RCO-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "taurusduan/DeepSeek-V4.1-Flash-GSQ-RCO-GGUF:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
| # Perplexity and KL comparison | |
| The completed DeepSeek quantized run measured PPL **3.4845570141** using the archived held-out text, eight 1,024-token contexts and a latter-half scoring mask: 4,088 next-token scores. The [validation record](results/diagnostics/deepseek3.0-f32.ppl.validation.json) binds the native cache and lossless F32 sidecar by size and SHA256. No matched source-reference KL measurement is reported. | |
| The included offline comparison utility requires matching token sequences, dimensions and scoring masks. PPL values from different tokenizers or corpora are not directly comparable. | |
| The native `llama-perplexity --kl-divergence` cache stores uint16 log probabilities with row-specific scale/offset and a relative-logit floor. Native KL uses reference entries with `log(p) > -16`; this is an approximate `D_KL(reference || quantization)` calculation. Direct reference PPL must be retained separately because rare-token log probabilities can be clipped in the cache. | |
| The DeepSeek perplexity executable writes the exact input logits to a headerless little-endian F32 sidecar, plus full per-chunk NLL/NLL²/PPL records. Saving these tensors does not change model execution. Given compatible completed reference and quantization runs, `compare_ppl_caches.py` can reproduce the native approximate KL calculation using the reference cache and lossless quantization logits, without loading either model. | |
| When both lossless sidecars are present, the offline analyzer additionally reports full-vocabulary KL from F64-normalized F32 logits and true paired per-chunk PPL. This secondary metric is explicitly separate from the native approximation. Without a lossless reference sidecar, the analyzer labels reference PPL as cache-derived and approximate; the direct reference-run measurement remains authoritative. | |
| The analyzer checks cache magic, exact file lengths, dimensions, token IDs, equal token sequences, finite data, and sidecar/cache agreement across all recorded rows. Input hashes and NumPy/script versions are recorded. Six tests pass, including scalar C++ parity with the native KL formula, odd vocabulary padding, corrupted sizes, mismatched tokens, non-finite logits and reordered sidecars. Small platform-specific `expf` rounding differences are possible and are kept separate from model-level differences. | |
| Example configuration (paths are relative to the configuration file): | |
| ```json | |
| { | |
| "reference": { | |
| "cache": "reference.ppl.logits", | |
| "logits_f32": "reference.ppl.f32" | |
| }, | |
| "quantization": { | |
| "cache": "quantization.ppl.logits", | |
| "logits_f32": "quantization.ppl.f32" | |
| } | |
| } | |
| ``` | |
| Run `python compare_ppl_caches.py --config comparison.json --output comparison-results.json` in an environment with NumPy. The reference F32 path is optional; the quantization F32 path is required. Model identities and numerical settings belong in the configuration and are copied to the output. | |