Skip to content

Increase the capacity of the memory pool - #643

Merged
Ying1123 merged 3 commits into
mainfrom
fix-memory-pool
Jul 17, 2024
Merged

Ying1123 merged 3 commits into
mainfrom
fix-memory-pool

Conversation

@Ying1123

Copy link
Copy Markdown
Contributor

Increase the capacity of the memory pool to avoid OOM

@Ying1123
Ying1123 merged commit 476584c into main Jul 17, 2024
@Ying1123
Ying1123 deleted the fix-memory-pool branch July 17, 2024 22:44
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
cen121212 pushed a commit to cen121212/sglang that referenced this pull request Nov 10, 2025
<!-- Thank you for your contribution! Please follow these guidelines to
enhance your pull request. If anything is unclear, submit your PR and
reach out to maintainers for assistance. Join our Slack community at
https://slack.sglang.ai to discuss further. -->

## Motivation

<!-- Describe the purpose and goals of this pull request. -->

## Modifications

<!-- Detail the changes made in this pull request. -->

## Accuracy Tests

<!-- If this pull request affects model outputs (e.g., changes to the
kernel or model forward code), provide accuracy test results. -->

## Benchmarking and Profiling

<!-- If this pull request impacts inference speed, provide benchmarking
and profiling results. -->

## Checklist

- [ ] Format your code according to the [Format code with
pre-commit](https://docs.sglang.ai/developer_guide/contribution_guide.html#format-code-with-pre-commit).
- [ ] Add unit tests according to the [Run and add unit
tests](https://docs.sglang.ai/developer_guide/contribution_guide.html#run-and-add-unit-tests).
- [ ] Update documentation according to [Write
documentations](https://docs.sglang.ai/developer_guide/contribution_guide.html#write-documentations).
- [ ] Provide accuracy and speed benchmark results according to [Test
the
accuracy](https://docs.sglang.ai/developer_guide/contribution_guide.html#test-the-accuracy)
and [Benchmark the
speed](https://docs.sglang.ai/developer_guide/contribution_guide.html#benchmark-the-speed).
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
… bundle, errors first

Per-bug verdict (fixed / refused / recipe-gated), the evidence each rests
on, and what was deliberately NOT done. The recipes are the honest part:
the two-instance PD boot for a general non-divisible split, the GGUF
corpus sweep for sgl-project#647's one-entry table, and the single GPU boot that
sgl-project#647 and sgl-project#644 both still need.

Records three things the next shift would otherwise re-derive: that a
parse-time gate for sgl-project#643 cannot exist (a PD arm's ServerArgs never names
the peer's TP size), that compute_head_slice_params cannot be repaired in
place (its return type is the wall), and that a mincore test cannot see
sgl-project#644 (it measures file pages; the leak is anon).

Also pins a pre-existing red so it is not later misread as a regression
from this branch: unit/distributed/test_uneven_dcp_pool_geometry.py and
test_uneven_tp_memory.py are 8 failed / 40 passed on BOTH the pristine
base aca5037 (measured in a scratch worktree) and this branch.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
…e-existing distributed red with both-tree numbers

The unit/distributed reds are now measured on BOTH trees rather than
asserted: whole-directory unit/server_args + unit/distributed gives
22 failed / 3303 passed / 12 skipped / 1048 subtests on the pristine base
aca5037 (scratch worktree, since git stash is not available here) and
the identical figure on this branch. Narrowed to the two owning files,
8 failed / 40 passed on both.

Recorded so a later reader cannot mistake them for a regression from this
bundle, and flagged as something to file rather than tolerate -- a red in
a directory people run trains readers to ignore red.

Also adds the single-boot validation recipe sgl-project#647 and sgl-project#644 both still need
(load-time gate assertion, behaviour diff for sgl-project#647 where a DIFFERENCE is
the pass condition, host-RSS plateau comparison for sgl-project#644 where byte
IDENTITY is the pass condition, and the ordering that keeps the two from
being confused for each other).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant