Skip to content

feat(pflash): add dynamic threshold for chunk selection and lower auto-mode trigger#249

Draft
howard0su wants to merge 1 commit into
Luce-Org:mainfrom
howard0su:dynamic_prefill
Draft

feat(pflash): add dynamic threshold for chunk selection and lower auto-mode trigger#249
howard0su wants to merge 1 commit into
Luce-Org:mainfrom
howard0su:dynamic_prefill

Conversation

@howard0su
Copy link
Copy Markdown
Contributor

  • Introduce score-based dynamic n_keep via DFLASH_COMPRESS_DYNAMIC_THRESHOLD env var (float alpha in (0,1)). Keeps all chunks whose mean score >= max_score * alpha, clamped to [1, min(n_chunks/2, fixed_n_keep*3)].
  • Lower pflash auto-mode token threshold from 32000 to 2000.

…to-mode trigger

    - Introduce score-based dynamic n_keep via DFLASH_COMPRESS_DYNAMIC_THRESHOLD
      env var (float alpha in (0,1)). Keeps all chunks whose mean score >=
      max_score * alpha, clamped to [1, min(n_chunks/2, fixed_n_keep*3)].
    - Lower pflash auto-mode token threshold from 32000 to 2000.
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