Skip to content

panic: runtime error: index out of range [0] with length 0 #19

Description

@hobbitlv1

I use following command with gguf-parser-go and get following error:

CMD: gguf-parser-windows-amd64 --device-metric 0.197755TFLOPS;34.3916GBps --ctx-size 2048 --gpu-layers 0 --url https://huggingface.co/Flexan/kshitijthakkar-qwen3.5-moe-0.87B-d0.8B-GGUF/resolve/main/qwen3.5-moe-0.87B-d0.8B.Q4_K_M.gguf
STDERR:

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.mainAction(0xc00011f040?)
        github.com/gpustack/gguf-parser-go/cmd/gguf-parser/main.go:1902 +0xb44f
github.com/urfave/cli/v2.(*Command).Run(0xc0001ea160, 0xc00011f040, {0xc000144000, 0x9, 0x10})
        github.com/urfave/cli/v2@v2.27.5/command.go:276 +0x97d
github.com/urfave/cli/v2.(*App).RunContext(0xc0001ce000, {0x15181a8, 0xc00016a550}, {0xc000144000, 0x9, 0x10})
        github.com/urfave/cli/v2@v2.27.5/app.go:333 +0x5a5
main.main()
        github.com/gpustack/gguf-parser-go/cmd/gguf-parser/main.go:1017 +0x4e9d
STDOUT:
+-----------------------------------------------------------------------------------------------------------------+
| METADATA                                                                                                        |
+-------+-------------------------+-----------+--------------+---------------+------------+------------+----------+
|  TYPE |           NAME          |    ARCH   | QUANTIZATION | LITTLE ENDIAN |    SIZE    | PARAMETERS |    BPW   |
+-------+-------------------------+-----------+--------------+---------------+------------+------------+----------+
| model | Kshitijthakkar Qwen3... | qwen35moe |    Q4_K_M    |      true     | 744.94 MiB |   1.01 B   | 6.20 bpw |
+-------+-------------------------+-----------+--------------+---------------+------------+------------+----------+

Sometimes I also get same error but with length 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThe issue or pull request alreay inactives

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions