Skip to content

test: update stale orpheus modular test to the decode_finished contract - #205

Open
vasilevklart wants to merge 1 commit into
mstar-project:mainfrom
vasilevklart:fix/orpheus-modular-test
Open

test: update stale orpheus modular test to the decode_finished contract#205
vasilevklart wants to merge 1 commit into
mstar-project:mainfrom
vasilevklart:fix/orpheus-modular-test

Conversation

@vasilevklart

@vasilevklart vasilevklart commented Aug 3, 2026

Copy link
Copy Markdown

The prefill transition test fails on clean main with KeyError: 'audio_token_count' (test/modular/test_orpheus_model.py:38)

Looks like the test predates the dynamic loop stop, the model doesnt seed audio_token_count/decode_finished kwargs at the prefill->decode transition anymore.. decode_finished only gets set when the loop exits (orpheus_model.py:240). So I updated the assertions to the current contract (transition leaves kwargs untouched, request not done) and dropped the dead audio_token_count input plus an unused helper.

Before: 1 failed 1 passed -> after: 2 passed with pytest test/modular/test_orpheus_model.py

Part of the bigger suite drift in #132 , just fixing the file the adding models doc points you at first

The prefill-transition test predates the dynamic loop-stop: the model no
longer seeds audio_token_count/decode_finished kwargs at the prefill->decode
transition (decode_finished is set only at loop exit). Assert the current
contract instead; drop the dead audio_token_count input and an unused helper.
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