Skip to content

Huggingface cache, symlinks, and unsupported tensor source format, #274

Description

@AlphaMo99

If you download a repository with the huggingface cli :

hf download audio-cpp/MiniMax-Music3-GGUF

And use the cache directory AND specifying a file (works if I do not specify the flow_transformer):

./build/bin/audiocpp_cli --task gen --session-option minimax_music3.flow_transformer_gguf=transformer_q8_0.gguf --family minimax_music3 --model /usr/share/llama/gguf/models--audio-cpp--MiniMax-Music3-GGUF/snapshots/ed915d0748225e39b2b9b4eab354a20f66e30bc2/ --backend cuda --text "A bright pop rock song with clean drums and a clear male vocal." --request-option 'lyrics=[verse] City lights are shining low. I keep moving with the glow. [chorus] Turn it up and let it fly. Sing the melody tonight.' --request-option duration_sec=20 --request-option num_inference_steps=30 --out output.wav
ggml_cuda_init: found 1 CUDA devices (Total VRAM: 15937 MiB):
Device 0: Quadro RTX 5000, compute capability 7.5, VMM: yes, VRAM: 15937 MiB
audiocpp_cli failed: unsupported tensor source format: /usr/share/llama/gguf/models--audio-cpp--MiniMax-Music3-GGUF/blobs/40ed8a14884e9ac1b40625edd0dc14138c3d3d62803e2b5903f008dec60e61ac

It fails because the GGUF is a symlink to a file without any file extension :

ls -l /usr/share/llama/gguf/models--audio-cpp--MiniMax-Music3-GGUF/snapshots/ed915d0748225e39b2b9b4eab354a20f66e30bc2/transformer_q8_0.gguf
lrwxrwxrwx 1 nobody nobody 76 Aug 18 17:07 /usr/share/llama/gguf/models--audio-cpp--MiniMax-Music3-GGUF/snapshots/ed915d0748225e39b2b9b4eab354a20f66e30bc2/transformer_q8_0.gguf -> ../../blobs/40ed8a14884e9ac1b40625edd0dc14138c3d3d62803e2b5903f008dec60e61ac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions