Instructions to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/DeepSeek-Coder-V2-Instruct-GGUF", filename="DeepSeek-Coder-V2-Instruct-Q2_K-00001-of-00003.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
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 second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
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 second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with Ollama:
ollama run hf.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
- Unsloth Studio new
How to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for second-state/DeepSeek-Coder-V2-Instruct-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for second-state/DeepSeek-Coder-V2-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for second-state/DeepSeek-Coder-V2-Instruct-GGUF to start chatting
- Docker Model Runner
How to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
- Lemonade
How to use second-state/DeepSeek-Coder-V2-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/DeepSeek-Coder-V2-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DeepSeek-Coder-V2-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -83,10 +83,25 @@ quantized_by: Second State Inc.
|
|
| 83 |
| [DeepSeek-Coder-V2-Instruct-Q3_K_M-00002-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_M-00002-of-00004.gguf) | Q3_K_M | 3 | 29.5 GB| very small, high quality loss |
|
| 84 |
| [DeepSeek-Coder-V2-Instruct-Q3_K_M-00003-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_M-00003-of-00004.gguf) | Q3_K_M | 3 | 29.8 GB| very small, high quality loss |
|
| 85 |
| [DeepSeek-Coder-V2-Instruct-Q3_K_M-00004-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_M-00004-of-00004.gguf) | Q3_K_M | 3 | 23.8 GB| very small, high quality loss |
|
| 86 |
-
| [DeepSeek-Coder-V2-Instruct-Q3_K_S.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_S.gguf) | Q3_K_S | 3 |
|
| 87 |
-
| [DeepSeek-Coder-V2-Instruct-
|
| 88 |
-
| [DeepSeek-Coder-V2-Instruct-
|
| 89 |
-
| [DeepSeek-Coder-V2-Instruct-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
| [DeepSeek-Coder-V2-Instruct-Q5_0.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q5_0.gguf) | Q5_0 | 5 | 10.8 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 91 |
| [DeepSeek-Coder-V2-Instruct-Q5_K_M.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q5_K_M.gguf) | Q5_K_M | 5 | 11.9 GB| large, very low quality loss - recommended |
|
| 92 |
| [DeepSeek-Coder-V2-Instruct-Q5_K_S.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q5_K_S.gguf) | Q5_K_S | 5 | 11.1 GB| large, low quality loss - recommended |
|
|
|
|
| 83 |
| [DeepSeek-Coder-V2-Instruct-Q3_K_M-00002-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_M-00002-of-00004.gguf) | Q3_K_M | 3 | 29.5 GB| very small, high quality loss |
|
| 84 |
| [DeepSeek-Coder-V2-Instruct-Q3_K_M-00003-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_M-00003-of-00004.gguf) | Q3_K_M | 3 | 29.8 GB| very small, high quality loss |
|
| 85 |
| [DeepSeek-Coder-V2-Instruct-Q3_K_M-00004-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_M-00004-of-00004.gguf) | Q3_K_M | 3 | 23.8 GB| very small, high quality loss |
|
| 86 |
+
| [DeepSeek-Coder-V2-Instruct-Q3_K_S-00001-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_S-00001-of-00004.gguf) | Q3_K_S | 3 | 29.9 GB| very small, high quality loss |
|
| 87 |
+
| [DeepSeek-Coder-V2-Instruct-Q3_K_S-00002-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_S-00002-of-00004.gguf) | Q3_K_S | 3 | 29.7 GB| very small, high quality loss |
|
| 88 |
+
| [DeepSeek-Coder-V2-Instruct-Q3_K_S-00003-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_S-00003-of-00004.gguf) | Q3_K_S | 3 | 29.6 GB| very small, high quality loss |
|
| 89 |
+
| [DeepSeek-Coder-V2-Instruct-Q3_K_S-00004-of-00004.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q3_K_S-00004-of-00004.gguf) | Q3_K_S | 3 | 12.5 GB| very small, high quality loss |
|
| 90 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_0-00001-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_0-00001-of-00005.gguf) | Q4_0 | 4 | 30.0 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 91 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_0-00002-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_0-00002-of-00005.gguf) | Q4_0 | 4 | 29.9 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 92 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_0-00003-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_0-00003-of-00005.gguf) | Q4_0 | 4 | 29.8 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 93 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_0-00004-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_0-00004-of-00005.gguf) | Q4_0 | 4 | 29.9 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 94 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_0-00005-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_0-00005-of-00005.gguf) | Q4_0 | 4 | 13.3 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 95 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_M-00001-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_M-00001-of-00005.gguf) | Q4_K_M | 4 | 29.7 GB| medium, balanced quality - recommended |
|
| 96 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_M-00002-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_M-00002-of-00005.gguf) | Q4_K_M | 4 | 29.7 GB| medium, balanced quality - recommended |
|
| 97 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_M-00003-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_M-00003-of-00005.gguf) | Q4_K_M | 4 | 29.7 GB| medium, balanced quality - recommended |
|
| 98 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_M-00004-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_M-00004-of-00005.gguf) | Q4_K_M | 4 | 29.6 GB| medium, balanced quality - recommended |
|
| 99 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_M-00005-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_M-00005-of-00005.gguf) | Q4_K_M | 4 | 23.8 GB| medium, balanced quality - recommended |
|
| 100 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_S-00001-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_S-00001-of-00005.gguf) | Q4_K_S | 4 | 29.6 GB| small, greater quality loss |
|
| 101 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_S-00002-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_S-00002-of-00005.gguf) | Q4_K_S | 4 | 29.8 GB| small, greater quality loss |
|
| 102 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_S-00003-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_S-00003-of-00005.gguf) | Q4_K_S | 4 | 29.9 GB| small, greater quality loss |
|
| 103 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_S-00004-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_S-00004-of-00005.gguf) | Q4_K_S | 4 | 29.8 GB| small, greater quality loss |
|
| 104 |
+
| [DeepSeek-Coder-V2-Instruct-Q4_K_S-00005-of-00005.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q4_K_S-00005-of-00005.gguf) | Q4_K_S | 4 | 14.8 GB| small, greater quality loss |
|
| 105 |
| [DeepSeek-Coder-V2-Instruct-Q5_0.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q5_0.gguf) | Q5_0 | 5 | 10.8 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 106 |
| [DeepSeek-Coder-V2-Instruct-Q5_K_M.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q5_K_M.gguf) | Q5_K_M | 5 | 11.9 GB| large, very low quality loss - recommended |
|
| 107 |
| [DeepSeek-Coder-V2-Instruct-Q5_K_S.gguf](https://huggingface.co/second-state/DeepSeek-Coder-V2-Instruct-GGUF/blob/main/DeepSeek-Coder-V2-Instruct-Q5_K_S.gguf) | Q5_K_S | 5 | 11.1 GB| large, low quality loss - recommended |
|