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
dynamo
Commits
f2e0d6c2
Unverified
Commit
f2e0d6c2
authored
Apr 21, 2025
by
Zhongdongming Dai
Committed by
GitHub
Apr 21, 2025
Browse files
feat(dynamo-run): make the model name to be the same as the HF repo name (#749)
parent
22cacbb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
launch/dynamo-run/src/lib.rs
launch/dynamo-run/src/lib.rs
+1
-4
No files found.
launch/dynamo-run/src/lib.rs
View file @
f2e0d6c2
...
...
@@ -124,10 +124,7 @@ pub async fn run(
// If it's an HF repo download it
if
let
Some
(
inner_model_path
)
=
model_path
.as_ref
()
{
if
!
inner_model_path
.exists
()
{
model_name
=
inner_model_path
.iter
()
.next_back
()
.map
(|
s
|
s
.to_string_lossy
()
.to_string
());
model_name
=
Some
(
inner_model_path
.display
()
.to_string
());
model_path
=
Some
(
hub
::
from_hf
(
inner_model_path
)
.await
?
);
}
}
...
...
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