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
dynamo
Commits
a430bbb6
Unverified
Commit
a430bbb6
authored
Oct 29, 2025
by
Yan Ru Pei
Committed by
GitHub
Oct 29, 2025
Browse files
fix: dynamo-run model name should default to remote path i.e. HFID (#3951)
Signed-off-by:
PeaBrane
<
yanrpei@gmail.com
>
parent
f1552864
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
launch/dynamo-run/src/lib.rs
launch/dynamo-run/src/lib.rs
+5
-1
No files found.
launch/dynamo-run/src/lib.rs
View file @
a430bbb6
...
@@ -29,6 +29,10 @@ pub async fn run(
...
@@ -29,6 +29,10 @@ pub async fn run(
.model_path_pos
.model_path_pos
.clone
()
.clone
()
.or_else
(||
flags
.model_path_flag
.clone
());
.or_else
(||
flags
.model_path_flag
.clone
());
// Preserve the original model identifier before downloading (for default model name)
let
original_model_identifier
=
maybe_remote_repo
.as_ref
()
.map
(|
p
|
p
.display
()
.to_string
());
let
model_path
=
match
maybe_remote_repo
{
let
model_path
=
match
maybe_remote_repo
{
None
=>
None
,
None
=>
None
,
Some
(
p
)
if
p
.exists
()
=>
{
Some
(
p
)
if
p
.exists
()
=>
{
...
@@ -49,7 +53,7 @@ pub async fn run(
...
@@ -49,7 +53,7 @@ pub async fn run(
let
mut
builder
=
LocalModelBuilder
::
default
();
let
mut
builder
=
LocalModelBuilder
::
default
();
builder
builder
.model_name
(
flags
.model_name
.clone
())
.model_name
(
flags
.model_name
.clone
()
.or
(
original_model_identifier
)
)
.kv_cache_block_size
(
flags
.kv_cache_block_size
)
.kv_cache_block_size
(
flags
.kv_cache_block_size
)
// Only set if user provides. Usually loaded from tokenizer_config.json
// Only set if user provides. Usually loaded from tokenizer_config.json
.context_length
(
flags
.context_length
)
.context_length
(
flags
.context_length
)
...
...
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