-
Notifications
You must be signed in to change notification settings - Fork 15
TND instead of BSH #299
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
TND instead of BSH #299
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -57,8 +57,10 @@ def AscendCudaGraphMixin_make_buffers_cudagraph( | |||||||||||||||||||||||||
| (max_batches, num_blocks), dtype=torch.int32, device=device | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| input_buffers["q_seqlens"] = torch.ones( | ||||||||||||||||||||||||||
| max_batches, dtype=torch.int32, device=device | ||||||||||||||||||||||||||
| # q_seqlens means cu_attn actual_seq_lengths | ||||||||||||||||||||||||||
| # this buffer is only used during graph capture under decoding phase | ||||||||||||||||||||||||||
| input_buffers["q_seqlens"] = torch.arange( | ||||||||||||||||||||||||||
| 1, max_batches + 1, dtype=torch.int32 | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| input_buffers["kv_seqlens"] = torch.ones(max_batches, dtype=torch.int32) | ||||||||||||||||||||||||||
|
Comment on lines
+62
to
66
|
||||||||||||||||||||||||||
| input_buffers["q_seqlens"] = torch.arange( | |
| 1, max_batches + 1, dtype=torch.int32 | |
| ) | |
| input_buffers["kv_seqlens"] = torch.ones(max_batches, dtype=torch.int32) | |
| input_buffers["q_seqlens"] = torch.ones( | |
| max_batches, dtype=torch.int32, device=device | |
| ) | |
| input_buffers["kv_seqlens"] = torch.ones( | |
| max_batches, dtype=torch.int32, device=device | |
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # Supported torch versions: 2.3.1, 2.5.1, 2.6.0, 2.7.1, 2.8.0 | ||
| # Please install one of the supported versions manually | ||
| torch>=2.3.1,<2.9.0 | ||
| torch-npu>=2.3.1,<2.9.0 | ||
| torchvision>=0.18.1,<0.24.0 | ||
| torch>=2.3.1,<2.10.0 | ||
| torch-npu>=2.3.1,<2.10.0 | ||
| torchvision>=0.18.1,<0.25.0 | ||
| importlib-metadata | ||
| pyyaml |
Uh oh!
There was an error while loading. Please reload this page.