You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromllama_cppimportLlama# This worksllm=Llama(model_path="/tmp/all-MiniLM-L6-v2-Q8_0.gguf", embedding=True)
print(llm.embed(["test"]))
# This also worksimportnumpyasnpprint(np.array([llm.embed(x) forxin ["test", "test"]]))
# This failsllm=Llama(model_path="/tmp/all-MiniLM-L6-v2-Q8_0.gguf", embedding=True)
print(llm.embed(["test", "test"]))
Activity
fix(_internals): use n_tokens0 offset when enabling last-token logits…
mlisovyi commentedon May 5, 2026
Tests in #2205 seem to be failing with the same error as before (
llama_decode: failed to decode, ret = -1) . @abetlen is that expected?Related to #2051 (same error).
davidmezzetti commentedon May 5, 2026
Agree. That PR looked vibe coded.
davidmezzetti commentedon May 11, 2026
Thank you 🚀