Skip to content

Honor MAGPIE_EVAL_TOKENIZED_REQUESTS in remote-compat lm_eval model_args - #74

Open
weilei0120 wants to merge 1 commit into
mainfrom
feat/weilei/supports_token_id
Open

Honor MAGPIE_EVAL_TOKENIZED_REQUESTS in remote-compat lm_eval model_args#74
weilei0120 wants to merge 1 commit into
mainfrom
feat/weilei/supports_token_id

Conversation

@weilei0120

Copy link
Copy Markdown
Collaborator

lm_eval defaults to token-id-array prompts, which a direct sglang server accepts but a PD-disaggregated sglang_router rejects with HTTP 422, collapsing the accuracy eval. Let the model_args line append tokenized_requests when MAGPIE_EVAL_TOKENIZED_REQUESTS is set (e.g. =false on PD to send string prompts); unset/empty is byte-for-byte the previous behaviour.

lm_eval defaults to token-id-array prompts, which a direct sglang server
accepts but a PD-disaggregated sglang_router rejects with HTTP 422, collapsing
the accuracy eval. Let the model_args line append tokenized_requests when
MAGPIE_EVAL_TOKENIZED_REQUESTS is set (e.g. =false on PD to send string
prompts); unset/empty is byte-for-byte the previous behaviour.

Co-authored-by: Cursor <cursoragent@cursor.com>
@haofrank

haofrank commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Thank you! @weilei0120 Could you also add this to doc?

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.

2 participants