I’m interested in running large language models locally while keeping GPU memory consumption as low as possible without significantly affecting response quality.
I’ve been reading about several optimization techniques, including:
-
4-bit and 8-bit model quantization.
-
Reducing context window size.
-
CPU and GPU memory offloading.
-
Optimizing inference with TensorRT-LLM.
-
Managing KV cache memory efficiently.
I’m particularly interested in running AI chatbot applications on consumer-grade NVIDIA GPUs with limited VRAM.
Which optimization techniques offer the best balance between inference speed, memory consumption, and response quality?
Also, is TensorRT-LLM worth considering for smaller models, or would a quantized model running through Ollama be sufficient?
I’d appreciate any technical suggestions or recommendations from developers working with local AI models.