Lurker News
The video demo runs a 7b Model on a normal gaming GPU. I think it already works quite well (accounting for the limited hardware power). :)

Comments (133) 33 threads

Earlier comments
keyle4 replies#
Impressive, I don't think I've seen a local model call upon specialised modules yet (although I can't keep up with everything going on).

I too use local 7b open-hermes and it's really good.

nilsherzig3 replies#
Thanks :). It's just a lot of prompting and string parsing. There are models like "Hermes-2-Pro-Mistral" (the one from the video) which are trained to work with function signatures and outputting structured text. But at the end it's just strings in > strings out, haha. But its fun (and sometimes frustrating) to use LLMs for flow control (conditions, loops...) inside your programs.
keyle1 reply#
Wow, I didn't know about "Hermes 2 Pro - Mistral 7B", cheers!
nilsherzig7 replies#
It's my go to "structured text model" atm. Try "starling-ml-beta" (7b) for some very impressive chat capabilities. I honestly think that it outperforms GPT3 half the time.

Continue this thread — 7 replies

davidcollantes#
Got a link for that one? I have found a few with Hermes-2-Mistral in the name.
madacol#
Have you considered using grammar sampling?
viksit2 replies#
curious what hardware you use? and is any of this runnable on an m1 laptop?
keyle1 reply#
Absolutely, 7B will run comfortably on 16GB of RAM and most consumer level hardware. Some of the 40B run on 32GB, but it depends on the model I found (GGUF, crossing fingers help).

I ran this originally on a M1 with 32GB, I run this on an Air M2 with 16GB (and mac mini M2 32GB), no problem.
I use llama.cpp with a SwiftUI interface (my own), all native, no scripts python/js/web.
7b is obviously less capable but the instant response makes it worth exploring. It's very useful as a Google search replacement that is instantly more valuable, for general questions, than dealing with the hellscape of blog spam ruling Google atm.
Note, for my complex code queries at $dayjob where time is of the essence, I still use GPT4 plus, which is still unmatched imho, without running special hardware at least.

regularfry#
I've been occasionally using a 7b Q4 quant on llama.cpp on an 8GB M1. It's usable, if not amazing.
nilsherzig#
Depends on your m1 specs, but should definitely be able to run a 7b model (at least with some quantization).
peter_l_downs#
I'm just starting to get into downloading and testing models using llama.cpp and I'm curious which model you're actually using, since they seem to come in varying levels of quantization. Is this [0] the model page for the one you're using, or should I be looking somewhere else? What is the actual file name of the model you're using?

[0] https://huggingface.co/TheBloke/OpenHermes-2.5-Mistral-7B-GG...

aagha#
According to Crunchbase [0], Perplexity has raised over $100M.

You built this in your spare time?
The following things jump out to me:
- How much a hype cycle invites insane amounts of money - How trash the entire VC world is during a hype cycle - What an amazing thing ingenuity and passion are
Great job!
0 - https://www.crunchbase.com/organization/perplexity-ai

fnetisma1 reply#
This is really neat! I have questions:

“Needs tool usage” and “found the answer” blocks in your infra, how are these decisions made?
Looking at the demo, it takes a little time to return results, from the search, vector storage and vector db retrieval, which step takes the most time?

nilsherzig1 reply#
Thanks :)

Die LLM makes these decisions on its own. If it writes a message which contains a tool call (Action: Web search Action Input: weight of a llama) the matching function will be executed and the response returned to the LLM. It's basically chatting with the tool.
You can toggle the log viewer on the top right, to get more detail on what it's doing and what is taking time. Timing depends on multiple things: - the size of the top n articles (generating embeddings for them takes some time) - the amount of matching vector DB responses (reading them takes some time)

dcreater1 reply#
> Die LLM

You mean the? The German is bleeding through haha

rzzzt#
Wolfenstein 3D did it first! And then The Simpsons as well.
ldjkfkdsjnv4 replies#
The big secret about perplexity is they havent done much beyond using off the shelf models
KuriousCat2 replies#
How did they secure funds in that case?
basbuller2 replies#
That is probably exactly why they got funding. You can sell it as focus on adding new features and leveraging the best available tools before reinventing the wheel.

They do train their own models now, but for about a year they just forwarded calls to models like gpt3.5T. You still have the option to use models not trained by perplexity.

hackernewds1 reply#
which is why their engagement and model responses suck. the other competitors are far better

C.ai and Pi comes to mind

Continue this thread — 1 reply

KuriousCat#
I still don't get it. What was the USP here? What is the allure in it for the investors?
code51#
Simple, looking at the mirror and saying "Google-killer" firmly 3 times everyday.
ggnore7452#
I've been working on a small personal project similar to this and agree that replicating the overall experience provided by Perplexity.ai, or even improving it for personal use, isn't that challenging. (The concerns of scale or cost are less significant in personal projects. Perplexity doesn't do too much planning or query expansion, nor does it dig super deep into the sources afaik)

I must say, though, that they are doing a commendable job integrating sources like YouTube and Reddit. These platforms benefit from special preprocessing and indeed add value.

msp26#
Pretraining and even finetuning (to a good extent) is overrated and you can create plenty of value without it.
nilsherzig#
I assume the same, feels like their product is just summarizing the top n results? I wouldn't need the whole vector db thing, if local models (or hardware) would be able to run with a context of this size.

Load more comments