A comprehensive quantization comparison framework for DeepSeek V3 (6.7B) on 16GB GPU environments, supporting FP16, Q8_0, and Q4_0 quantization levels.
Based on our comprehensive testing on RTX 4060 Ti 16GB:
| Quantization | Inference Speed | GPU Memory | Best Use Case |
|---|---|---|---|
| FP16 | 4.8 tok/s | 6,101MB | Research, maximum quality |
| Q8_0 | 2.1 tok/s | 9,219MB | Production, balanced quality |
| Q4_0 | 2.9 tok/s | 6,101MB | Daily development, speed focus |
- Q4_0 vs Q8_0: 39.9% speed improvement, 33.8% memory reduction
- FP16 surprise: Most memory-efficient for quality (only 6,101MB)
- Q8_0 memory usage: Highest at 9,219MB despite being 8-bit
- GPU: 16GB VRAM (RTX 4060 Ti, RTX 4080, A4000, eGPU)
- CPU: Ryzen 7 / Intel i7+
- RAM: 16GB+ recommended
- Storage: SSD recommended
# FP16 (Full Precision) - Research Quality
ollama pull deepseek-coder:6.7b-instruct
# Q8_0 (8-bit) - Production Balance
ollama pull deepseek-coder:6.7b-instruct-q8_0
# Q4_0 (4-bit) - Daily Development
ollama pull deepseek-coder:6.7b-instruct-q4_0# 1. Clone repository
git clone <repository-url>
cd takato-llm-comparison
# 2. Python environment
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
# 3. Install Ollama (if needed)
winget install Ollama.Ollama
# 4. Download models (choose based on your needs)
ollama pull deepseek-coder:6.7b-instruct # FP16
ollama pull deepseek-coder:6.7b-instruct-q8_0 # Q8_0
ollama pull deepseek-coder:6.7b-instruct-q4_0 # Q4_0# Run comprehensive comparison (FP16, Q8_0, Q4_0)
python scripts/quantization_comparison.py
# Generate professional report and charts
python scripts/generate_github_report.py# Test specific quantization level
python scripts/deepseek_quick_test.pytakato-llm-comparison/
├── README.md # This file
├── QUICKSTART.md # 5-minute setup guide
├── requirements.txt # Python dependencies
├── scripts/ # Analysis scripts
│ ├── quantization_comparison.py # Main 3-level comparison
│ ├── generate_github_report.py # Professional reporting
│ ├── deepseek_quick_test.py # Quick single tests
│ └── deepseek_evaluation.py # Legacy single model
├── templates/ # Test prompts
│ ├── prompt_template.txt
│ └── test_prompts.json
├── results/ # Generated results
│ ├── RESULTS.md # Professional analysis report
│ ├── performance_charts.png # Visual comparisons
│ ├── quantization_comparison_log.csv # Raw performance data
│ └── quantization_evaluation.md # Detailed evaluation
└── config/ # Configuration
└── q4_km_settings.conf