Skip to content

Commit 7436efb

Browse files
committed
increasing shard name size
1 parent c6821fa commit 7436efb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/huggingface_hub.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ struct DownloadResult hf_hub_download_with_shards(const std::string &repo_id,
388388

389389
// Download shards
390390
for (int i = 1; i <= total_shards; ++i) {
391-
char shard_file[256];
391+
char shard_file[512];
392392
snprintf(shard_file, sizeof(shard_file), "%s-%05d-of-%05d.gguf",
393393
base_name.c_str(), i, total_shards);
394394
auto aux_res =
@@ -400,7 +400,7 @@ struct DownloadResult hf_hub_download_with_shards(const std::string &repo_id,
400400
}
401401

402402
// Return first shard
403-
char first_shard[256];
403+
char first_shard[512];
404404
snprintf(first_shard, sizeof(first_shard), "%s-00001-of-%05d.gguf",
405405
base_name.c_str(), total_shards);
406406
return hf_hub_download(repo_id, first_shard, cache_dir, false);

0 commit comments

Comments
 (0)