mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
create tempdir in models directory
the models directory should have plenty of storage and also ensure there's no cross-device copy
This commit is contained in:
parent
4e535e6188
commit
88738b357b
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ func detectModelTypeFromFiles(files map[string]string) string {
|
|||
}
|
||||
|
||||
func convertFromSafetensors(files map[string]string, baseLayers []*layerGGML, isAdapter bool, fn func(resp api.ProgressResponse)) ([]*layerGGML, error) {
|
||||
tmpDir, err := os.MkdirTemp("", "ollama-safetensors")
|
||||
tmpDir, err := os.MkdirTemp(envconfig.Models(), "ollama-safetensors")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue