[GH-ISSUE #4523] [engine] The 1.52 version engine is using too much memory #2036

Closed
opened 2026-11-04 01:56:08 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @guohongze on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4523

This is for the Q4KXL version model. My machine has 96GB of local video memory and 128GB of RAM. The 1.52 version engine is using too much memory; my 128GB of RAM is full. I've reverted to the 1.50 version engine.

Originally created by @guohongze on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4523 This is for the Q4KXL version model. My machine has 96GB of local video memory and 128GB of RAM. The 1.52 version engine is using too much memory; my 128GB of RAM is full. I've reverted to the 1.50 version engine.
bsakaguchi 2026-11-04 01:56:08 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 28, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6476530464 --> @github-actions[bot] commented on GitHub (Oct 28, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@h-narazaki commented on GitHub (Oct 29, 2026):

I can reproduce this issue on my system as well. The problem occurs with v0.1.52 but not with v0.1.50.

System specifications

  • CPU: AMD Ryzen 9 5900XT
  • RAM: 128 GB DDR4
  • GPU: AMD Radeon RX 9060 XT (16 GB VRAM)
  • OS: Windows 11

Model

  • Model family: Qwen3.8-FN
  • Quantizations tested: IQ3_S and UD-IQ4_XS

Memory usage comparison

Before launching the model, total system RAM usage is approximately 26 GB. The following measurements were taken after loading the model and running a simple greeting prompt.

Version Quantization Total system RAM usage / Result
v0.1.50 IQ3_S 79.8 GB — works normally
v0.1.50 UD-IQ4_XS 86.8 GB — works normally
v0.1.52 IQ3_S 105 GB — runs, but uses significantly more RAM
v0.1.52 UD-IQ4_XS Fails due to insufficient memory

Both quantizations work normally with v0.1.50 on the same system, whereas v0.1.52 uses significantly more RAM with IQ3_S and runs out of memory when loading UD-IQ4_XS.

This suggests a regression in RAM usage between v0.1.50 and v0.1.52. I have not yet identified the cause.

<!-- gh-comment-id:6487236212 --> @h-narazaki commented on GitHub (Oct 29, 2026): I can reproduce this issue on my system as well. The problem occurs with v0.1.52 but not with v0.1.50. **System specifications** - CPU: AMD Ryzen 9 5900XT - RAM: 128 GB DDR4 - GPU: AMD Radeon RX 9060 XT (16 GB VRAM) - OS: Windows 11 **Model** - Model family: Qwen3.8-FN - Quantizations tested: IQ3_S and UD-IQ4_XS **Memory usage comparison** Before launching the model, total system RAM usage is approximately 26 GB. The following measurements were taken after loading the model and running a simple greeting prompt. | Version | Quantization | Total system RAM usage / Result | |---|---|---| | v0.1.50 | IQ3_S | 79.8 GB — works normally | | v0.1.50 | UD-IQ4_XS | 86.8 GB — works normally | | v0.1.52 | IQ3_S | 105 GB — runs, but uses significantly more RAM | | v0.1.52 | UD-IQ4_XS | Fails due to insufficient memory | Both quantizations work normally with v0.1.50 on the same system, whereas v0.1.52 uses significantly more RAM with IQ3_S and runs out of memory when loading UD-IQ4_XS. This suggests a regression in RAM usage between v0.1.50 and v0.1.52. I have not yet identified the cause.
Author
Owner

@xtremexp commented on GitHub (Oct 29, 2026):

I got the same issue with 0.1.52 RAM usage has been increased by 30GB on swift-1.5-iq3_s model with 0.1.52 (fine with 0.1.50).

System specifications

  • CPU: AMD Ryzen 7 9800X3D
  • RAM: 128 GB DDR5
  • GPU: NVIDIA RTX 5070TI (16 GB VRAM)
  • OS: Windows 11
<!-- gh-comment-id:6489210671 --> @xtremexp commented on GitHub (Oct 29, 2026): I got the same issue with 0.1.52 RAM usage has been increased by 30GB on swift-1.5-iq3_s model with 0.1.52 (fine with 0.1.50). System specifications - CPU: AMD Ryzen 7 9800X3D - RAM: 128 GB DDR5 - GPU: NVIDIA RTX 5070TI (16 GB VRAM) - OS: Windows 11
Author
Owner

@zhujiammy commented on GitHub (Oct 29, 2026):

"STRATA_PLE_AUTO_RAM": "0" Using this will reduce the memory usage without affecting the model quality.

<!-- gh-comment-id:6490927853 --> @zhujiammy commented on GitHub (Oct 29, 2026): "STRATA_PLE_AUTO_RAM": "0" Using this will reduce the memory usage without affecting the model quality.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

This matches the PLE residency policy that 0.2.7 (engine 0.1.52) turned on: it locks the PLE table in RAM at start, which is why the memory use is higher than with 0.1.50. STRATA_PLE_AUTO_RAM=0 (as zhujiammy found) gives the 0.1.50 behaviour; in the Terminal: strata launch --set STRATA_PLE_AUTO_RAM=0. To confirm, look in the engine log for "--ple-io ram chosen by the residency policy". Is that line there?

<!-- gh-comment-id:6492039851 --> @Niko1221 commented on GitHub (Oct 29, 2026): This matches the PLE residency policy that 0.2.7 (engine 0.1.52) turned on: it locks the PLE table in RAM at start, which is why the memory use is higher than with 0.1.50. `STRATA_PLE_AUTO_RAM=0` (as zhujiammy found) gives the 0.1.50 behaviour; in the Terminal: `strata launch --set STRATA_PLE_AUTO_RAM=0`. To confirm, look in the engine log for "--ple-io ram chosen by the residency policy". Is that line there?
Author
Owner

@Gvard-Windlass commented on GitHub (Oct 31, 2026):

Had this issue, both this discussion, QFN analysis and my testing confirm that adding {..., "--ple-io", "mmap", ...} to Native engine settings -> JSON solves the issue.

Log without it:

strata generate: --ple-io ram chosen by the residency policy (the table is 26.8 GiB,
  the expert arena still to fill 46.8 GiB and 82.1 GiB of RAM is available;
  STRATA_PLE_AUTO_RAM=0 keeps the ...
strata generate: PLE table locked in RAM (--ple-io ram chosen by the residency policy) in 16.7 s
strata generate: PLE on, table 320001536 rows of ...\IQ3_S-00002-of-00002.gguf

<!-- gh-comment-id:6545644836 --> @Gvard-Windlass commented on GitHub (Oct 31, 2026): Had this issue, both this discussion, QFN analysis and my testing confirm that adding {..., `"--ple-io", "mmap"`, ...} to `Native engine settings -> JSON` solves the issue. Log without it: > strata generate: --ple-io ram chosen by the residency policy (the table is 26.8 GiB,\ &emsp;&emsp;the expert arena still to fill 46.8 GiB and 82.1 GiB of RAM is available;\ &emsp;&emsp;STRATA_PLE_AUTO_RAM=0 keeps the ...\ strata generate: PLE table locked in RAM (--ple-io ram chosen by the residency policy) in 16.7 s\ strata generate: PLE on, table 320001536 rows of ...\IQ3_S-00002-of-00002.gguf
Author
Owner

@guohongze commented on GitHub (Nov 1, 2026):

thanks, edit strata-unsloth-ud-q4_k_xl.json file and reboot engine it's done

8. Had this issue, both this discussion, QFN analysis and my testing confirm that adding {..., "--ple-io", "mmap", ...} to Native engine settings -> JSON solves the issue.
Log without it:
> strata generate: --ple-io ram chosen by the residency policy (the table is 26.8 GiB,
>   the expert arena still to fill 46.8 GiB and 82.1 GiB of RAM is available;
>   STRATA_PLE_AUTO_RAM=0 keeps the ...
> strata generate: PLE table locked in RAM (--ple-io ram chosen by the residency policy) in 16.7 s
> strata generate: PLE on, table 320001536 rows of ...\IQ3_S-00002-of-00002.gguf

<!-- gh-comment-id:6553923878 --> @guohongze commented on GitHub (Nov 1, 2026): thanks, edit strata-unsloth-ud-q4_k_xl.json file and reboot engine it's done > 8\. Had this issue, both this discussion, QFN analysis and my testing confirm that adding {..., `"--ple-io", "mmap"`, ...} to `Native engine settings -> JSON` solves the issue. > Log without it: > > strata generate: --ple-io ram chosen by the residency policy (the table is 26.8 GiB, > >   the expert arena still to fill 46.8 GiB and 82.1 GiB of RAM is available; > >   STRATA_PLE_AUTO_RAM=0 keeps the ... > > strata generate: PLE table locked in RAM (--ple-io ram chosen by the residency policy) in 16.7 s > > strata generate: PLE on, table 320001536 rows of ...\IQ3_S-00002-of-00002.gguf
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2036
No description provided.