LLMUnity icon indicating copy to clipboard operation
LLMUnity copied to clipboard

Error loading gemma-4-E4B model

Open JackeAstray opened this issue 7 months ago • 4 comments

Used Unity 6000.3.10f1 Inspector configuration is default。 What could be the problem?

ERROR: Failed to create LLM service: LlamaLib error -1: Error loading the model! UnityEngine.Debug:LogError (object) LLMUnity.LLMUnitySetup:LogError (string,bool) (at ./Packages/LLMUnity-3.0.3/Runtime/LLMUnitySetup.cs:202) LLMUnity.LLM/d__107:MoveNext () (at ./Packages/LLMUnity-3.0.3/Runtime/LLM.cs:439) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException (System.Exception) LLMUnity.LLM/d__111:MoveNext () (at ./Packages/LLMUnity-3.0.3/Runtime/LLM.cs:504) UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Image Image

JackeAstray avatar Apr 13 '26 06:04 JackeAstray

Nothing you can do atm, the Llama library needs to be updated to support Gemma 4.

3inary avatar Apr 16 '26 07:04 3inary

Nothing you can do atm, the Llama library needs to be updated to support Gemma 4.

All the updates for Gemma 4 on llama.cpp have been merged now for 2 weeks at least so this statement is not true.

masesk avatar Apr 23 '26 21:04 masesk

Llama.cpp is not used directly, I have developed a library over it (LlamaLib) and need to update it there. I do it whenever I can, it's a bit cumbersome because llama.cpp doesn't have a fixed API or code structure.

amakropoulos avatar Apr 29 '26 05:04 amakropoulos

Llama.cpp is not used directly, I have developed a library over it (LlamaLib) and need to update it there. I do it whenever I can, it's a bit cumbersome because llama.cpp doesn't have a fixed API or code structure.

Let me know if I can help. I’ve used llama.cpp before and can maybe write a GitHub pipeline that auto updates LlamaLib. Any documentation is helpful.

masesk avatar Apr 29 '26 05:04 masesk

Really looking forward to this! Gemma 4 should be great if possible to run locally in Unity, thank you so much!!!

HelixNGC7293 avatar Jun 06 '26 10:06 HelixNGC7293

Gemma 4 is needed!! please fix this soon

N0RAIR avatar Jun 09 '26 14:06 N0RAIR

Gemma 4 support is highly anticipated!

Wolf4D avatar Jun 27 '26 13:06 Wolf4D

is Gemma 4 support now?

dominicdev avatar Jul 10 '26 00:07 dominicdev