Skip to content

Crashs during download ollama deepseek-r1 #7728

@lifenglsf

Description

@lifenglsf

LocalAI version:
binary 3.8.0

Environment, CPU architecture, OS, and Version:
Darwin 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 arm64

Describe the bug
panic: runtime error: invalid memory address or nil pointer dereference

Downloading /Users/lifeng/ai/localai/models/models/deepseek-r1__8b: 4.8 GiB/4.9 GiB (99.41%) ETA: 5.360338574s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x38 pc=0x10306e110]

goroutine 14 [running]:
github.com/mudler/LocalAI/core/config.(*ApplicationConfig).ToConfigLoaderOptions(0x14000660d20)
/home/runner/work/LocalAI/LocalAI/core/config/application_config.go:402 +0xe0
github.com/mudler/LocalAI/core/services.(*GalleryService).modelHandler(0x140003a1740, 0x1400094d8c0, 0x140006e0200, 0x140003be300)
/home/runner/work/LocalAI/LocalAI/core/services/models.go:88 +0x270
github.com/mudler/LocalAI/core/services.(*GalleryService).Start.func3()
/home/runner/work/LocalAI/LocalAI/core/services/gallery.go:156 +0x320
created by github.com/mudler/LocalAI/core/services.(*GalleryService).Start in goroutine 1
/home/runner/work/LocalAI/LocalAI/core/services/gallery.go:129 +0x140

To Reproduce
local-ai models install ollama://deepseek-r1:8b

Expected behavior

Logs

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions