Skip to content

Commit

Permalink
fix download weights step
Browse files Browse the repository at this point in the history
  • Loading branch information
noyoshi committed Apr 16, 2024
1 parent 19fc18e commit 4cc8942
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,14 @@ fn download_convert_model(
) -> Result<(), LauncherError> {
// Enter download tracing span
let _span = tracing::span!(tracing::Level::INFO, "download").entered();

let adapter_source;

if let Some(static_adapter_source) = args.static_adapter_source.clone() {
adapter_source = static_adapter_source;
} else {
adapter_source = args.adapter_source.clone()
}

let mut download_args = vec![
"download-weights".to_string(),
Expand All @@ -803,7 +811,7 @@ fn download_convert_model(
"--source".to_string(),
args.source.clone(),
"--adapter-source".to_string(),
args.adapter_source.clone(),
adapter_source,
];

// Model optional revision
Expand Down

0 comments on commit 4cc8942

Please sign in to comment.