Skip to content

Commit 162acc2

Browse files
committed
Add note on modules.json handling
1 parent 9894e2a commit 162acc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backends/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ async fn init_backend(
433433
tracing::info!("Dense modules downloaded in {:?}", start.elapsed());
434434
Some(dense_paths)
435435
} else {
436+
// TODO(alvarobartt): eventually detach the Sentence Transformers module handling
437+
// to prevent from duplicated code here and there
436438
// For local models, try to parse modules.json and handle dense_path logic
437439
let modules_json_path = model_path.join("modules.json");
438440
if modules_json_path.exists() {

0 commit comments

Comments
 (0)