Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloads
한국어 초록
LLM 추론의 최대 VRAM 소비에 대한 해석적 모델은 메모리를 가중치 저장, KV 캐시, 활성화(activation) 항으로 분해하며, 이는 스텝 수, 도구 호출, 컨텍스트 확장으로 매개변수화된다. 본 연구는 엄격히 범위를 한정한 측정 연구 안에서 이 분해를 실증적으로 평가한다: LangGraph 기반 CUDA 커널 합성 에이전트(AgentK), 4비트 양자화 계열(Q4 K M), 단일 NVIDIA H100 GPU, 네 가지 LLM 백본, 1,920개 궤적(trajectory). 최대 메모리 예측 동작에 초점을 맞춰 두 가지 주요 관찰을 보고한다. 첫째, 폐형 해석적 모델은 두 가지 실증 상수—로드된 가중치 VRAM과 고정 활성화 메모리 오버헤드—가 주어지면 경쟁력 있는 정확도를 달성한다. 실시간 GPU 측정값과 ground-truth 궤적 매개변수가 제공되면, 폐형 모델은 네 백본 중 세 곳에서 최고의 학습 기준선과 동등하거나 그보다 우수하다(테스트 MAPE 2.2–4.4% 대 3.4–6.5%, p = 0.76). 예외는 최소 VRAM 분산(CV 0.3%)으로 동적 모델링이 단순 회귀보다 못한 가장 작은 백본(Phi-4-mini)이다. 둘째, 컴파일 성공률은 백본 용량에 따라 엄격히 이분화된다(Phi-4-mini 5.7%에서 Qwen2.5-Coder-14B 62.0%까지), 이는 기능적 코드 합성이 가용 메모리보다 LLM 고유 역량에 의해 제약됨을 보여준다. 또한 모든 백본에서 전체 최대 메모리 분산이 매우 낮아(CV 0.3–9.4%), 학습된 프롬프트-특징 회귀는 상수 평균 기준선 대비 통계적으로 유의미한 개선을 제공하지 않는다. 따라서 고도로 양자화되고 가중치가 지배적인 영역에서는 복잡한 예측 VRAM 모델을 배포할 정당성이 없음을 확인한다. 재현을 지원하기 위해 평가된 코퍼스와 익명화된 프레임워크를 공개한다.
원문 초록
Analytical models of peak VRAM consumption for LLM inference decompose memory into weight-storage, KV-cache, and activation terms parameterized by step count, tool invocations, and context expansion. We evaluate this decomposition empirically within a strictly scoped measurement study: a LangGraph-based CUDA-kernel-synthesis agent (AgentK), a 4-bit quantization family (Q4 K M), a single NVIDIA H100 GPU, and four LLM backbones across 1,920 trajectories. Focusing on peak-memory forecasting behavior, we report two primary observations. First, closed-form analytical models achieve competitive accuracy when provided with two empirical constants: loaded-weight VRAM and a fixed activation-memory overhead. Supplied with live GPU readings and ground-truth trajectory parameters, the closed-form model matches or outperforms the best learned baseline on three of the four backbones (test MAPE 2.2-4.4% vs. 3.4-6.5%, p = 0.76). The exception is the smallest backbone (Phi-4-mini), where minimal VRAM variance (CV 0.3%) causes dynamic modeling to underperform simple regression. Second, compile success strictly bifurcates by backbone capacity (from 5.7% for Phi-4-mini to 62.0% for Qwen2.5-Coder-14B), demonstrating that functional code synthesis remains constrained by intrinsic LLM capabilities rather than available memory. Furthermore, because overall peak-memory variance is remarkably low across all backbones (CV 0.3-9.4%), learned prompt-feature regression offers statistically insignificant improvements over a constant-mean baseline. Consequently, we find no justification for deploying complex predictive VRAM models in highly quantized, weight-dominated regimes. We release the evaluated corpus and anonymized framework to support replication.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.15117v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.