Skip to content

[Tokenizer] Add batched tokenization for queued requests - #144

Closed
taking-lying-flat wants to merge 2 commits into
sgl-project:mainfrom
taking-lying-flat:main
Closed

[Tokenizer] Add batched tokenization for queued requests#144
taking-lying-flat wants to merge 2 commits into
sgl-project:mainfrom
taking-lying-flat:main

Conversation

@taking-lying-flat

Copy link
Copy Markdown

Summary

  • Batch queued prompts into a single tokenizer call.
  • Preserve chat-template preprocessing and existing special-token behavior.
  • Return individual int32 tensors without padding.
  • Add tests for batched prompts, mixed chat/plain inputs, and empty batches.

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