Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Chinese character streaming when the last char is half Chinese word. #95

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

haotian-liu
Copy link
Collaborator

Currently when the last word is Chinese, but only the first-half, the streaming will be delayed until the next chunk containing a full word -- occasionally delayed by three chunks or more.

Add a check if the penultimate token is a full Chinese word and stream the full words in that case.

@haotian-liu haotian-liu changed the title Improve Chinese character streaming when the last char is half-word. Improve Chinese character streaming when the last char is half Chinese word. Jan 24, 2024
@Ying1123 Ying1123 merged commit d3fc86a into sgl-project:main Jan 24, 2024
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.

None yet

2 participants