Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
b9f0819a
Commit
b9f0819a
authored
Aug 22, 2024
by
chenxl
Browse files
None for load config
parent
1f85db3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ktransformers/server/backend/interfaces/ktransformers.py
ktransformers/server/backend/interfaces/ktransformers.py
+1
-1
No files found.
ktransformers/server/backend/interfaces/ktransformers.py
View file @
b9f0819a
...
@@ -25,7 +25,7 @@ class KTransformersInterface(TransformersInterface):
...
@@ -25,7 +25,7 @@ class KTransformersInterface(TransformersInterface):
with
torch
.
device
(
"meta"
):
with
torch
.
device
(
"meta"
):
self
.
model
=
custom_models
[
config
.
architectures
[
0
]](
config
)
self
.
model
=
custom_models
[
config
.
architectures
[
0
]](
config
)
if
default_args
.
optimize_config_path
is
not
None
:
if
default_args
.
optimize_config_path
is
None
:
optimize_rule_path
=
default_optimize_rules
[
config
.
architectures
[
0
]]
optimize_rule_path
=
default_optimize_rules
[
config
.
architectures
[
0
]]
else
:
else
:
optimize_rule_path
=
args
.
optimize_config_path
optimize_rule_path
=
args
.
optimize_config_path
...
...
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