Skip to content
Discussion options

You must be logged in to vote

Based on current main, Req is now typed as if origin_input_ids is already an array[int], not a plain list[int]. In schedule_batch.py the constructor signature is origin_input_ids: array[int], output_ids is initialized as array("q"), and _refresh_fill_ids() rebuilds with self.origin_input_ids + self.output_ids. So a plain list coming in from the SMG path will hit exactly the failure you saw once decode output is an array.

For the integration, I would treat the gateway/adapter boundary as the first place to fix it: normalize the token ids before constructing Req, so the scheduler keeps one internal representation. That makes the ownership clearer if SMG is bypassing the normal HTTP/tokenize…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Galmut
Comment options

@Galmut
Comment options

Answer selected by Galmut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants