TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A fully open-source (Apache 2.0)implementation of llama

158 pointsby osuritsabout 2 years ago
We believe that AI should be fully open source and part of the collective knowledge.<p>The original LLaMA code is GPL licensed which means any project using it must also be released under GPL.<p>This &quot;taints&quot; any other code and prevents meaningful academic and commercial use.<p>Lit-LLaMA solves that for good.

17 comments

adeonabout 2 years ago
I think implying that GPL is not &quot;fully open source&quot; is a hot take. It&#x27;s specifically designed to ensure you and anyone you distribute your code gets the same freedoms. Maybe you don&#x27;t agree that it&#x27;s a good license but that is its intention. GPL vs BSD-type licenses I guess is decades long argument by now.<p>Maybe I&#x27;m a naive idealist but IMO the GPL-family of licenses are underrated. You can use them to make sure you don&#x27;t work for free for someone who won&#x27;t share their improvements.<p>I liked the choice of AGPL for AUTOMATIC1111 Stable Diffusion web UI. (<a href="https:&#x2F;&#x2F;github.com&#x2F;AUTOMATIC1111&#x2F;stable-diffusion-webui">https:&#x2F;&#x2F;github.com&#x2F;AUTOMATIC1111&#x2F;stable-diffusion-webui</a>)<p>Commercial interests are very allergic to AGPL which ensures the project stays community-run and new features and fixes will prioritize the most ordinary user doing things for fun.
评论 #35346654 未加载
评论 #35352641 未加载
ipsum2about 2 years ago
FYI, there&#x27;s something fishy going on in this thread. Multiple people from the LightningAI team theaniketmaurya (developer advocate for Lightning AI) and rasbt (developer at Lightning AI) are shilling for this post without disclosing their affiliations. The account that submitted this (osurits) also only has two comments, also with the same behavior.<p>Having interacted with the Lightning AI team in the past, this is unsurprising behavior.
评论 #35347821 未加载
querezabout 2 years ago
IANAL, but this seems very fishy to me: 1) I don&#x27;t understand how this isn&#x27;t a derivative work of the original code, as I very highly doubt you&#x27;ve done a clean room implementation. I doubt this would hold up in court.<p>2) Doesn&#x27;t the original FB license also apply to the weights? Just re-implementing the code would not change the license on the weights. So while THE CODE may now be re-licensed, the weights would still fall under the original license.<p>I&#x27;d love if someone with more legal understanding could shed some light on this.
评论 #35347122 未加载
评论 #35346593 未加载
评论 #35350559 未加载
2Gkashmiriabout 2 years ago
Bs.<p>Prevents meaningful academic.....<p>How the hell does agpl prevent academic use? Commercial use sure because agpl follows 4 freedoms and commercial often wants to take someone else&#x27;s work, slap their brand without acknowledging the original work. That and the downstream is often closed source for &quot;business reasons&quot; which causes their users to not enjoy the fruits of the first party&#x27;s licensing.<p>Where does academia come into it? Are researchers now keeping everything under wraps for &quot;shareholders interests&quot;?<p>Isn&#x27;t academia supposed to be open culture from the start without any restrictions so what am I missing or are they mixing two unrelated things?<p>Also, I think I might be wrong but isn&#x27;t it merely converting llama into their version? Uh ...
评论 #35346391 未加载
alexb_about 2 years ago
&gt;GPL...prevents meaningful academic and commercial use<p>WTF are you talking about?
评论 #35346697 未加载
homarpabout 2 years ago
llama.cpp is also MIT<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ggerganov&#x2F;llama.cpp">https:&#x2F;&#x2F;github.com&#x2F;ggerganov&#x2F;llama.cpp</a><p>previously discussed here <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35100086" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35100086</a><p>and one of the rust wrapper: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35171527" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35171527</a> (also MIT)
barefegabout 2 years ago
But aren’t the weights still not for commercial use?
评论 #35346212 未加载
ficiekabout 2 years ago
If you hate GPL so much then I assume that you don&#x27;t run any GPL licensed code on your machines then. I admire your resolve because I would think that is pretty hard!
javimhabout 2 years ago
No, the GPL doesn&#x27;t prevent meaningful academic or commercial use; rather, it seeks to prevent individuals from taking advantage of free software to limit the freedom of other users. It is important to note that if you live in a free country, there are laws that protect the liberties of all citizens and prevent actions that could restrict those freedoms.
blendergeekabout 2 years ago
&gt; We believe that AI should be fully open source and part of the collective knowledge.<p>As do I.<p>&gt; The original LLaMA code is GPL licensed which means any project using it must also be released under GPL.<p>Yep. This ensures that AI is &quot;fully open source and part of the collective knowledge.&quot;<p>&gt; This &quot;taints&quot; any other code and prevents meaningful academic and commercial use.<p>Taints? As in &quot;makes fully open source&quot;? Isn&#x27;t that the goal?<p>&gt; Lit-LLaMA solves that for good.<p>Lit-LLaMA helps people create proprietary closed-source AI instead of the fully open source AI required by Llama. Okay.
nynxabout 2 years ago
There are already a million ways to run LLaMA. This doesn&#x27;t change the issue at all, which is that the weights aren&#x27;t commercially licensed.
评论 #35346744 未加载
评论 #35346706 未加载
nlabout 2 years ago
Just noting that HuggingFace has a Llama code implementation[1]. It&#x27;s also under an Apache 2 license.<p>While this seems to be nice code I don&#x27;t particularly see any reason to use that over HuggingFace transformers, where you can easily swap out alternative implementations.<p>Also, going to legal restrictions on the Facebook LLama code when there are much stronger restrictions on the use of the model seems an odd thing to do. It&#x27;s true that in some - not all - jurisdictions it is possible the model might not be copyrightable - but you&#x27;d have a bold legal department to rely on those arguments. It&#x27;s also moderately likely that an instruction-tuned Llama (like Alpaca) <i>would</i> be copyrightable even in those jurisdictions.<p>TL;DR: Use the HuggingFace transformers library. You can experiment with Llama and switch to truly free models like GPT-J or anything new that arrives very easily.<p>[1] <a href="https:&#x2F;&#x2F;huggingface.co&#x2F;docs&#x2F;transformers&#x2F;main&#x2F;model_doc&#x2F;llama" rel="nofollow">https:&#x2F;&#x2F;huggingface.co&#x2F;docs&#x2F;transformers&#x2F;main&#x2F;model_doc&#x2F;llam...</a>
AmuVarmaabout 2 years ago
Llama by FB is under a non-commercial license not a GPL license, so I assume you are using a different base model, what model is that?
评论 #35351734 未加载
评论 #35345922 未加载
lekeabout 2 years ago
I&#x27;m still confused about this. Does it require you to have a chatGPT API key for it to work?
yewnorkabout 2 years ago
I see this as a win for the AI community. The key for LLMs is to enable people to train collaboratively and innovate more quickly in this space. Are there any examples or demos available that showcase the capabilities of &quot;lit-llama&quot;?
theaniketmauryaabout 2 years ago
I am in love with this implementation considering the ability to run on 8 GB VRAM and Apache 2.0 license.
评论 #35344897 未加载
rasbtabout 2 years ago
I guess that means time to fire up a few GPUs later today and get some weights! We should have a weight exchange platform for that maybe, haha.
评论 #35346491 未加载