[Question] Component-level GPU/CPU memory placement for Llama-2-7b-chat (FP16) on integrated GPU — measured RAM growth doesn't match model size
Question
We benchmarked Llama-2-7b-chat (FP16) via the standard llm-chatbot OpenVINO
pipeline on an integrated-GPU device, and the measured RAM growth doesn't
split the way we'd expect against the model's on-disk size. We'd like to
understand what OpenVINO is actually placing where.
Environment
- Model:
meta-llama/Llama-2-7b-chat-hf, exported via:optimum-cli export openvino --model <id> --task text-generation-with-past --weight-format fp16 - Device: Intel Core Ultra 5 228V + Intel Arc 130V (integrated GPU, shared memory architecture, no dedicated VRAM)
- System RAM: 32 GB LPDDR5 (31.5 GB usable)
- Confirmed on-disk model size: 15 GB (FP16)
- Inference target: GPU
What we measured
Across 5 runs / 50 iterations, using Task Manager + our own before/after telemetry:
| Metric | Idle baseline | During inference | Delta |
|---|---|---|---|
| GPU RAM (Shared GPU Memory) | ~0.9–1.0 GB | ~7.69 GB | ~6.75 GB |
| CPU RAM (System Memory minus GPU share) | ~7.67 GB | ~22.28 GB | ~14.66 GB |
Both deltas were highly repeatable (CV% under 1% across all 50 iterations), so this is a stable pattern, not noise.
What doesn't add up
GPU RAM only grew by ~6.75 GB — about 45% of the 15 GB model — not close to the full weight size. Which components does the OpenVINO GPU plugin actually place in GPU-visible memory for this model on this device (a subset of transformer layers? KV-cache only? something else)?
CPU RAM grew by ~14.66 GB on its own, on top of the GPU-side growth. Combined CPU+GPU growth (~21.4 GB) is ~1.4x the model's actual size. Is this expected overhead (KV-cache, activation buffers, embedding/tokenizer tables, IR execution graph state), or does the CPU retain a full source copy of weights that are also mapped to GPU-shared memory — effectively double-counted on an integrated-GPU/shared-memory device?
Is there a supported way to get a component-level memory trace directly (a
benchmark_appflag, a GPU-plugin log level, an Optimum-Intel/NNCF utility) rather than inferring this from before/after system RAM readings?Is this ~45/55 GPU/CPU split specific to integrated/shared-memory GPUs, or would a discrete GPU with dedicated VRAM show the same pattern?
Happy to attach full per-iteration telemetry (CPU RAM / GPU RAM / utilization across all 50 iterations) if useful for reproduction.
Source: openvinotoolkit/openvino