Premium Ultra-Hybrid Multi-Precision GPTQ Quantization by TevunahAi
A professional-grade quantization of Meta's CodeLlama-34B using TevunahAi's Ultra-Hybrid methodology—strategically combining INT4, INT8, and FP8 precisions with EoRA (Error-corrected Low-Rank Adaptation) for maximum quality retention at significant compression.
Most publicly available quantizations use uniform precision across all layers with minimal calibration (typically 128-256 samples). This leaves significant quality on the table.
TevunahAi Premium Approach:
1,200 calibration samples — 8× the industry standard, using diverse code and instruction datasets
Layer-aware precision — Critical layers (boundaries, attention) get INT8; less sensitive MLP layers get INT4
EoRA error correction — Low-rank adapters capture and correct quantization errors at every layer
Boundary protection — First and last layers use maximum EoRA rank (2048) for optimal error correction
Tested on RTX 5000 Ada: 24.53GB allocated, 24.82GB reserved
Benchmarks
Test Hardware: NVIDIA RTX 5000 Ada (32GB VRAM)
LM Evaluation Harness (Quick Sanity Test)
Benchmark
Metric
Score
ARC-Challenge
acc_norm
42.00%
HellaSwag
acc_norm
67.00%
TruthfulQA MC2
acc
39.07%
Winogrande
acc
73.00%
Code Generation Tests
Test
Result
Notes
Basic Code Generation
✅ PASS
Correct recursive factorial
Code Completion
✅ PASS
5/5 binary search elements
Bug Fixing
✅ PASS
Identified and fixed bugs
Code Explanation
✅ PASS
Explained quicksort logic
JavaScript Generation
✅ PASS
Working longestWord function
C++ Generation
❌ FAIL
Repetitive output (base model behavior)
Data Structure (Stack)
✅ PASS
7/7 implementation elements
Code Refactoring
✅ PASS
5/5 refactoring patterns
Docstring Generation
✅ PASS
Added comprehensive docstrings
Code Tests: 8/9 passed
Performance
Metric
Value
Inference Speed
~18.2-18.7 tok/s
GPU Memory (Allocated)
24.53 GB
GPU Memory (Reserved)
24.82 GB
CPU RAM
~1.9 GB
Model Load Time
~95 seconds
The quantized model maintains strong performance across reasoning and code generation tasks while achieving 64% compression.
What is EoRA?
Error-corrected Low-Rank Adaptation (EoRA) is a technique developed by NVIDIA that captures quantization errors in low-rank matrices applied during inference. Unlike standard quantization that simply rounds weights and accepts the error, EoRA:
Quantizes the weight matrix W → W_q
Computes error: E = W - W_q
Decomposes E ≈ A × B (low-rank approximation)
At inference: output = W_q(x) + A(B(x))
This recovers much of the lost precision, especially important for sensitive layers like attention and model boundaries.