News for hackers. Stuff that matters.
Re:Localllm lets you develop gen AI apps on local CPUs by brucethemoose2 on Wednesday February 07, 2024 @04:58PM (#39294838)
Even Google is making a llama.cpp wrapper.

Technically a wrapper of a wrapper, though llama-cpp-python is quite excellent... TBH I would just recommend using that and all its under-the-radar features (like grammar, and built in function calling support with Functionary).

Re:Localllm lets you develop gen AI apps on local CPUs by depingus on Wednesday February 07, 2024 @07:45PM (#39296376)
Slightly off topic, here is the best local llama.cpp wrapper I've run into:

https://github.com/Mozilla-Ocho/llamafile

You can download any .gguf model (not just the ones in their examples) and run it locally (as long as you have the ram for it). I was running 7B models with ease on an old FX8350 and now 13B models on a 5600X (32GB RAM on both machines).

This wrapper spins up a local web server that runs a simple web frontend to use immediately with no code, but also exposes an OpenAI compatible API for dev work and alt frontends (like SillyTavern).

Re:Localllm lets you develop gen AI apps on local CPUs by 3abiton on Thursday February 08, 2024 @03:51AM (#39299795)
What's the speed? I heard of llamafile before.
Re:Localllm lets you develop gen AI apps on local CPUs by depingus on Thursday February 08, 2024 @11:07AM (#39303600)
I wasn't really timing it, but it felt fine, especially since it prints out while generating. The 13B model on the 5600X is about 10 seconds. Tho once the conversation gets too long (about 10 replies) it will go sideways. I gotta play with the default settings. IIRC the 7B on the Fx8350 was closer to 25 seconds per response.
Re:Localllm lets you develop gen AI apps on local CPUs by andy99 on Wednesday February 07, 2024 @06:10PM (#39295587)
Oh it's a wrapper? I just skimmed and thought they reinvented llama.cpp for some reason, which would have been mildly interesting.
Re:Localllm lets you develop gen AI apps on local CPUs by williamstein on Wednesday February 07, 2024 @06:13PM (#39295610)
(edit: this is completely irrelevant remark. sorry) It's (1) written in Python, and (2) ollama appears nowhere in their Docker repo [1], and (3) it gets the models only from huggingface instead of the ollama repos. Thus maybe it is NOT a wrapper of ollama?

[1] https://github.com/googlecloudplatform/localllm

Re:Localllm lets you develop gen AI apps on local CPUs by andy99 on Wednesday February 07, 2024 @06:23PM (#39295685)
https://github.com/GoogleCloudPlatform/localllm/blob/main/ll...

I see llama.cpp in there, but I didn't go deeper than that. Ollama is not the same thing.

Re:Localllm lets you develop gen AI apps on local CPUs by thund on Wednesday February 07, 2024 @07:48PM (#39296418)
does Functionary work with generic models like llama.cpp? had the impression you could only use Functionary GGUFs
Re:Localllm lets you develop gen AI apps on local CPUs by gbickford on Thursday February 08, 2024 @02:28AM (#39299309)
Llama.cpp is an inference engine. The author of llama.cpp designed gguf. Funcionary is a model that does function calling. You can download functionary weights in the gguf format and then run it using llama.cpp on low-end machines using CPU or GPU or a mix of both.
Re:Localllm lets you develop gen AI apps on local CPUs by thund on Thursday February 08, 2024 @04:09AM (#39299891)
ok so the answer is no, thanks
Re:Localllm lets you develop gen AI apps on local CPUs by behnamoh on Thursday February 08, 2024 @11:23AM (#39303847)
The GP educated you and you still said the answer was "no"? It's clearly "yes".
Re:Localllm lets you develop gen AI apps on local CPUs by TeMPOraL on Friday February 09, 2024 @12:58AM (#39311855)
I read the original question as "is the 'Functionary' thing something that works with any LLM you can run in llama.cpp, not just only with the special 'Functionary' finetuned models?", to which the answer now is clearly no.

Very interesting question, as I also read top-level post as saying it's a llama-cpp-python feature, and therefore I could shove some random dolphin-mixtral or whatever I have on my hard drive at it, and it will work.

Re:Localllm lets you develop gen AI apps on local CPUs by brucethemoose2 on Thursday February 08, 2024 @06:22PM (#39309204)
This question is confusing to me.

Functionary is a series of function calling llama architecture finetuned models, not a new base model, if thats what you mean.

Hence, it can be turned into a gguf like any other llama finetune.

It just has a very esoteric prompting format, but llama-cpp-python is specifically set up to leverage it.

Re:Localllm lets you develop gen AI apps on local CPUs by thund on Friday February 09, 2024 @04:09AM (#39312957)
from the parent:

> TBH I would just recommend using that and all its under-the-radar features (like grammar, and built in function calling support with Functionary).

I never heard about Functionary, this comment seems to say “I would use llama.cpp plus Functionary”. Now, since llama.cpp allows to plug in several models, I was wondering if Functionary works with several models too, ie is Functionary a library that allows to add function calling to models?

The following answer to my comment helped clarifying that Functionary is not a lib, but a specific model, or that is what I understand from the answer. So the answer is “no, you can’t use functionary with many models (eg it’s not like llama.cpp that works with multiple models) because Functionary is a model itself”

:-)

Re:Localllm lets you develop gen AI apps on local CPUs by m00x on Wednesday February 07, 2024 @09:45PM (#39297294)
I wonder what need they're fulfilling here. It's not really more useful than using llamacpp-python. This is not something old Google would even release.
Re:Localllm lets you develop gen AI apps on local CPUs by bigiain on Thursday February 08, 2024 @12:21AM (#39298540)
> I wonder what need they're fulfilling here.

The need to fill more seats on the AI hype train.

(Someone's probably got "release AI software as Google open source" as an OKR)