Repository navigation
feat(dflash): --prefill-skip-park for 32 GB+ GPUs - #127
Merged
Merged
Conversation
The PFlash compress flow parks the target + draft to VRAM-backed scratch before loading the drafter, then restores them after scoring. The park/restore protects 24 GB cards (target ~16 GB Q4_K_M + draft ~3 GB + drafter KV ~1.3 GB + BSA scratch ~600 MB exceeds 24 GB without it) but adds ~2 s of fixed cost per compress call. On a 32 GB card (RTX 5090) all three models fit co-resident, so the park/restore round trip is pure overhead. Plumbs a `skip_park` flag from CLI to daemon: - `--prefill-skip-park` argparse flag (default off, behaviour unchanged for existing users). - `PrefillConfig.skip_park` carries the choice through both server.py and server_tools.py compress paths. - `compress_text_via_daemon` skips the `park target / park draft` and `free drafter / unpark target / unpark draft` round-trips when `skip_park=True`. - Server start sets `DFLASH_COMPRESS_NO_PARK=1` in the daemon env when the flag is on; daemon `compress` handler then leaves the scorer resident, avoiding the ~2 s reload on every subsequent request. The flag is opt-in. Users on 24 GB cards who pass it will OOM during compress; the help text calls out the 32 GB minimum.
Contributor
|
@phazei thanks for enabling faster execution for >24 gb cards! |
smpurkis
pushed a commit
to smpurkis/lucebox-hub
that referenced
this pull request
May 10, 2026
…ge-vram feat(dflash): --prefill-skip-park for 32 GB+ GPUs
oliveagle
pushed a commit
to oliveagle/lucebox-hub
that referenced
this pull request
May 22, 2026
…ge-vram feat(dflash): --prefill-skip-park for 32 GB+ GPUs
oliveagle
pushed a commit
to oliveagle/lucebox-hub
that referenced
this pull request
May 22, 2026
…ge-vram feat(dflash): --prefill-skip-park for 32 GB+ GPUs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PFlash compress flow parks the target + draft to VRAM-backed scratch before loading the drafter, then restores them after scoring. The park/restore protects 24 GB cards (target ~16 GB Q4_K_M + draft ~3 GB + drafter KV ~1.3 GB + BSA scratch ~600 MB exceeds 24 GB without it) but adds like 9 s of fixed cost per compress call.
On a 32 GB card (RTX 5090) all three models fit co-resident, so the park/restore round trip is pure overhead.
Plumbs a
skip_parkflag from CLI to daemon:--prefill-skip-parkargparse flag (default off, behaviour unchanged for existing users).PrefillConfig.skip_parkcarries the choice through both server.py and server_tools.py compress paths.compress_text_via_daemonskips thepark target / park draftandfree drafter / unpark target / unpark draftround-trips whenskip_park=True.DFLASH_COMPRESS_NO_PARK=1in the daemon env when the flag is on; daemoncompresshandler then leaves the scorer resident, avoiding the ~2 s reload on every subsequent request.The flag is opt-in. Users on 24 GB cards who pass it will OOM during compress; the help text calls out the 32 GB minimum.