[GH-ISSUE #46] 5090 not using all available vram + notes for Arch #25

Closed
opened 2026-11-04 01:39:08 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @siganos on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/46

Thanks a lot for you effort, this is a great project.
With limited tuning, I can get 100-120+ tokens/second.

The server uses about 20.Gb of vram and to the best of my knowledge there is no knob to make it use the full amount of vram. It seems that the number of cached experts is fixed in data/expert-profile.bin and there is no way to increase it since in json the expert-cache number is ignored. Also, I couldn’t figure out how to produce a new expert-profile.bin.

Regarding arch-linux, there is no reason to crash the setup.py if the user doesn’t use ubuntu. I commented out the check for ubuntu and it works fine.
In the current version 0.13.0, I had to add #include in src/core/verify.cpp for it to compile though.

Also, in linux after a pull when I run setup.sh it just starts the old executable. I build manually and then copy the strata executable to engine.

Originally created by @siganos on GitHub (Sep 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/46 Thanks a lot for you effort, this is a great project. With limited tuning, I can get 100-120+ tokens/second. The server uses about 20.Gb of vram and to the best of my knowledge there is no knob to make it use the full amount of vram. It seems that the number of cached experts is fixed in data/expert-profile.bin and there is no way to increase it since in json the expert-cache number is ignored. Also, I couldn’t figure out how to produce a new expert-profile.bin. Regarding arch-linux, there is no reason to crash the setup.py if the user doesn’t use ubuntu. I commented out the check for ubuntu and it works fine. In the current version 0.13.0, I had to add #include <cmath> in src/core/verify.cpp for it to compile though. Also, in linux after a pull when I run setup.sh it just starts the old executable. I build manually and then copy the strata executable to engine.
Author
Owner

@Niko1221 commented on GitHub (Sep 28, 2026):

Thank you - three real problems:

  • Cache stopped at 8,000 slots: the profile ranked only 8,000 experts, and --expert-cache auto never went past the ranked list. 0.1.14's profile ranks all 24,576 (the first 8,000 unchanged), so a 5090 fills its VRAM. To build your own from your prompts: tools/make_profile.py (run the engine once with --dump-routing trace.bin, then python tools/make_profile.py trace.bin --out my-profile.bin, and point --expert-profile at it). --expert-cache N with a number works as a cap.
  • Arch: setup looked for nvcc only on PATH and in /usr/local/cuda*; Arch's is in /opt/cuda, so it thought CUDA was missing and went for the Ubuntu-only installer. It now looks in /opt/cuda* too.
  • git pull -> the old engine: that was the <cmath> compile error (#49): setup kept the old engine when the new one did not compile. Fixed; and setup now also notices an engine kept that way (it read --prefill auto, which the old engine does not understand).

Closing with 0.1.14 - please reopen if any of the three still happens.

<!-- gh-comment-id:5867763392 --> @Niko1221 commented on GitHub (Sep 28, 2026): Thank you - three real problems: - **Cache stopped at 8,000 slots:** the profile ranked only 8,000 experts, and `--expert-cache auto` never went past the ranked list. 0.1.14's profile ranks all 24,576 (the first 8,000 unchanged), so a 5090 fills its VRAM. To build your own from your prompts: `tools/make_profile.py` (run the engine once with `--dump-routing trace.bin`, then `python tools/make_profile.py trace.bin --out my-profile.bin`, and point `--expert-profile` at it). `--expert-cache N` with a number works as a cap. - **Arch:** setup looked for nvcc only on PATH and in /usr/local/cuda*; Arch's is in /opt/cuda, so it thought CUDA was missing and went for the Ubuntu-only installer. It now looks in /opt/cuda* too. - **git pull -> the old engine:** that was the `<cmath>` compile error (#49): setup kept the old engine when the new one did not compile. Fixed; and setup now also notices an engine kept that way (it read `--prefill auto`, which the old engine does not understand). Closing with 0.1.14 - please reopen if any of the three still happens.
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#25
No description provided.