Skip to content

Commit 7ce448b

Browse files
authored
fix: minor fix after #1384 (#1476)
<!-- .github/pull_request_template.md --> ## 📌 Description <!-- What does this PR do? Briefly describe the changes and why they’re needed. --> ## 🔍 Related Issues <!-- Link any related issues here --> ## 🚀 Pull Request Checklist Thank you for contributing to FlashInfer! Before we review your pull request, please make sure the following items are complete. ### ✅ Pre-commit Checks - [ ] I have installed `pre-commit` by running `pip install pre-commit` (or used your preferred method). - [ ] I have installed the hooks with `pre-commit install`. - [ ] I have run the hooks manually with `pre-commit run --all-files` and fixed any reported issues. > If you are unsure about how to set up `pre-commit`, see [the pre-commit documentation](https://pre-commit.com/). ## 🧪 Tests - [ ] Tests have been added or updated as needed. - [ ] All tests are passing (`unittest`, etc.). ## Reviewer Notes <!-- Optional: anything you'd like reviewers to focus on, concerns, etc. -->
1 parent 1e62f1a commit 7ce448b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flashinfer/prefill.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,8 @@ def run(
20962096
lse=lse,
20972097
)
20982098
else:
2099-
assert self._plan_info is not None, "plan info is not initialized"
2099+
if self._backend != "trtllm-gen":
2100+
assert self._plan_info is not None, "plan info is not initialized"
21002101
run_args = [
21012102
self._float_workspace_buffer,
21022103
self._int_workspace_buffer,

0 commit comments

Comments
 (0)