Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
68fcaa22
Unverified
Commit
68fcaa22
authored
Nov 23, 2023
by
Xuanlei Zhao
Committed by
GitHub
Nov 23, 2023
Browse files
remove duplicate import (#5100)
parent
e53e729d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
colossalai/shardformer/modeling/llama.py
colossalai/shardformer/modeling/llama.py
+0
-2
No files found.
colossalai/shardformer/modeling/llama.py
View file @
68fcaa22
...
@@ -413,8 +413,6 @@ def get_llama_flash_attention_forward():
...
@@ -413,8 +413,6 @@ def get_llama_flash_attention_forward():
warnings
.
warn
(
"using llamav1, llamav1 hasn't repeat_kv function"
)
warnings
.
warn
(
"using llamav1, llamav1 hasn't repeat_kv function"
)
llama_version
=
1
llama_version
=
1
from
colossalai.kernel.cuda_native
import
AttnMaskType
,
ColoAttention
def
forward
(
def
forward
(
self
:
LlamaAttention
,
self
:
LlamaAttention
,
hidden_states
:
torch
.
Tensor
,
hidden_states
:
torch
.
Tensor
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment