Skip to content

Commit

Permalink
Use --predibase-api-token parameter when downloading (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-predibase authored Nov 19, 2024
1 parent f32a11d commit 1220ce8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,13 @@ fn download_convert_model(
envs.push(("HUGGING_FACE_HUB_TOKEN".into(), api_token.into()))
};

if let Some(predibase_api_token) = &args.predibase_api_token {
envs.push((
"PREDIBASE_API_TOKEN".into(),
predibase_api_token.to_string().into(),
));
}

// If args.weights_cache_override is some, pass it to the download process
// Useful when running inside a HuggingFace Inference Endpoint
if let Some(weights_cache_override) = &args.weights_cache_override {
Expand Down

0 comments on commit 1220ce8

Please sign in to comment.