Skip to content

Qwen-Image-Edit fails to download #7420

@short-circuit

Description

@short-circuit

LocalAI version:
latest-gpu-nvidia-cuda-12

Environment, CPU architecture, OS, and Version:
6.17.7-arch1-2
Memory:
System RAM: total: 64 GiB available
CPU:
Info: 24-core (8-mt/16-st) model: 13th Gen Intel Core i9-13900K
Graphics:
Device-1: NVIDIA AD102 [GeForce RTX 4090] driver: nvidia v. 580.105.08

Describe the bug
qwen-image-edit (both versions) fail to download from gallery as this panics the main process. Possibly affects other models too.

To Reproduce
click on download of any qwen-image-edit

Expected behavior
download correctly

Logs

localai-1  | panic: reflect.Value.MapIndex: value of type interface {} is not assignable to type string
localai-1  | 
localai-1  | goroutine 10 [running]:
localai-1  | reflect.Value.assignTo({0x1ce7700?, 0xc001692540?, 0xc000aa65b8?}, {0x20e7309, 0x16}, 0x1c54e60, 0x0)
localai-1  | 	/root/go/pkg/mod/golang.org/[email protected]/src/reflect/value.go:3072 +0x28b
localai-1  | reflect.Value.MapIndex({0x1d94ee0?, 0xc00168a1e0?, 0xc00059a008?}, {0x1ce7700, 0xc001692540, 0x94})
localai-1  | 	/root/go/pkg/mod/golang.org/[email protected]/src/reflect/map_swiss.go:163 +0xe8
localai-1  | dario.cat/mergo.deepMerge({0x1d94ee0?, 0xc00168a1e0?, 0xcc002d29078?}, {0x1d95b40?, 0xc0006c3da0?, 0x98?}, 0xc000063300, 0x1, 0xc001696078)
localai-1  | 	/root/go/pkg/mod/dario.cat/[email protected]/merge.go:125 +0x18b2
localai-1  | dario.cat/mergo.deepMerge({0x1d94ee0?, 0xc0002a80f8?, 0x1d94ee0?}, {0x1d94ee0?, 0xc0006c3d70?, 0x80877c?}, 0xc000063300, 0x0, 0xc001696078)
localai-1  | 	/root/go/pkg/mod/dario.cat/[email protected]/merge.go:153 +0x1c0e
localai-1  | dario.cat/mergo.merge({0x1c19000, 0xc0002a80f8}, {0x1d94ee0, 0xc0006c3d70}, {0xc000063588, 0x1, 0x51f7260?})
localai-1  | 	/root/go/pkg/mod/dario.cat/[email protected]/merge.go:395 +0x2ef
localai-1  | dario.cat/mergo.Merge(...)
localai-1  | 	/root/go/pkg/mod/dario.cat/[email protected]/merge.go:319
localai-1  | github.com/mudler/LocalAI/core/gallery.InstallModel({0x3ad65d0, 0xc0007c83c0}, 0x1d94ee0?, {0xc00125b120, 0xf}, 0xc000194c80, 0xc0006c3d70, 0xc000bfc138, 0x1)
localai-1  | 	/build/core/gallery/models.go:248 +0xb85
localai-1  | github.com/mudler/LocalAI/core/gallery.InstallModelFromGallery.func1(0xc0006faf70)
localai-1  | 	/build/core/gallery/models.go:130 +0x8be
localai-1  | github.com/mudler/LocalAI/core/gallery.InstallModelFromGallery({_, _}, {_, _, _}, {_, _, _}, _, 0xc00052da00, ...)
localai-1  | 	/build/core/gallery/models.go:156 +0x129
localai-1  | github.com/mudler/LocalAI/core/services.processModelOperation(0xc000526840, 0xc00013a120, 0xc00052da00, 0x1, 0x1, 0xc000bfc138)
localai-1  | 	/build/core/services/models.go:218 +0x1c5
localai-1  | github.com/mudler/LocalAI/core/services.(*GalleryService).modelHandler(0xc00052db00, 0xc000526840, 0xc000128660, 0xc00013a120)
localai-1  | 	/build/core/services/models.go:57 +0x18c
localai-1  | github.com/mudler/LocalAI/core/services.(*GalleryService).Start.func3()
localai-1  | 	/build/core/services/gallery.go:156 +0x3dc
localai-1  | created by github.com/mudler/LocalAI/core/services.(*GalleryService).Start in goroutine 1
localai-1  | 	/build/core/services/gallery.go:129 +0x13c

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions