Skip to content

Improve error handling - #433

Merged
merrymercy merged 1 commit into
mainfrom
error_handling
May 13, 2024
Merged

merrymercy merged 1 commit into
mainfrom
error_handling

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

No description provided.

@merrymercy
merrymercy merged commit 562b885 into main May 13, 2024
@merrymercy
merrymercy deleted the error_handling branch May 13, 2024 03:49
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
vschandramourya pushed a commit to vschandramourya/sglang that referenced this pull request Feb 3, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
HanHan009527 pushed a commit to HanHan009527/sglang that referenced this pull request Apr 7, 2026
WhiteCmile added a commit to WhiteCmile/sglang that referenced this pull request Dec 1, 2026
…t limit) (issue sgl-project#433)

Slimming wave 2, sgl-project#416 plan PR-10 + PR-11.  Since sgl-project#420 DFlash always uses
native ingress, both switches only ever produce a startup error in a
non-default value, so the env reads and the credit lifecycle go:

- DT_DRAFT_SLOT_DECOUPLE: `self._slot_decouple = self._is_dflash`.  The
  compute-busy staging code (_feature_staging_compute_busy, per-slot
  scratch) stays — it is the live path for eagle3/standalone, where
  _slot_decouple is False.
- DT_DRAFT_ADMISSION: the cuda-ipc proposal-credit lifecycle is deleted
  (_acquire/_release/_available_direct_proposal_admission,
  direct_proposal_admission_limit, _direct_proposal_admission_inflight,
  the admission_credit fields of PendingEagle3Completion and
  PendingCandidatePush, and DT_DIRECT_PROPOSAL_ADMISSION_LIMIT with its
  resolver).  Under the batch bound the cuda-ipc path has no admission
  resource, so _proposal_admission_blocked /
  _proposal_wave_buffer_exhausted / _take_batch's cuda-ipc arm and the
  free_result_rows cuda-ipc arm report "never blocked" / the registered
  constant, which is what the default already did.  _available_dflash_result_slots
  and its reservation accounting stay: non-cuda-ipc uses them.
- The require check keeps only the DT_RING_CONFIRMATION clause (deleted
  in the next issue).

No behaviour change on any default path.  The credit test file becomes the
smaller admission contract test (the cuda-ipc gates never block; the mmap
pool still gates on raw emptiness); the confirmation-free capacity fixture
drops its stub of the deleted method.
WhiteCmile added a commit to WhiteCmile/sglang that referenced this pull request Dec 1, 2026
… (issue sgl-project#435 review p2)

test_cuda_ipc_proposal_admission_never_blocks only asserted the two
hard-coded 'return False' branches added by sgl-project#433 and passes however the
admission is reduced, so it pins nothing.  The mmap pool-emptiness
contract test stays.
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