[GH-ISSUE #2402] 请问怎么修改上下文,最大可以是多少? #969

Closed
opened 2026-11-04 01:47:24 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @haclyok on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2402

请问怎么修改上下文,最大可以是多少?

Originally created by @haclyok on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2402 请问怎么修改上下文,最大可以是多少?
Author
Owner

@qiuzan2001 commented on GitHub (Oct 15, 2026):

修改上下文:重新运行 setup 并选择新的上下文长度,或者直接加参数(INSTALL.md「Options without questions」):

START-HERE.bat --setup                     (Windows,会再问一次上下文;Linux 用 ./setup.sh --setup)
START-HERE.bat --model IQ3_S --context 131072 --yes      (不提问,直接写入配置)

最大是多少:模型训练长度是 262,144(262K)。setup 还提供 384K 和 512K,属于实验性功能,会自动开启 yarn rope scaling(DETAILS.md「Context extension past 262K」)。上下文越长,KV 缓存需要的显存/内存越多(每个 token 约 13 KB);DETAILS.md 里也有一次 1M(--max-context 1048576,yarn 4 倍)的实测。

In English: run setup again (START-HERE.bat --setup, or --context N --yes) to change the context. The model is trained on 262,144 tokens; 384K and 512K are experimental (setup turns on yarn rope scaling itself), and each token of context costs about 13 KB of KV cache.

<!-- gh-comment-id:6184282769 --> @qiuzan2001 commented on GitHub (Oct 15, 2026): 修改上下文:重新运行 setup 并选择新的上下文长度,或者直接加参数([INSTALL.md「Options without questions」](https://github.com/Niko1221/Strata/blob/main/docs/INSTALL.md#options-without-questions)): ``` START-HERE.bat --setup (Windows,会再问一次上下文;Linux 用 ./setup.sh --setup) START-HERE.bat --model IQ3_S --context 131072 --yes (不提问,直接写入配置) ``` 最大是多少:模型训练长度是 **262,144**(262K)。setup 还提供 384K 和 512K,属于实验性功能,会自动开启 yarn rope scaling([DETAILS.md「Context extension past 262K」](https://github.com/Niko1221/Strata/blob/main/docs/DETAILS.md))。上下文越长,KV 缓存需要的显存/内存越多(每个 token 约 13 KB);DETAILS.md 里也有一次 1M(`--max-context 1048576`,yarn 4 倍)的实测。 In English: run setup again (`START-HERE.bat --setup`, or `--context N --yes`) to change the context. The model is trained on 262,144 tokens; 384K and 512K are experimental (setup turns on yarn rope scaling itself), and each token of context costs about 13 KB of KV cache.
Author
Owner

@haclyok commented on GitHub (Oct 17, 2026):

感谢,请问加大上下文会不会拖慢速度?
还有一点,我用了好多AI,使用SKILL技能时,总是会偷懒,不严格按照技能流程和标准走。也写了门禁核验等,但还是会偷懒。请问有办法让AI完全执行技能流程的规则 吗?

<!-- gh-comment-id:6230406716 --> @haclyok commented on GitHub (Oct 17, 2026): 感谢,请问加大上下文会不会拖慢速度? 还有一点,我用了好多AI,使用SKILL技能时,总是会偷懒,不严格按照技能流程和标准走。也写了门禁核验等,但还是会偷懒。请问有办法让AI完全执行技能流程的规则 吗?
Author
Owner

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

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271011989 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#969
No description provided.