forked from hpcaitech/ColossalAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug FIx] import llama context ops fix (hpcaitech#4524)
* added _vllm_rms_norm * change place * added tests * added tests * modify * adding kernels * added tests: * adding kernels * modify * added * updating kernels * adding tests * added tests * kernel change * submit * modify * added * edit comments * change name * change commnets and fix import * add * added * fix * add ops into init.py * add
- Loading branch information
1 parent
57b5f25
commit 02c2409
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
from .cuda_native import FusedScaleMaskSoftmax, LayerNorm, MultiHeadAttention | ||
from .triton import llama_context_attn_fwd, bloom_context_attn_fwd | ||
from .triton import softmax | ||
from .triton import copy_kv_cache_to_dest | ||
|
||
__all__ = [ | ||
"LayerNorm", | ||
"FusedScaleMaskSoftmax", | ||
"MultiHeadAttention", | ||
"llama_context_attn_fwd", | ||
"bloom_context_attn_fwd", | ||
"softmax", | ||
"copy_kv_cache_to_dest", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .context_attention import llama_context_attn_fwd, bloom_context_attn_fwd | ||
from .softmax import softmax | ||
from .copy_kv_cache_dest import copy_kv_cache_to_dest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters