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
1ac3f976
"docs/vscode:/vscode.git/clone" did not exist on "285bd19433a26c8db3b20bd373bb91b7987adc40"
Commit
1ac3f976
authored
Sep 27, 2023
by
Casper Hansen
Browse files
Add exception handling
parent
bd56c301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
awq/models/mistral.py
awq/models/mistral.py
+9
-1
No files found.
awq/models/mistral.py
View file @
1ac3f976
import
logging
from
.base
import
BaseAWQForCausalLM
from
transformers.models.mistral.modeling_mistral
import
MistralDecoderLayer
,
MistralForCausalLM
try
:
from
transformers.models.mistral.modeling_mistral
import
MistralDecoderLayer
,
MistralForCausalLM
except
:
# TODO: Remove once released on PyPi
logging
.
warning
(
"You need the latest transformers 4.34.0.dev0: pip install git+https://github.com/huggingface/transformers.git"
)
MistralForCausalLM
=
None
MistralDecoderLayer
=
None
class
MistralAWQForCausalLM
(
BaseAWQForCausalLM
):
layer_type
=
"MistralDecoderLayer"
...
...
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