mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
add fixes for llama
This commit is contained in:
parent
c8cf0d94ed
commit
d355d2020f
5 changed files with 55 additions and 24 deletions
|
@ -208,7 +208,7 @@ func tempZipFiles(path string) (string, error) {
|
|||
// pytorch files might also be unresolved git lfs references; skip if they are
|
||||
// covers pytorch_model-x-of-y.bin, pytorch_model.fp32-x-of-y.bin, pytorch_model.bin
|
||||
files = append(files, pt...)
|
||||
} else if pt, _ := glob(filepath.Join(path, "consolidated*.pth"), "application/octet-stream"); len(pt) > 0 {
|
||||
} else if pt, _ := glob(filepath.Join(path, "consolidated*.pth"), "application/zip"); len(pt) > 0 {
|
||||
// pytorch files might also be unresolved git lfs references; skip if they are
|
||||
// covers consolidated.x.pth, consolidated.pth
|
||||
files = append(files, pt...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue