8 ms·
Playing with Open Source LLMs
- lrvick 1y agoCan we all please stop confusing freeware with Open Source? If something can not be reproduced from sources which are all distributed under an OSI license it is not Open Source. Non public sources of unknown license -> Closed source / Proprietary No training code, no training sources -> Closed source / Proprietary OSI public source code -> Open Source / Free Software These terms are very well defined. https://opensource.org/osd https://opensource.org/osd
- laughingcurve 1y agoGlad someone else said all this so I did not have to. Hats off to you
- lrvick 1y agoThe older I get the more I fear I am turning into Richard Stallman, but it is absolutely offensive to continually see corporate proprietary freeware binary blobs built from unlicensed sources be confused with Free Open Source Software which is a dramatically higher bar of investment in public good.
- laughingcurve 1y agoDon’t worry, until you’re chewing on your foot mid lecture, you’re good
- thewebguyd 1y ago> The older I get the more I fear I am turning into Richard Stallman You and me both. I always preferred and promoted FLOSS where possible but still had a bit of a pragmatic approach, but now the older I get the more I just want to rip out everything not free (as in freedom) from my life, and/or just go become a goat farmer. Stallman was right from the beginning, and big tech have proven over and over again that they are incapable of being good citizens. I'm probably a few more years away from "I'd like to interject for a moment..."
- diggan 1y agoThe worst part is that they even lack internal consistency, so they (someone at least) know it's wrong, yet they persist regardless. > https://www.llama.com/ https://www.llama.com/ - "Industry Leading, Open-Source AI" > https://www.llama.com/llama4/license/ https://www.llama.com/llama4/license/ - “Llama Materials” means, collectively, Meta’s proprietary Llama 4 Either the team that built the landing page (Marketing dept?) is wrong, or the legal department is wrong. I'm pretty sure I know who I'd bet on to be more correct.
- lrvick 1y agoMeta is indeed leading the gaslighting efforts to convince the press and masses that binary blobs provably built from pirated sources are actually Open Source. The sad part is it is working. It is almost like Meta is especially skilled at mass public manipulation.
- rightbyte 1y agoTo be fair Zuckerberg is not the worst, "OpenAI".
- diggan 1y agoTo be honest, they're more or less the same. Zuckerberg frequently talks proudly of his "open source models" constantly, while OpenAI at least doesn't claim to release open source models when they're not. Still, agree that the name should change, but in my eyes they're equally shit at knowing what "Open" is supposed to mean.
- oddb0d 1y ago> OSI public source code -> Open Source / Free Software Can we all please stop confusing Free/Libre Open Source with Open Source? https://www.gnu.org/philosophy/open-source-misses-the-point.en.html https://www.gnu.org/philosophy/open-source-misses-the-point.... Maybe if we'd focused on communicating the ethics the world wouldn't be so unaware of the differences
- lrvick 1y agoAre there any instances of OSI licensed code that are not Free Software making my statement here invalid? I was attempting to direct that when software is called Open Source and actually is based on OSI licensed sources, then they are likely talking about Free Software.
- oddb0d 1y agoThe last time I heard a comment along those lines I was attending a session by an Open Source person and up on screen they had a picture of RMS dressed as Che Guevara. All those silly ethics, they get in the way of the real work!
- atq2119 1y agoSince you didn't get a real answer yet: Absolutely. For example, MIT is an OSI license but it's not Free Software.
- jrm4 1y agoHonestly, I think "the framers" got it right here. Too much communicating of the ethics would have bogged down the useful legal work. My take is, Free Software actually won and we're in a post-that world.
- oddb0d 1y agoI'm not sure I fully understand - whilst I agree there's been useful legal work, we now have such a plethora of licenses I ended up having to back what I'd call basic common sense when someone was suggesting using a highly restrictive "community" license that had ridiculous intents such as saying you can't use it in this particular industry because that industry is "bad". The reason Free/Libre Open Source Software wins - and always will do in the long run - is because the four freedoms are super-simple and they reflect how the natural world works.
- j-bos 1y agoI mean the article did mention some legitimately open source models.
- lrvick 1y agoWhich would have been great to distinguish from the ones that certainly are not.
- jrm4 1y agoNo, because "open source" itself was never clear enough to carry that weight. That's why we keep being annoying about "Free Software."
- simonw 1y agoThe Open Source Initiative themselves decided a last year to relax their standards for AI models: they don't require the training data to be released. https://opensource.org/ai https://opensource.org/ai They do continue to require the core freedoms, most importantly "Use the system for any purpose and without having to ask for permission". That's why a lot of the custom licenses (Llama etc) don't fit the OSI definition.
- amelius 1y agoI don't agree with that definition. For a given model I want to know what I can/cannot expect from it. To have a better understanding of that, I need to know what it was trained on. For a (somewhat extreme) example, what if I use the model to write children's stories, and suddenly it regurgitates Mein Kampf? That would certainly ruin the day.
- echelon 1y agoToo bad. The OSI owns "open source". Big tech has been abusing open source to cheaply capture most of the internet and e-commerce anyway, so perhaps it's time we walked away from the term altogether. The OSI has abdicated the future of open machine learning. And that's fine. We don't need them. "Free software" is still a thing and it means a very specific and narrow set of criteria. [1, 2] There's also "Fair software" [3], which walks the line between CC BY-NC-SA and shareware, but also sticks it to big tech by preventing Redis/Elasticsearch capture by the hyperscalers. There's an open game engine [4] that has a pretty nice "Apache + NC" type license. --- Back on the main topic of "open machine learning": since the OSI fucked up, I came up with a ten point scale here [5] defining open AI models. It's just a draft, but if other people agree with the idea, I'll publish a website about it (so I'd appreciate your feedback!) There are ten measures by which a model can/should be open: 1. The model code (pytorch, whatever) 2. The pre-training code 3. The fine-tuning code (which might be very different from the pre-training code) 4. The inference code 5. The raw training data (pre-training + fine-tuning) 6. The processed training data (which might vary across various stages of pre-training and fine-tuning: different sizes, features, batches, etc.) 7. The resultant weights blob(s) 8. The inference inputs and outputs (which also need a license; see also usage limits like O-RAIL) 9. The research paper(s) (hopefully the model is also described and characterized in the literature!) 10. The patents (or lack thereof) A good open model will have nearly all of these made available. A fake "open" model might only give you two of ten. --- [1] https://www.fsf.org/ https://www.fsf.org/ [2] https://en.wikipedia.org/wiki/Free_software https://en.wikipedia.org/wiki/Free_software [3] https://fair.io/ https://fair.io/ [4] https://defold.com/license/ https://defold.com/license/ [5] https://news.ycombinator.com/item?id=44438329 https://news.ycombinator.com/item?id=44438329
- tbrownaw 1y ago> These terms are very well defined. https://opensource.org/osd https://opensource.org/osd Yes. And you're using them wrong. From the OSD: < The source code must be the preferred form in which a programmer would modify the program. > So, what's the preferred way to modify a model? You get the weights and then run fine-tuning with a relatively small amount of data. Which is way cheaper than re-training the entire thing from scratch. --- The issue is that normal software doesn't have a way to modify the binary artifacts without completely recreating them, and that AI models not only do have that but have a large cost difference. The development lifecycle has nodes that don't exist for normal software. Which means that really, AI models need their own different terminology that matches that difference. Say, open-weights and open-data or something. Kinda like how Creative Commons is a thing because software development lifecycle concepts don't map very well to literature or artwork either.
- channel_t 1y agoThis is definitely a useful exercise worth going through for the educational value before eventually surrendering and just using the big models owned by "unprofitable companies."
- lrvick 1y agoNever accepted the terms of service of any proprietary models-as-a-service providers and never will. Be one of the few humans still pretty good at using their own brains for those problems LLMs can't solve, and you will be very employable.
- mattmanser 1y agoIf you don't find out what the models can do, how can you know what problems they can't solve?
- lrvick 1y agoI am plenty able to keep up with experiments others are doing and their results, but as for me my time is best spent building things that have never existed before, that models have no prior art to implement.
- johnisgood 1y agoHow can you tell what you are building have never existed before? Especially without interacting with an LLM about it? You should assume it stores your chat though, so be careful about revealing it to ChatGPT and friends.
- lrvick 1y agoI build confidence this is true by using search engines that link to potentially related projects when I query them. The same data LLM trained on in the first place, except more up to date.
- simonw 1y ago> On paper, this looks like a success. In practice, the time spent crafting a prompt, waiting for the AI to run and fixing the small issue that came up immensely exceeds the 10 minutes it would have taken me to edit the file myself. I don’t think coding that way would lead me to a massive performance improvement for now. The models used in this experiment - deepseek-r1:8b, mistral:7b, qwen3:8b - are tiny. It's honestly a miracle that they produce anything that looks like working code at all! I'm not surprised that the conclusion was that writing without LLM assistance would be more productive in this case.
- mattmanser 1y agoYeah, the truth is avoiding the big players is silly right now. It's not the small models won't eventually work either, we have no idea how they can get compressed in future. Especially with people trying to get the mixture of experts approach working. Right now, you need the bigger models for good responses, but in a year's time? So the whole exercise was a bit of a waste of his time, the present target moves too quickly. This isn't a time to be clutching your pearls about running your own models unless you want to do something shady with AI. And like video streaming was progressed by the porn industry, a lot of people are watching the, um, "thirsty" AI enthusiasts for the big advances in small models.
- Mars008 1y agoThat's too simplified IMHO. Local models can do a lot. Like sorting texts, annotating images, text-speech, speech-text. It's much cheaper when it works. Software development is not in the list because the quality of output defines the time developers spend prompting and fixing. It's just faster and cheaper to use big model.
- giantrobot 1y agoYeah those small models can work for SillyTavern or some basic rubber ducking but they're not nearly large enough for coding. I have had no luck coding with anything smaller than 30b models. I've found 13b models to be not terrible for boilerplate and code completion. But 8b seems way too dumb for the task.
- roadside_picnic 1y agoWhile I'm always happy to see more people using open models, I was hoping the "playing" would be a bit more about actually interacting with the models themselves, rather than just running them. For anyone interested in playing around with the internals of LLMs without needing to worry about having the hardware to train locally, a couple of projects I've found really fun and educational: - Implement speculative decoding for two different sized models that share a tokenizer [0] - Enforce structured outputs through constrained decoding (a great way to dive deeper in to regex parsing as well). - Create a novel sampler using entropy or other information about token probabilities The real value of open LLMs, at least for me, has been that they aren't black boxes, you can open them up and take a look inside. For all the AI hype it's a bit of shame that so few people seem to really be messing around with the insides of LLMs. 0. https://arxiv.org/pdf/2211.17192 https://arxiv.org/pdf/2211.17192
- 44za12 1y ago“I used all the top tier ‘Open Source LLMs’ and they suck I was right, like always, LLMs suck so hard, my job is safe!”
- runningmike 1y agoNice writeup and status update on use of Foss ml things. Saves me a lot of time!
- BoorishBears 1y agoDeepseek R1 8B isn't famous for anything (except maybe being confused for Deepseek R1) and isn't by Deepseek anymore than me finetuning Llama makes me the creator of Llama.
- v3ss0n 1y agoThose LLM influencers don't know what is a distill. Deepseek R1 8B IS A DISTILLED Qwen2 .you should be using qwen3 8b-14b instead a lot better
- ikejix 1y agoWhat kind of hardware do we need to run those models?