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
0f054fe4
Unverified
Commit
0f054fe4
authored
Aug 22, 2024
by
UnicornChan
Committed by
GitHub
Aug 22, 2024
Browse files
Merge pull request #52 from UnicornChan/fix-bug-load-config
Fix: None for load config
parents
1f85db3d
b9f0819a
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 @
0f054fe4
...
...
@@ -25,7 +25,7 @@ class KTransformersInterface(TransformersInterface):
with
torch
.
device
(
"meta"
):
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
]]
else
:
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