Instructions to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2", filename="IQ2_XSS/DeepSeek-V3-0324-IQ2_XXS_-00001-of-00004.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 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 lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS # Run inference directly in the terminal: llama cli -hf lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS # Run inference directly in the terminal: llama cli -hf lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
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 lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS # Run inference directly in the terminal: ./llama-cli -hf lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
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 lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS # Run inference directly in the terminal: ./build/bin/llama-cli -hf lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
Use Docker
docker model run hf.co/lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
- LM Studio
- Jan
- Ollama
How to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 with Ollama:
ollama run hf.co/lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
- Unsloth Studio
How to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 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 lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 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 lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 to start chatting
- Atomic Chat new
- Docker Model Runner
How to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 with Docker Model Runner:
docker model run hf.co/lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
- Lemonade
How to use lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2:IQ2_XXS
Run and chat with the model
lemonade run user.DeepSeek-V3-0324_IK_GGUF_Q2-IQ2_XXS
List all available models
lemonade list
IQ2_XSS quant of DeepSeek-V3-0324 I made for my 192GB DDR5 + 3090/4090. Done according to:
* IQ2_XXS 169.590 GiB (2.168 BPW)
Not recommended, but should be faster and better quality than the IQ1_S and okay with full offload on multi-GPU. It should be okay for hybrid CPU+GPU inference as well if this size is good for your rig. Probably want to choose the IQ2_KT for full GPU offload.
Special mix IQ2_XXS ffn_(gate|up)_exps and IQ2_KS ffn_down_exps routed experts. Mostly iq4_ks/iq3_ks for attn and shared expert. iq4_k token_embd and iq5_k output "head".
👈 Secret Recipe
#!/usr/bin/env bash
custom="
# First 3 dense layers (0-3) (GPU)
# Except blk.*.attn_k_b.weight is not divisible by 256 so only supports qN_0
blk\.[0-2]\.attn_k_b.*=q4_0
blk\.[0-2]\.attn_.*=iq4_ks
blk\.[0-2]\.ffn_down.*=iq4_ks
blk\.[0-2]\.ffn_(gate|up).*=iq3_ks
blk\.[0-2]\..*=iq4_ks
# All attention, norm weights, and bias tensors for MoE layers (3-60) (GPU)
# Except blk.*.attn_k_b.weight is not divisible by 256 so only supports qN_0
blk\.[3-9]\.attn_k_b.*=q4_0
blk\.[1-5][0-9]\.attn_k_b.*=q4_0
blk\.60\.attn_k_b.*=q4_0
blk\.[3-9]\.attn_.*=iq4_ks
blk\.[1-5][0-9]\.attn_.*=iq4_ks
blk\.60\.attn_.*=iq4_ks
# Shared Expert (3-60) (GPU)
blk\.[3-9]\.ffn_down_shexp\.weight=iq4_ks
blk\.[1-5][0-9]\.ffn_down_shexp\.weight=iq4_ks
blk\.60\.ffn_down_shexp\.weight=iq4_ks
blk\.[3-9]\.ffn_(gate|up)_shexp\.weight=iq3_ks
blk\.[1-5][0-9]\.ffn_(gate|up)_shexp\.weight=iq3_ks
blk\.60\.ffn_(gate|up)_shexp\.weight=iq3_ks
# Routed Experts (3-60) (CPU)
blk\.[3-9]\.ffn_down_exps\.weight=iq2_ks
blk\.[1-5][0-9]\.ffn_down_exps\.weight=iq2_ks
blk\.60\.ffn_down_exps\.weight=iq2_ks
blk\.[3-9]\.ffn_(gate|up)_exps\.weight=iq2_xxs
blk\.[1-5][0-9]\.ffn_(gate|up)_exps\.weight=iq2_xxs
blk\.60\.ffn_(gate|up)_exps\.weight=iq2_xxs
# Token embedding and output tensors (GPU)
token_embd\.weight=iq4_k
output\.weight=iq5_k
Prompt format
<|begin▁of▁sentence|>{system_prompt}<|User|>{prompt}<|Assistant|><|end▁of▁sentence|><|Assistant|>
ik_llama.cpp quantizations of DeepSeek-V3-0324
NOTE: These quants MUST be run using the llama.cpp fork, ik_llama.cpp
Credits to @ubergarm for his DeepSeek quant recipes for which these quants were based on.
- Downloads last month
- 3
2-bit
Model tree for lmganon123/DeepSeek-V3-0324_IK_GGUF_Q2
Base model
deepseek-ai/DeepSeek-V3-0324