mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[PR #1063] [MERGED] Fix TypeError when invoke KLinearCPUInfer.forward() #1546
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/ktransformers/pull/1063
Author: @aubreyli
Created: 4/7/2025
Status: ✅ Merged
Merged: 4/7/2025
Merged by: @Azure-Tang
Base:
main← Head:KLinearCPUInfer.forward-fix📝 Commits (1)
12a4c63Fix TypeError when invoke KLinearCPUInfer.forward()📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
ktransformers/operators/linear.py(+1 -1)📄 Description
Fix the following error:
File "/home/aubrey/work/ktransformers/ktransformers/operators/linear.py", line 825, in forward
y = self.generate_linear.forward(x, bsz_tensor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: KLinearCPUInfer.forward() takes 2 positional arguments but 3 were given
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.