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
AutoAWQ
Commits
5d7b0502
"src/vscode:/vscode.git/clone" did not exist on "e9f51f2b9d7c117f772a2ee1b4bf23097c9b18a1"
Unverified
Commit
5d7b0502
authored
Apr 06, 2024
by
TechxGenus
Committed by
GitHub
Apr 06, 2024
Browse files
Fix fused models for tf >= 4.39 (#418)
parent
0fa9a2c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
awq/modules/fused/model.py
awq/modules/fused/model.py
+8
-0
setup.py
setup.py
+1
-1
No files found.
awq/modules/fused/model.py
View file @
5d7b0502
...
@@ -84,6 +84,14 @@ class LlamaLikeModel(nn.Module):
...
@@ -84,6 +84,14 @@ class LlamaLikeModel(nn.Module):
self
.
norm
=
norm
self
.
norm
=
norm
self
.
last_forward_num_tokens
=
0
self
.
last_forward_num_tokens
=
0
@
property
def
embed_tokens
(
self
):
return
self
.
embedding
@
property
def
layers
(
self
):
return
self
.
blocks
@
torch
.
inference_mode
()
@
torch
.
inference_mode
()
def
forward
(
def
forward
(
self
,
self
,
...
...
setup.py
View file @
5d7b0502
...
@@ -86,7 +86,7 @@ common_setup_kwargs = {
...
@@ -86,7 +86,7 @@ common_setup_kwargs = {
requirements
=
[
requirements
=
[
"torch>=2.0.1"
,
"torch>=2.0.1"
,
"transformers>=4.35.0
,<=4.38.2
"
,
"transformers>=4.35.0"
,
"tokenizers>=0.12.1"
,
"tokenizers>=0.12.1"
,
"typing_extensions>=4.8.0"
,
"typing_extensions>=4.8.0"
,
"accelerate"
,
"accelerate"
,
...
...
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