Skip to content

Commit

Permalink
feat: do not download ctranslate2 files in downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Oct 28, 2023
1 parent 4442226 commit 43cc5f3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/tabby/src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ pub struct DownloadArgs {
pub async fn main(args: &DownloadArgs) {
let downloader = Downloader::new(&args.model, args.prefer_local_file);

downloader
.download_ctranslate2_files()
.await
.unwrap_or_else(|err| fatal!("Failed to fetch model '{}' due to '{}'", args.model, err));

downloader
.download_ggml_files()
.await
.unwrap_or_else(|err| warn!("Failed to fetch model '{}' due to '{}'", args.model, err));
.unwrap_or_else(|err| fatal!("Failed to fetch model '{}' due to '{}'", args.model, err));

info!("model '{}' is ready", args.model);
}

0 comments on commit 43cc5f3

Please sign in to comment.