Edge-Native Multimodal RAG: Hardware-Aware Quantization and Architectural Optimization for Consumer GPUs
Zahraa Selim, Menna Hamed, Wesam Ahmed, Sohyla Said, Sara Basheer, Rami Zewail
Abstract
Deployment of retrieval-augmented generation (RAG) for Edge-AI is constrained by memory and bandwidth limitations. A standard 7B parameter model consumes 14 GB Video Random Access Memory (VRAM) in half-precision (FP16), precluding co-location of vector indices and Key-Value (KV) caches. This paper presents an engineering integration and empirical evaluation of a multimodal RAG framework optimized for consumer-grade Turing hardware (e.g., NVIDIA Tesla T4). Our system-level analysis identifies a critical trade-off: while generative pre-trained transformer quantization (GPTQ) offers superior throughput (51.6 tok/s), it exhibits significant context instability at 2048+ tokens on Turing architectures. Conversely, NormalFloat 4-bit (NF4) maintains robust long-context performance with viable latency (81 ms/tok). By coupling NF4 with a decoupled Florence-2 vision integration, we achieve visual reasoning with only 430 MB VRAM overhead. Furthermore, empirical observations of prompt-induced search space pruning show that structured prompting reduces latency by 47% without altering computational intensity (1.88 GFLOPs/token). The integrated architecture maintains an 8.37 GB footprint, establishing a viable RAG pipeline for 12-16 GB GPUs. Finally, structured few-shot prompting effectively compensates for quantization-induced reasoning loss, restoring mathematical accuracy from 35.0% to 92.0% across 200 trials.
Create a lesson
Related papers
EDAGoat: An EDA-Aware Agent for Project-Level GPU Optimization
Shared title terminology · Chengxi Li, Liang Xiao, Yutao Wang et al.
A Continuous Relaxation of Quantization-Aware Training
Shared title terminology · Kartikeya Bhardwaj, Mohammed Almousa, Chaitanya Mullapudi et al.
AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs
Shared title terminology · SLAI AI Training Platform Team, Bingwei Zhang, Jing Li et al.
SignRot: LLM Quantization with Massive Outlier-Aware Sign-Adjusted Rotation
Shared title terminology · Jaehun Gim, Jaewoo Kim, Gyuwan Kim et al.
Joint Quantization and Dynamic Partitioning for Context-Aware Edge Vision Transformers
Shared title terminology · Zhu Jiaqi, Jain Prakriti, Katare Dewant et al.
The Dual-Tier Sentiment Framework: Scalable Multimodal UX Attribution in Web Search
Shared title terminology · Yi Ding, Gaurav Kumar, Rui Min et al.