News for hackers. Stuff that matters.
Re:GPU-Accelerated LLM on a $100 Orange Pi by omneity on Tuesday August 15, 2023 @07:44AM (#37132731)
How about a local wikipedia dump, with precalculated embeddings? Then you can perform a similarity search first and feed the results to the LLM.

It’s less likely to hallucinate this way.

Re:GPU-Accelerated LLM on a $100 Orange Pi by jacquesm on Tuesday August 15, 2023 @08:01AM (#37132867)
That would make a lot more sense. That way at least you have a chance to check up on the output, lest your first meal of 'Hedysarum alpinum' ends up being your last.
Re:GPU-Accelerated LLM on a $100 Orange Pi by bravura on Tuesday August 15, 2023 @08:11AM (#37132985)
The key aspect to this being a good solution is actually building a corpus representing as much possible reference knowledge needed in scenario. The idea that the answer is Wikipedia way underestimates the scope.

The Wikipedia patch doesn’t make much sense to me.

What percent of the important questions being asked in this doomsday scenario actually have their answer in Wikipedia?

If 50% of the time you are left trusting raw LLaMa, then you don’t really have a decent solution.

I do appreciate the sentiment tho that future or finetuned LLMS might fit on an RPi or whatever, and be good enough.

Re:GPU-Accelerated LLM on a $100 Orange Pi by hnuser123456 on Tuesday August 15, 2023 @08:37AM (#37133215)
I think the theory is that an LLM can integrate the knowledge of Wikipedia and become something greater than the sum of its parts by applying reasoning that is explained in one article to situations in other topics where the reasoning might not be so well explained. Then you can ask naive questions in new scenarios where you might not have the background knowledge (or simply the mental energy) to figure out a right answer to a situation on your own but it powers through for you. AFAIK current LLMs are not this abstract. If one type of reasoning is more often applied in one scenario and another type of reasoning is applied to another, they don't have any context beyond the words and they know what topics humans usually jump to from other given topics.
Re:GPU-Accelerated LLM on a $100 Orange Pi by chank on Tuesday August 15, 2023 @08:10AM (#37132975)
this concept already exists and is in practice at many companies that require knowledge driven results. https://arxiv.org/abs/2005.11401
Re:GPU-Accelerated LLM on a $100 Orange Pi by regularfry on Tuesday August 15, 2023 @08:44AM (#37133288)
There was another paper out recently that adds to this: https://arxiv.org/pdf/2308.04430.pdf. Looks like a more flexible approach to document storage, and it outperforms retrieval in context.

They trained up their own LLM, but from the text it seems like it might be possible to use any LLaMA-style LM without retraining. Not sure though, need to give it a proper look.

Re:GPU-Accelerated LLM on a $100 Orange Pi by yu3zhou4 on Tuesday August 15, 2023 @08:03AM (#37132891)
It would be great to see such project implemented, I wonder how good would it perform
Re:GPU-Accelerated LLM on a $100 Orange Pi by jacquesm on Tuesday August 15, 2023 @08:07AM (#37132941)
Yes, especially having fact checked output of LLMs would be a nice step in the right direction. Throwing out the hallucinated bits and keeping the good stuff would make LLMs a lot more applicable.
Re:GPU-Accelerated LLM on a $100 Orange Pi by eis on Tuesday August 15, 2023 @08:29AM (#37133141)
Isn't that a bit of a holy grail though? If your software can fact check the output of LLMs and prevent hallucinations then why not use that as the AI to get the answers in the first place?
Re:GPU-Accelerated LLM on a $100 Orange Pi by jacquesm on Tuesday August 15, 2023 @08:37AM (#37133207)
Because you - hopefully - have a check against something that is on average of higher quality than the combined input of an LLM.

I'm not sure if this can work or not but it would be nice to see a trial, you could probably do this by hand if you wanted to by breaking up the answer from an LLM into factoids and then to check each of those individually, and to assign a score to them based on the amount of supporting evidence for the factoid. I'd love that as a plug-in to a browser too.

Re:GPU-Accelerated LLM on a $100 Orange Pi by regularfry on Tuesday August 15, 2023 @08:47AM (#37133313)
https://arxiv.org/pdf/2308.04430.pdf is interesting from that point of view. They've tackled it from the perspective of avoiding copyright content in training, but including it in inference but I think it ought to mean less hallucination because they also (claim to) solve the attribution problem.
Re:GPU-Accelerated LLM on a $100 Orange Pi by jacquesm on Tuesday August 15, 2023 @08:52AM (#37133349)
Nice one, thank you. Added to my 'read later today' list, the abstract looks very interesting.
Re:GPU-Accelerated LLM on a $100 Orange Pi by omneity on Tuesday August 15, 2023 @09:10AM (#37133554)
My hypothesis is that including information in the LLM’s prompt to support its answer changes the task roughly from text generation, very hallucination prone, to text summarization, or reformulation with some reasoning, and this is less likely to hallucinate.

That was my personal experience in general with ChatGPT as well as LLaMa1/2.

Re:GPU-Accelerated LLM on a $100 Orange Pi by jacquesm on Tuesday August 15, 2023 @09:40AM (#37133886)
A friend and colleague of mine just tried this and the first results are quite promising.
Re:GPU-Accelerated LLM on a $100 Orange Pi by mdp2021 on Tuesday August 15, 2023 @12:11PM (#37135710)
> a local wikipedia dump

There exists (at least) a project to train and query an LLM on local documents: privateGPT - https://github.com/imartinez/privateGPT

It should provide links to the the source with the relevant content, to check the exact text:

> You'll need to wait 20-30 seconds (depending on your machine) while the LLM model consumes the prompt and prepares the answer. Once done, it will print the answer and the 4 sources it used as context from your documents

You will have noticed, in that first sentence, that it may not be practical, especially on an Orange Pi.