File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -483,15 +483,13 @@ impl CandleBackend {
483
483
let dense_config_str =
484
484
std:: fs:: read_to_string ( & dense_config_path) . map_err ( |err| {
485
485
BackendError :: Start ( format ! (
486
- "Unable to read `{}/config.json` file: {err:?}" ,
487
- dense_path. display( )
486
+ "Unable to read `{dense_path:?}/config.json` file: {err:?}" ,
488
487
) )
489
488
} ) ?;
490
489
let dense_config: DenseConfig =
491
490
serde_json:: from_str ( & dense_config_str) . map_err ( |err| {
492
491
BackendError :: Start ( format ! (
493
- "Unable to parse `{}/config.json`: {err:?}" ,
494
- dense_path. display( )
492
+ "Unable to parse `{dense_path:?}/config.json`: {err:?}" ,
495
493
) )
496
494
} ) ?;
497
495
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ pub async fn download_artifacts(
48
48
{
49
49
// If dense config is there, try to download the model.safetensors first
50
50
if let Err ( err) = download_dense_safetensors ( api, dense_path. as_deref ( ) ) . await {
51
- tracing:: warn!( "Failed to download dense safetensors: {err}" ) ;
51
+ tracing:: warn!( "Failed to download `{dense_path:?}/model. safetensors` file : {err}" ) ;
52
52
// Fallback to pytorch_model.bin
53
53
if let Err ( err) = download_dense_pytorch_model ( api, dense_path. as_deref ( ) ) . await {
54
- tracing:: warn!( "Failed to download dense pytorch model : {err}" ) ;
54
+ tracing:: warn!( "Failed to download `{dense_path:?}/pytorch_model.bin` file : {err}" ) ;
55
55
}
56
56
}
57
57
}
You can’t perform that action at this time.
0 commit comments