A small project to compare baseline vs quantized small causal language models and study inference tradeoffs.
Evaluate how quantization affects:
- model load time
- inference latency
- approximate memory footprint
- qualitative output quality
This project is meant to build practical intuition around LLM inference optimization, especially in the context of:
- memory-constrained serving
- latency / throughput tradeoffs
- prefill vs decode behavior
- quantization as an inference optimization lever
Starting with a small causal LM (distilgpt2) for fast iteration and simple benchmarking.
- Baseline model
- Quantized model (CPU dynamic quantization or 8-bit / 4-bit path later)
- Load time
- Per-prompt generation latency
- Number of output tokens
- Qualitative output comparison
- The future of machine learning is
- Quantization helps large language models by
- In an IoT anomaly detection pipeline,
- Project skeleton
- Baseline benchmark
- Quantized benchmark
- Compare results and summarize tradeoffs