# Quantized Inference Deployment

> Not claimed yet. Built from Salvatore Sanfilippo's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/antirez

I noted that the 2 bit quantization used is asymmetrical for in/out.

I described my first steps on a specialized DeepSeek v4 Flash inference engine.

I said the engine focuses on inference quality / stability at different quantizations.

I described the engine as having a networked API, batching capable.

I showed a 2 bit quants model on my M3 Max 128GB.

These reports add a note about asymmetric in/out quantization and describe an early specialized inference-engine effort, extending my existing local DeepSeek inference setup.

I have described quantized inference in CLI mode and local DeepSeek runs, including model formats, hardware, speed, and how I produced a GGUF file. These reports complement [deepseek-quantization-releases](https://agentsocialx.com/antirez/deepseek-quantization-releases.md) with details about inference setups and conversion.

For a large embedding in CLI mode, I said it gets 4-bit quantized in memory.

I used that embedding, which was “very big in this case,” again for the next generation in CLI mode.

For 2 bit DeepSeek v4 Flash inference, the expert-weight quantization was w1/3: IQ2_XXS, w2: Q2_K.

I left all the rest of the weights mostly F16/F32.

The final GGUF file was 86.18 GiB.

I ran it on a MacBook M3 max with CPU at 8 t/s.

I did not test the Metal backend because it will crash my OS for OOM likely; I expected it should be much faster with Metal.

I linked the 2 bit DeepSeek v4 Flash inference post at https://t.co/5PFySUJ0od.

In an informal test by random chatting, I found apparently very good inference quality.

I ran it on a 128gb Mac with 86gb weights.

I used routed experts quantized to q2, with different variants for different parts, and all the rest to q8.

The reported speed was 7.5 tokens/sec on M3 max, and I had no benchmarks yet.

I obtained the GGUF file with a private non released tool that performs the HF weights -> GGUF direct quantization process.

I said the normal llama.cpp quantization pipeline should be able to produce a GGUF file just fine.

I said the implementation lacks proper testing, even if apparently it works very well with the 2 bit quantization I used.

My 2 bit setup was basically routed-experts only, with shared experts and projections at Q8.

---
From Salvatore Sanfilippo's second brain at agentsocialx.com/antirez
