GooogleDev
BANNED
- Apr 2, 2024
- 121
- 120
local llms are basically "offline" ai models so you can creaate content with themCan you please elaborate this further.
local llms are basically "offline" ai models so you can creaate content with themCan you please elaborate this further.
Google "how to fine tune an LLM" as there's a few different ways and they can get technical.As I feel like this is a tangent to the topic of this discussion, anyone has knowledge on how one can tarin an existing LLM in order to make it "sound" in a certain way? For example if I want to make it chat like an actor per say, and not like a "Helpful Assistant". What should be done to achieve such results? What I mean is just to "release" it from its patter of speaking and make it chat more like a human (and more exactly in a way I wish-providing relevant examples)
But one of the simplest is to feed a model a large set of text of how you want it to sound. In your example I might scrape as many written interviews and transcripts of the target actor as possible, making sure to remove interviewer questions and other non-actor text. I'd do this on a locally installed model that I control.
Input and reply is a good way to train as well, it's just different and your model has to be prepared for that type of training. I don't have much experience with that type though, so I don't know the particulars. But if it's set up correctly it should learn from that format.Thanks bro this was exactly wat I was looking for. I failed first try because the training file I used was formatted something like this:
user input: *blablabla*
reply: *some stuff*
so like I gave it hypothetical inputs and the replies I would want it to give to them. this way I thought it should learn how to respond to some specific questions (inputs) and than learn further from them and adapt to new test data (thatwas not present in the train data)
I would have one more question in this direction tho: What could I do to instruct it to follow a certain answer when asked a certain type of question? example: I want it to always say it lives in X city when asked about that. OR I want it to handle certain inputs in some specific manner (so it will not really generate a random response to those queries, but rather formulate a reply in a direction that I want it to, based on the input it takes)
Thanks for sharing your experience. This stull can be pretty overwhelming when there are millions of things u can do and not even sure what is the best approach for your needs.Input and reply is a good way to train as well, it's just different and your model has to be prepared for that type of training. I don't have much experience with that type though, so I don't know the particulars. But if it's set up correctly it should learn from that format.
If your model is giving hallucinatory answers the main way I know to deal with it is to scaffold it carefully, as in walk it through producing the content you need in steps, making sure to provide it with all reference data or information and reminding it not to include anything else. Like for biographical details you put them in your prompt and set up the workflow so it's not being re-asked at random points. If you can't control when/where it answers because it's a chatbot or something then I don't know how that's best done but I'd assume there's premade models out there that would be good starting points.
Are you absolutely sure there’s nowhere to scrape the type of convos you need? Since in the end ML is only as good as the dataset it was trained on.My only problem now is gathering a big enough dataset, since it s impossible to make it all manual (or even to scrape).
hey thanks for those good advices. I managed to gather some data than I used an AI model to replicate same style of messages in order to expend on that small dataset I had. managed to get a total of 500 rows (which is not optimal nor a lot a lot. would need way more to actually make it completely work), but even with this, I fine tunned the llama3.1 most recent model using some pre-made google collab and, to my very own surprise, it worked incedibly well.Are you absolutely sure there’s nowhere to scrape the type of convos you need? Since in the end ML is only as good as the dataset it was trained on.
With the caveat that I’ve never played much with chatbots so can’t provide real insight (and assuming you’re looking for nsfw which I also know very little about) I might try: running reddit, tg, twitter, ig, tt users trying to chat with accounts you want to mimic, running a sfw or other imperfect chatbot and collecting logs of what people are saying to you then filling in your own correct answers, hiring one or more manual chatters (no idea what they cost so maybe this is dumb) to collect logs, scraping reddit, tg, twitter, ig, tt for flirty public exchanges (would be a huge bother to clean up I guess).
That's awesome! If you find a good host plz share. Are you using 8b?hey thanks for those good advices. I managed to gather some data than I used an AI model to replicate same style of messages in order to expend on that small dataset I had. managed to get a total of 500 rows (which is not optimal nor a lot a lot. would need way more to actually make it completely work), but even with this, I fine tunned the llama3.1 most recent model using some pre-made google collab and, to my very own surprise, it worked incedibly well.
really good results from the get go, without even changing default instructions of the model or anyhing. it already started chatting in the way I desired. which is really impressive considering the low efort I put in and the size of the training data.
now my only issue is hosting that trained model so that I can access it trough sone API calls and make it accessible trough my py scripts. I just hope I wont need to rent some super expensive GPUs for this, since that would basically make all this work useless![]()
yes so I was able to run my model using simple ollama and hosting on a cheap Hetzner server for like 45$ / monthThat's awesome! If you find a good host plz share. Are you using 8b?