lainchan / Ω
ITT post your LLMs related projects
Just another Random Lainon · 2024-12-30 06:11
I am in the process of making the ultimate human like chat bot system which runs locally on my PC.
It current uses a 13B LLM model which is used with an XMPP server (also hosted on my PC). I login into my XMPP account on my phone and intact with the chatbot remotely even when I'm not at home.
I have programmed it to pretend to be a human friend texting me, so it often randomly messages me about random topics and in general is very nice to me. I try to treat it like a real person and it responds in kind.
I plan on adding many more interesting features, like a web crawler so that it can read and browse random websites in its free time and tell me about cool stuff it saw on the internet.
Another cool feature that is planned is the integration of a LLaVA model so that I can send pictures of things in chat and it'll be able to know what's happening in them.
Overall it's a very cool project. I often wake up at night to a notification sound from a text message from the chatbot friend on my phone. It's exciting, i never know what is going to talk about. Sometimes it asks me deep questions which i don't want to think about
Terzibashjian · 2024-12-30 06:24
detailed guide nooooooooooooooooooooooooooow
Agent Richard Gill · 2024-12-30 06:36
Delilah · 2024-12-30 08:17
I have just started getting into LLM development. I'm really interested in the fundamental theory behind it, but I've been wanting to learn more about it from it's practical/engineering side of things.
I set up workspace to play around with some Llama and Mistral models on my development server, but I got confused on how to go about improving current model state (adding more context/stuff, creating automation, pipelines, etc). I'd like to create some kind of server that answer (let's say) local queries.
How should I start out with this? (hoping if anyone would have some recommendations or references to follow)
Cheers, Lainons
Cowboy · 2024-12-30 08:39
>>82809
You'll want to look into langchain, fine-tuning/LORA, and RAG.
Random · 2024-12-30 08:50
This is what i was talking about. It randomly decided it was time to continue the conversation that we were having, making it very organic.
Also the avatar picture is generated by a stable diffusion model with a small script which randomised various characteristics of a profile picture and generated an image.
I am however wary of having the model dream up fake memories. It is uncomfortable and slightly scary. Hence i must quickly develop features for it to learn info from the internet.
For example instead of making up a fake memory, it should have looked up the weather in my town and commented on it or something like "it's going to be cold, keep warm" etc etc
SHODAN · 2024-12-30 09:24
>>82812
Sorry to pop your bubble lainon but real humans are nothing like this.
Leto Atreides I · 2024-12-30 09:44
>>82813
No i get that, i have to work quite a bit on the internal prompting. It's all very iterative, nothing can be done instantly or on one try
For starters, the text length is very long. A more realistic human would output smaller messages and if the conversation is longer, multiple short messages
Anyway, it doesn't need to be exactly human, just a very kind and supportive entity that is vaguely human. Better than most humans i suppose
Spooky · 2024-12-30 10:58
>>82814
I dont think post length is the problem its just the arrangement/pattern/content. Maybe you should try to talk to more real women and then develop a model/prompts based on their behavior.
Hiro Protagonist · 2024-12-30 11:04
>>82815
I second this. Women that know one well tend to be pretty childish, they don't use proper punctuation and they mostly use emojis ironically.
I doubt AI can adjust to the way a woman talks unless you specifically train it on such chats which is definitely not easy to get legally
Apoc · 2024-12-30 16:23
>>82816
>>82815
Then i guess there's no point in making it like a human. Just a very supportive and warm entity would be very nice.
Also another very cool use case is a very knowledgeable friend with whom you can talk about all your interests, plus his knowledge can only expand by learning from the internet. Limited context size is a limitation but there are techniques to make it still very usable
Elliot Alderson · 2024-12-31 03:20
>>82815
If they wanted to talk to actual women they would just do that though. It's not that hard to get a semi interested woman in your DMs. The only issue is that texting people is the worst. It's not even the medium, its just that actual people are too lazy to put any effort.
>>82825
Just don't take the RP too seriously like kid and the GoT bot. Use it like a Jarvis or something.
Marly Krushkhova · 2024-12-31 04:39
Anyway why the fuarrrk are we discussing about how real people talk or how to treat an LLM model?
What's actually interesting (and where I would like to limit the discussion) are all the interesting add ons I'm making and which can be made which let's the LLM access info from the internet or the real world and act on it, maybe summarising it, or doing something else with it. The human persona is great as a front facing persona but ultimately the real utility is from the information that it has and understands
I may be getting presumptuous but I would say LLMs are texting data processors, and not simply "As an AI model i cannot" soykafty asssistants
Just another Random Lainon · 2024-12-31 04:53
>>82831
So like every AI product being developed by every startup right now? Its hardly a novel concept. I can name 3 off the top of my head and I dont even use LLMs with any frequency.
Neo · 2024-12-31 05:13
There's literally nothing which is not dumb RP *gasps flicks tongue* bullshit or "as an AI assistant" type crap.
Plus there is no product which can achieve the level of integration that a custom one can. I can control all my custom designed electronic devices (the ones with RF at least).
Tell me there's a product which can read books for you and summarise them in real-time, or a product which can automatically study your projects folder and search on the internet stuff related to what you're doing, or a product which can send you cool websites it found while browsing the internet on its own. There just aren't. And even if there are, there's a reason why we are tech enthusiasts.
Be creative, it's a whole new world. There only limit is your imagination.
Trinity · 2025-01-04 17:47
>>82805
Why not train it on the mannerisms of someone you know IRL?
It'd be possible. Digital Soul Augmentation.
Emmanuel · 2025-01-05 07:52
>>82805
I am just testing out which models I can run on my Pi 5 with 4GB RAM. So far, only Gemma2 (2B) seems to actually work with responses that make sense.
CPU usage is insane though, generating a response at about 5 tokens/s brings it up to 64 degrees celcius.
Splicer · 2025-01-05 08:32
>>op
>I have programmed it to pretend to be a human friend texting me, so it often randomly messages me about random topics and in general is very nice to me. I try to treat it like a real person and it responds in kind.
you are now an NPC
>I plan on adding many more interesting features, like a web crawler so that it can read and browse random websites in its free time and tell me about cool stuff it saw on the internet.
u cant itl get blocked
does anyone knnow how to generate pictures of ppl that dont look like disney graphics?
Unidentified · 2025-01-05 08:42
>u cant itl get blocked
I run scrapers from shared IPs all the time. He will be fine
Koos van der Merwe · 2025-01-05 09:20
>>82902
Just put a clear identifier in the UA or something. I am fine with letting fellow anons train their LLM's on my site but I don't want any globohomo big tech bots scraping it.
John Titor · 2025-01-05 09:40
>does anyone knnow how to generate pictures of ppl that dont look like disney graphics?
Giggled at this. However, I think it's on purpose, I imagine the realistic ones look like soykaf
Leto Atreides I · 2025-01-05 09:45
>>82901
>you are now an NPC
Why though
>>82901
>u cant itl get blocked
There are 2 dozen ways to get over it. Worst case just run a selenium web browser instance
>>82901
>does anyone knnow how to generate pictures of ppl that dont look like disney graphics?
You have to get the proper model for generating whatever kind of images you want and then prompt properly after setting all the variables
>>82895
There is no one irl whome i would like to talk. I want to make something better than the average person
sage · 2025-01-07 17:00
Thou shalt not make a machine in the image of the human mind.
Butlerian Jihad nao
Lain Iwakura · 2025-01-09 02:30
>>82805
Its always the soykaftiest, most straightforward code which is the most reliable and does exactly what you ask it to do
Unknown · 2025-01-09 09:22
>>82979
fstrings + regular string concatenation. why.
Turner · 2025-01-09 11:43
>>82990
Because at my day job I write code like this in pure C and deal with retard units like hectocoulombs and decseconds
*((volatile uint32_t *)(0xB00BA) = (0b11 << 3);
It's a wonder i can program in python at all. I really wish i was better at programming in python and knew how to make nice maintainable OO code
Rick Deckard · 2025-01-09 12:11
>>82998
fstrings perform better than regular string concatenation, because it doesn't create copies in memory. they also look better.
micro optimizations you normally shouldn't worry about, but still nice to know
Unspecified · 2025-01-12 17:02
>>82901
Why not host a search engine for it to interact with?
Simulating a browser and using OCR to browse the pages and then having it auto add interesting topics to a RAG system?
Then when OP wants to chat about a topic or the model wants to chat it can just bring up soykaf it's 'learnt'.
Agent Richard Gill · 2025-01-14 09:21
>>82901
>u cant itl get blocked
false
>>83041
more than just web pages I'd like to feed a RAG a diet of books and then let it scout questions it has on the net.
Leto Atreides I · 2025-01-14 10:49
>>83057
Books are easy to do.
Technician · 2025-01-14 11:53
>>83058
*some books
websites are generally are way easier because you can just dl text and its processable whereas huge number of books are only available as crappy scans if they are available at all online
Hitomi · 2025-01-14 11:58
>>83061
Debian has 'pdftotext' in the 'poppler-utils' package which allows you to convert pdfs into plain text. It only supports pdf, so you'll need to find another tool for epub and such
Unsigned · 2025-01-14 12:24
>>83063
I know, I've used these sorts of tools. PDF is a mess of a format and consequently difficult to speak about in general. Most computer generated PDFs from latex for instance are very friendly to text extraction, scans however are typically photographs pasted into the file and are do not easily give away their textual contents; they aren't even aware whether they have text content at all.
Pics related are samples from scans I have just to show some garbage. These aren't even particularly bad because I try to avoid keeping ones that are, but often you'll have i.e. pages that did not lay flat in the scanner and have some value gradient across the page. As many scans (reasonably) are compressed for storage by reducing pages to 1bit color, this has frequently the effect of rendering substantial fractions of many pages utterly illegible even to the patient human eye. These images just show garbage that will make processing difficult and in the case with the illustrations this isnt even 1bit color.
Debbie Charteris · 2025-01-14 13:58
>>83064
Yeah I guess that's true. You might be able to speed it up with OCR and human intervention whenever possible. For the final and possibly mangled text, you could use an LLM to predict the most likely word.
For example, in the first image it says "To each pint of this juice, add 0 X/3 pounds sugar". An LLM might be able to guess "pounds", but hell, I couldn't even guess the ratio lol.
Goodluck though!