[PR #134] [CLOSED] setup: count the 3-bit models' 262K context against RAM, not a fixed 90 GB #2476

Closed
opened 2026-11-04 02:00:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/134
Author: @architectds
Created: 9/29/2026
Status: ❌ Closed

Base: main ← Head: pr/context-ram


📝 Commits (1)

  • fe4c97a setup: the 3-bit models' 262K context is counted against RAM, not a fixed 90 GB

📊 Changes

1 file changed (+8 additions, -3 deletions)

View changed files

📝 setup.py (+8 -3)

📄 Description

The second piece from #103, as you suggested.

setup.py cuts IQ3_S and IQ3_XXS asked for 262K down to 128K on any machine under 90 GB of RAM. With KV streaming, the context costs mostly RAM, so this PR counts the need instead: the experts' arena, plus the context's 8-bit KV (~13.7 KB a token, the same figure setup uses for --kv-resident), plus 24 GB of room for everything else.

RAM IQ3_XXS at 262K (needs 70.5 GB) IQ3_S at 262K (needs 77.9 GB)
64 GB PC (68.7 GB) 128K, as before 128K, as before
83.5 GiB box (89.6 GB) 262K (was cut to 128K) 262K (was cut to 128K)

Measured: a Colab A100-40G (83.5 GiB of RAM) runs IQ3_S at 262K with images in 56 GiB.

The check still only applies above 128K, and it still uses the 8-bit KV figure, because the KV precision is asked after the context. Nothing else changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/134 **Author:** [@architectds](https://github.com/architectds) **Created:** 9/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/context-ram` --- ### 📝 Commits (1) - [`fe4c97a`](https://github.com/Niko1221/Strata/commit/fe4c97ad48032fc2f1eef73d40ada193149966ea) setup: the 3-bit models' 262K context is counted against RAM, not a fixed 90 GB ### 📊 Changes **1 file changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+8 -3) </details> ### 📄 Description The second piece from #103, as you suggested. `setup.py` cuts IQ3_S and IQ3_XXS asked for 262K down to 128K on any machine under 90 GB of RAM. With KV streaming, the context costs mostly RAM, so this PR counts the need instead: the experts' arena, plus the context's 8-bit KV (~13.7 KB a token, the same figure setup uses for `--kv-resident`), plus 24 GB of room for everything else. | RAM | IQ3_XXS at 262K (needs 70.5 GB) | IQ3_S at 262K (needs 77.9 GB) | |---|---|---| | 64 GB PC (68.7 GB) | 128K, as before | 128K, as before | | 83.5 GiB box (89.6 GB) | 262K (was cut to 128K) | 262K (was cut to 128K) | Measured: a Colab A100-40G (83.5 GiB of RAM) runs IQ3_S at 262K with images in 56 GiB. The check still only applies above 128K, and it still uses the 8-bit KV figure, because the KV precision is asked after the context. Nothing else changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:31 +07:00
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#2476
No description provided.