raphaelmansuy/edgecrab/gguf
Claude Code and agent skill by raphaelmansuy/edgecrab
- community
Checking that the SKILL.md file is still in the repository.
GGUF format and llama.cpp quantization for efficient CPU/GPU inference. Use when deploying models on consumer hardware, Apple Silicon, or when needing flexible quantization from 2-8 bit without GPU requirements.
Install
npx vskill@latest install raphaelmansuy/edgecrab/ggufSKILL.md
GGUF - Quantization Format for llama.cpp
The GGUF (GPT-Generated Unified Format) is the standard file format for llama.cpp, enabling efficient inference on CPUs, Apple Silicon, and GPUs with flexible quantization options.
When to use GGUF
Use GGUF when:
- Deploying on consumer hardware (laptops, desktops)
- Running on Apple Silicon (M1/M2/M3) with Metal acceleration
- Need CPU inference without GPU requirements
- Want flexible quantization (Q2_K to Q8_0)
- Using local AI tools (LM Studio, Ollama, text-generation-webui)
Key advantages:
- Universal hardware: CPU, Apple Silicon, NVIDIA, AMD support
- No Python runtime: Pure C/C++ inference
- Flexible quantization: 2-8 bit with various methods (K-quants)
- Ecosystem support: LM Studio, Ollama, koboldcpp, and more
- imatrix: Importance matrix for better low-bit quality
Use alternatives instead:
- AWQ/GPTQ: Maximum accuracy with calibration on NVIDIA GPUs
- HQQ: Fast calibration-free quantization for HuggingFace
- bitsandbytes: Simple integration with transformers library
- TensorRT-LLM: Production NVIDIA deployment with maximum speed
Quick start
Installation
Convert model to GGUF
Quantize model
Run inference
Quantization types
K-quant methods (recommended)
| Type | Bits | Size (7B) | Quality | Use Case | |
|---|---|---|---|---|---|
| Q2_K | 2.5 | ~2.8 GB | Low | Extreme compression | |
| Q3_K_S | 3.0 | ~3.0 GB | Low-Med | Memory constrained | |
| Q3_K_M | 3.3 | ~3.3 GB | Medium | Balance | |
| Q4_K_S | 4.0 | ~3.8 GB | Med-High | Good balance | |
| Q4_K_M | 4.5 | ~4.1 GB | High | Recommended default | |
| Q5_K_S | 5.0 | ~4.6 GB | High | Quality focused | |
| Q5_K_M | 5.5 | ~4.8 GB | Very High | High quality | |
| Q6_K | 6.0 | ~5.5 GB | Excellent | Near-original | |
| Q8_0 | 8.0 | ~7.2 GB | Best | Maximum quality |
Legacy methods
| Type | Description | |
|---|---|---|
| Q4_0 | 4-bit, basic | |
| Q4_1 | 4-bit with delta | |
| Q5_0 | 5-bit, basic | |
| Q5_1 | 5-bit with delta |
Recommendation: Use K-quant methods (Q4_K_M, Q5_K_M) for best quality/size ratio.
Conversion workflows
Workflow 1: HuggingFace to GGUF
Workflow 2: With importance matrix (better quality)
Workflow 3: Multiple quantizations
Python usage
llama-cpp-python
Chat completion
Streaming
Server mode
Start OpenAI-compatible server
Use with OpenAI client
Hardware optimization
Apple Silicon (Metal)
NVIDIA CUDA
CPU optimization
Integration with tools
Ollama
LM Studio
- Place GGUF file in
~/.cache/lm-studio/models/ - Open LM Studio and select the model
- Configure context length and GPU offload
- Start inference
text-generation-webui
Best practices
- Use K-quants: Q4_K_M offers best quality/size balance
- Use imatrix: Always use importance matrix for Q4 and below
- GPU offload: Offload as many layers as VRAM allows
- Context length: Start with 4096, increase if needed
- Thread count: Match physical CPU cores, not logical
- Batch size: Increase n_batch for faster prompt processing
Common issues
Model loads slowly:
Out of memory:
Poor quality at low bits:
References
- [Advanced Usage](references/advanced-usage.md) - Batching, speculative decoding, custom builds
- [Troubleshooting](references/troubleshooting.md) - Common issues, debugging, benchmarks
Resources
- Repository: https://github.com/ggml-org/llama.cpp
- Python Bindings: https://github.com/abetlen/llama-cpp-python
- Pre-quantized Models: https://huggingface.co/TheBloke
- GGUF Converter: https://huggingface.co/spaces/ggml-org/gguf-my-repo
- License: MIT
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mlops/inference/gguf/SKILL.md
Popularity
- Repository stars
- 58
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/raphaelmansuy/edgecrab/gguf)