Skip to content

SWF(bug): reject chat min_p above one - #76

Merged
maplepaladin73 merged 1 commit into
mainfrom
devin/1795398548-chat-min-p-range
Nov 23, 2026
Merged

maplepaladin73 merged 1 commit into
mainfrom
devin/1795398548-chat-min-p-range

Conversation

@maplepaladin73

@maplepaladin73 maplepaladin73 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Chat completions now return HTTP 400 when min_p is supplied outside the inclusive range [0, 1].

Root cause: chat_phases::validate_input checked temperature, top-p, and penalties, but omitted min_p, so an out-of-range value flowed through the chat IR into sampling.

Test plan

Try it (CPU, with bash scripts/ci_gpu_stubs.sh run once):

ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo test -p spark-server --bin spark sampling_min_p_range
  • Before: sampling_min_p_range ... FAILED — min_p=1.5 should be rejected.
  • After: sampling_min_p_range ... ok — 0.0 and 1.0 are accepted; 1.5 and -0.1 return HTTP 400 with error.param = "min_p".
  • CPU server suite: 3258 passed; 0 failed; 14 ignored (cargo test -p spark-server --bin spark with the same environment).
  • cargo fmt --all -- --check
  • ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo clippy --workspace --tests
  • bash scripts/check-license-headers.sh and typos
  • Added a regression test covering both boundaries and both out-of-range directions.
  • Untested: live HTTP/model inference and GPU validation.

CLA


Software Factory opened this PR for Robert
Implemented in session Reject chat min_p above one
Review with Devin · Open in Devin Desktop


Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@maplepaladin73
maplepaladin73 merged commit f1e887c into main Nov 23, 2026
1 check passed
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