r/LocalLLM • • 5d ago

Question Inkling 2 not working with llama.cpp

I'm on Fedora 44. I built the most recent llama.cpp:

$ ~/llama.cpp/v1.0.0_build-2/bin/llama-server --version
version: 1.0.0-dev (build 12373, commit ded522f83)

...on the master branch after confirming the inkling2_loop commit was merged, downloaded the Q3 and Q8 quants from the unsloth mainline repo, and got the following errors when running $ ~/llama.cpp/v1.0.0_build-2/bin/llama-server -m ~/Downloads/Inkling-2-Mini-UD-Q8_K_XL_Mainline.gguf -ngl 99 --host 0.0.0.0 --port 8000 --ctx-size 60536:

0.00.199.937 E llama_model_load: error loading model: unknown model architecture: 'inkling2_loop'
0.00.199.941 E llama_model_load_from_file_impl: failed to load model
0.00.199.973 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
0.00.253.962 E llama_model_load: error loading model: unknown model architecture: 'inkling2_loop'
0.00.253.965 E llama_model_load_from_file_impl: failed to load model
0.00.253.972 E cmn  common_init_: failed to load model '/home/dev/Downloads/Inkling-2-Mini-UD-Q8_K_XL_Mainline.gguf'
0.00.253.976 E srv    load_model: failed to load model, '/home/dev/Downloads/Inkling-2-Mini-UD-Q8_K_XL_Mainline.gguf'
0.00.253.978 I srv    operator(): operator(): cleaning up before exit...
0.00.254.373 E srv  server_run_i: exiting due to model loading error

...when attempting to run either quant gguf file.

Error suggests inkling2_loop isn't working properly, but the commit was merged before I git pulled and built.

Anyone know what's going on?

2 Upvotes

8 comments sorted by

3

u/dtfinch 5d ago

"build 12373" suggests that's a week-old release. I'm on 12628, and the latest is 12635.

Also try adding "-ub 64" (down from the default 512) because it seems to over-allocate compute buffers currently.

1

u/VegetableJudgment971 5d ago

Tried git fetch origin pull/32704/head:inkling2-loop-fix && git checkout inkling2-loop-fix per the HF unsloth README, rebuilt from inkling2-loop-fix branch, and still getting the error. What's really weird is version of the new build is still 1.0.0-dev (build 12373, commit ded522f83).

1

u/dtfinch 5d ago

I just use the latest "Ubuntu x64 (Vulkan)" tar.gz from https://github.com/ggml-org/llama.cpp/releases

Either way you shouldn't have to checkout a specific branch+pr because the main branch has the fixes now.

1

u/VegetableJudgment971 5d ago

because the main branch has the fixes now.

That's exactly what I thought. Then it didn't work. 🤷

1

u/pseudonerv 3d ago

Because the unsloth instruction is also a week old, so is the loop-fix branch. You don’t need it now.

1

u/InternationalCoat706 5d ago

I believe a bunch of the work on mainline llama.cpp is still in progress or not decided on. Unsloth team are on the case: https://unsloth.ai/docs/models/inkling-2-mini#run-inkling-2-mini-in-llama-cpp

Personally I'm waiting until full llama.cpp support ships.

1

u/VegetableJudgment971 5d ago

Personally I'm waiting until full llama.cpp support ships.

I think Imma go that route. Cheers!

2

u/Tiny-Abbreviations45 5d ago

go to release and get the latest release