-
Notifications
You must be signed in to change notification settings - Fork 166
Fix nt #1738
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
base: main
Are you sure you want to change the base?
Conversation
| exp_bias: Optional[Tensor] = None, | ||
| activation: Optional[int] = 0, | ||
| block_m: Optional[int] = 32, | ||
| b_nt_type: Optional[int] = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make args signature aligned, for example align with line 343
| activation: Optional[int] = 0, | ||
| block_m: Optional[int] = 32, | ||
| b_nt_type: Optional[int] = 0, | ||
| split_k: Optional[int] = 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"b_nt_type, split_k" or "split_k,b_nt_type" ?
|
|
||
|
|
||
| @functools.lru_cache(maxsize=2048) | ||
| def get_ksplit(token, topk, expert, inter_dim, model_dim): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate with line 514?
|
|
||
| if split_k > 1: | ||
| if activation == ActivationType.Silu: | ||
| aiter.silu_and_mul(out, tmp_out.to(out.dtype)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove .to(out.dtype)?
| if max_diff_exp_sums < tolerance: | ||
| print( | ||
| f"✅ exp_sums TEST PASSED: Max difference ({max_diff_exp_sums:.6e}) < tolerance ({tolerance})" | ||
| f"? exp_sums TEST PASSED: Max difference ({max_diff_exp_sums:.6e}) < tolerance ({tolerance})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
| head_dim=head_dim, | ||
| ) | ||
|
|
||
| print(f" ✓ [{idx}/{total}] {kernel_type} test passed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert these?
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist