Fix download progress (#78)
This commit is contained in:
committed by
GitHub
parent
546ce10c32
commit
65f4968e5f
@@ -24,9 +24,9 @@ public func load(
|
|||||||
|
|
||||||
switch configuration.id {
|
switch configuration.id {
|
||||||
case .id(let id):
|
case .id(let id):
|
||||||
// download the model weights and config
|
// download the model weights
|
||||||
let repo = Hub.Repo(id: id)
|
let repo = Hub.Repo(id: id)
|
||||||
let modelFiles = ["config.json", "*.safetensors"]
|
let modelFiles = ["*.safetensors"]
|
||||||
modelDirectory = try await hub.snapshot(
|
modelDirectory = try await hub.snapshot(
|
||||||
from: repo, matching: modelFiles, progressHandler: progressHandler)
|
from: repo, matching: modelFiles, progressHandler: progressHandler)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user