ROCm / ROCm/FastFlowLM

Inconsistent memory consumption?

Open
#720 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.