this post was submitted on 07 Aug 2024
34 points (92.5% liked)

Open Source

31256 readers
322 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 3 months ago (2 children)

If I license a binary as open source does that make it open source?

[–] [email protected] 4 points 3 months ago (1 children)
[–] [email protected] 7 points 3 months ago (1 children)

My point precisely :)

A pre-trained model alone can't really be open source. Without the source code and full data set used to generate it, a model alone is analogous to a binary.

[–] [email protected] 1 points 3 months ago (2 children)

@sunstoned @Ephera That's nonsense. You could write the scripts, collect the data, publish all, but without the months of GPU training you wouldn't have the trained model, so it would all be worthless. The code used to train all the proprietary models is already open-source, it's things like PyTorch, Tensorflow etc. For a model to be open-source means you can download the weights and you are allowed to use it as you please, including modifying it and publishing again. It's not about the dataset.

[–] [email protected] 5 points 3 months ago (1 children)

Quite aggressive there friend. No need for that.

You have a point that intensive and costly training process plays a factor in the usefulness of a truly open source gigantic model. I'll assume here that you're referring to the likes of Llama3.1's heavy variant or a similarly large LLM. Note that I wasn't referring to gigantic LLMs specifically when referring to "models". It is a very broad category.

However, that doesn't change the definition of open source.

If I have an SDK to interact with a binary and "use it as [I] please" does that mean the binary is then open source because I can interact with it and integrate it into other systems and publish those if I wish? :)

[–] [email protected] -1 points 3 months ago (1 children)

@sunstoned Please don't assume anything, it's not healthy.

To answer your question - it depends on the license of that binary. You can't just automatically consider something open-source. Look at the license. Meta, Microsoft and Google routinely misrepresents their licenses, calling them "open-source" even when they aren't.

But the main point is that you can put closed source license on a model trained from open-source data. Unfortunately. You are barking under the wrong tree.

[–] [email protected] 2 points 3 months ago

Please don't assume anything, it's not healthy.

Explicitly stating assumptions is necessary for good communication. That's why we do it in research. :)

it depends on the license of that binary

It doesn't, actually. A binary alone, by definition, is not open source as the binary is the product of the source, much like a model is the product of training and refinement processes.

You can't just automatically consider something open source

On this we agree :) which is why saying a model is open source or slapping a license on it doesn't make it open source.

the main point is that you can put closed source license on a model trained from open source data

  1. Actually the ability to legally produce closed source material depends heavily on how the data is licensed in that case
  2. This is not the main point, at all. This discussion is regarding models that are released under an open source license. My argument is that they cannot be truly open source on their own.
[–] [email protected] 3 points 3 months ago (1 children)

Just because open source AI is not feasible at the moment is no reason to change the definition of open source.

[–] [email protected] -1 points 3 months ago (1 children)

@dandi8 but you are the one who is changing it. And who said it's not feasible? Mixtral model is open-source. WizardLM2 is open-source. Phi3:mini is open-source... what's your point?

But the license of the model is not related to the license of the data used for training, nor the license for the scripts and libraries. Those are three separate things.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

https://en.m.wikipedia.org/wiki/Open-source_software

Open-source software (OSS) is computer software that is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software and its source code to anyone and for any purpose.

From Mistral's FAQ:

We do not communicate on our training datasets. We keep proprietary some intermediary assets (code and resources) required to produce both the Open-Source models and the Optimized models. Among others, this involves the training logic for models, and the datasets used in training.

https://huggingface.co/mistralai/Mistral-7B-v0.1/discussions/8

Unfortunately we're unable to share details about the training and the datasets (extracted from the open Web) due to the highly competitive nature of the field.

The training data set is a vital part of the source code because without it, the rest of it is useless. The model is the compiled binary, the software itself.

If you can't share part of your source code due to the "highly competetive nature of the field" (or whatever other reason), your software is not open source.

I cannot lool at Mistral's source and see that, oh yes, it behaves this way because it was trained on this piece of data in particular - because I was not given accesa to this data.

I cannot build Mistral from scratch, because I was not given a vital piece of the recipe.

I cannot fork Mistral and create a competitor from it, because the devs specifically said they're not providing the source because they don't want me to.

You can keep claiming that releasing the binary makes it open source, but that's not going to make it correct.

[–] [email protected] -1 points 3 months ago (1 children)

@dandi8

> The training data set is a vital part of the source code because without it, the rest of it is useless.

This is simply false. Dataset is not the "source code" of a model. You need to delete this notion from your brain. Model is not the same as a compiled binary.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

Gee, you sure put a lot of effort into supporting your argument in this comment.

[–] [email protected] -1 points 3 months ago (1 children)

@dandi8 But the proof is in your quote. Open source is a license which allows people to study the source code. The source code of a model is a bunch of float numbers, and you can study it as much as you want in Mixtral and others. Clearly a model can be published without the dataset (Mixtral), and also a model can be closed, hosted, unavailable for study (OpenAI). I think you need to find some argument showing how "source code" of a model = the dataset. It just isn't so.

[–] [email protected] 1 points 3 months ago (1 children)

That's like saying the source code of a binary is a bunch of hexadecimal numbers. You can use a hex editor to look at the "source" of every binary but it's not human readable...

Yes, the model can be published without the dataset - that makes it, by definition, freeware (free to distribute). It can even be free for commercial use. That doesn't make it open source.

At best, the tools to generate a model may be open source, but, by definition, the model itself can never be considered open-source unless the training data and the tools are both open-source.

[–] [email protected] -1 points 3 months ago (1 children)

@dandi8 surprise surprise, LLMs are not a classic compiled software, in case you haven't noticed yet. You can't just transfer the same notions between these two. That's like wondering why quantum physics doesn't work the same as agriculture.

Think of it as a database. If you have an open-source social network, all tools and code is published, free to use, but the value of the network is in the posts, the accounts, the people who keep coming back. The data in the database is not the source code

[–] [email protected] 1 points 3 months ago (1 children)

You're trying to change the definition of open source for AI models and your argument is that they're magic so different rules should apply.

No, they're not fundamentally different from other software. Not by that much.

The training data is the source of knowledge for the AI model. The tools to train the model are the compiler for that AI model. What makes an AI model different from another is both the source of knowledge and the compiler of that knowledge.

AFAIK, only one of those things is open source for Mistral - the compiler of knowledge.

You can make an argument that tools to make Mistral models are open source. You cannot make an argument that the model Mistral Nemo is open source, as what makes it specifically that model is the compiler and the training data used, and one of those is unavailable.

Therefore, I can agree on the social network analogy if we're talking about whether the tools to make Mistral models are open-source. I cannot agree if we're talking about the models themselves, which is what everyone's interested in when talking about AI.

[–] [email protected] -1 points 3 months ago* (last edited 3 months ago) (1 children)

@dandi8 I'm not changing the definition of open-source. And I'm not saying models are magic. Please take your strawmen back. You are the one saying that dataset is source code, and you have no backing for this argument. I agree that dataset is the "source for training", but that doesn't make it "source code" as per the open-source licenses. And the tools are not the compiler. Just because something was created from something else, that doesn't turn it into "source code".

[–] [email protected] 1 points 3 months ago

We'll have to agree to disagree on pretty much everything, then.

[–] [email protected] -1 points 3 months ago (1 children)

Yes. And then you're obligated to give the source code too.

[–] [email protected] 2 points 3 months ago (1 children)

You would be obligated, if your goal were to be complying with the spirit and description of open source (and sleeping well at night, in my opinion).

Do you have the source code and full data set used to train the "open source" model you're referring to?

[–] [email protected] 1 points 3 months ago (1 children)

I mean you would be legally obligated. You can sue someone who uses the GPL and doesn't provide their sources.

[–] [email protected] 0 points 3 months ago

Do you plan to sue the provider of your "open source" model? If so, would the goal be to force the provider to be in full compliance with the license (access to their source code and training set)? Would the goal be to force them to change the license to something they comply with?