Skip to content

[Feature][Hardware][TPU]:Reduce the compile time #14582

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

Closed
1 task done
yaochengji opened this issue Mar 10, 2025 · 1 comment
Closed
1 task done

[Feature][Hardware][TPU]:Reduce the compile time #14582

yaochengji opened this issue Mar 10, 2025 · 1 comment
Assignees
Labels
feature request New feature or request tpu Related to Google TPUs

Comments

@yaochengji
Copy link
Collaborator

🚀 The feature, motivation and pitch

After the fix of #14310,

We have num_token_bucket compilations for the main model and num_token_bucket x num_reqs_bucket for the logits processor.

We can make some improvement on this, as the num_token_bucket x num_reqs_bucket only happens on hidden_states[logits_indices], where we select part of the hidden states. Therefore, we can partition the graph to 3 parts:

main model: num_token_bucket
hidden_states[logits_indices]: num_token_bucket x num_reqs_bucket
logits: num_reqs_bucket

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@yaochengji yaochengji added the feature request New feature or request label Mar 10, 2025
@robertgshaw2-redhat robertgshaw2-redhat added the tpu Related to Google TPUs label Mar 10, 2025
@yaochengji
Copy link
Collaborator Author

Fixed by #16275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request tpu Related to Google TPUs
Projects
None yet
Development

No branches or pull requests

3 participants