Inconsistent memory consumption?
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 152
- Avg merge
- 4h 14m
- Merged PRs (30d)
- 11
Description
This might not be an issue but a misunderstanding.
I run FastFlowLM on a Ryzen AI 7 360 PRO NPU with 64GB VRAM.
The purpose is to run visual tasks on NPU and I am selecting a model for perf/RAM among the QWen3.5 family. I try 2B, 4B, and 9B models with 4k/8k context window size to concisely read short text from a 1080x720pix PNG image.
What is confusing: On model load, the consumed RAM is slightly different - OK, but when I run inference on the models they all end up with the same 27GB consumed RAM, which is very confusing. Also the context window size does not have an effect. I expected to see less RAM consumed by smaller models.
Here are RAM consumption details:
- QWen3.5-2B
- On load: 4.2GB
- On inference: 27GB
- QWen3.5-4B
- On load: 5.5GB
- On inference: 27GB
- QWen3.5-9B
- On load: 9.0GB
- On inference: 27GB
Am I supposed to expect the same RAM consumption, no matter the LLM size: 2B/4B/9B?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported RAM measurements for the QWen3.5 2B, 4B, and 9B models with 4k and 8k contexts, recording usage at load and inference. Trace the inference and memory-management paths involved; done means determining whether the shared 27GB usage is expected or isolating a reproducible defect.
Written by the indexing model from the issue text.
Assessment
- Domain
- ai, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100