KBlueLeaf commited on
Commit
5d4df92
1 Parent(s): 2381485

Create LICENSE.md

Browse files
Files changed (1) hide show
  1. LICENSE.md +166 -0
LICENSE.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Kohaku License 1.0
2
+
3
+ **Published by KohakuBlueLeaf**
4
+
5
+ ## Purpose
6
+
7
+ The **Kohaku License** aims to provide maximum freedom for users to work with the AI model while protecting contributors from liability and ensuring the freedom of end users. It incorporates commercial usage restrictions to balance open access with sustainable development.
8
+
9
+ ## Definitions
10
+
11
+ - **Model**: Refers to machine learning model weights, biases, parameters, optimizer states, and any byproducts of a training or pretraining process, whether in the form of checkpoints or any other form.
12
+
13
+ - **Derived Model**: Any model based on the original Model. For a Derived Model to qualify under this license, it must include:
14
+ - **Load**: The means to access the weights, biases, parameters, optimizer states, etc., into a commonly used framework or programming language (such as Python, PyTorch, TensorFlow, JAX, etc.).
15
+ - **Use**: The capability to utilize the Model within these frameworks or programming languages.
16
+
17
+ Additionally, any Derived Model designed for use within a custom pipeline that combines multiple models must:
18
+ - Publish all combined Models.
19
+ - Provide a script, program, or source code that enables recipients to load and use these Models, ensuring that recipients can obtain real outputs from the Models and thereby qualify as **Model Input Providers**.
20
+
21
+ **Note**: The author is not required to release documentation or instructions on how to use these Models to achieve specific services or pipelines, if applicable.
22
+
23
+ - **Software**: Includes the Model along with documentation or other resources provided with the software.
24
+
25
+ - **Source Code**: The preferred form for making modifications to the Software, including any Models, but excluding datasets used to train the Model.
26
+
27
+ - **Modify**: To perform any training on a Model or to combine a Model with another Model.
28
+
29
+ - **Service Provider**: An entity that uses the Model to offer services to **Model Input Providers**, thereby making the **Model Input Providers** the recipients of the service.
30
+
31
+ - **Model Input Provider**: Any individual or entity that provides input to the Model, either directly or through a custom pipeline, thereby having rights to the output generated from their input.
32
+
33
+ - **Service End-User**: Any individual or entity that utilizes a service provided by a **Service Provider** which, in turn, utilizes the Model. Essentially, the **Service End-User** is the ultimate recipient of the service provided using the Model.
34
+
35
+ - **Custom Pipeline**: Any pipeline, workflow or product that integrates the Model into a sequence of processes, where the input from the **Model Input Provider** may be modified before being sent to the Model. In such cases, the entity providing the initial input is considered the **Model Input Provider**.
36
+
37
+ - **Non-Commercial Purpose**: Uses that do not involve direct or indirect payment arising from the use of the Model or its output, including personal research, experimentation, testing, or non-commercial organizational use.
38
+
39
+ - **Commercial Usage**: Any entity providing any kind of service to **Model Input Providers** in any commercial capacity, where the **Model Input Providers** are the recipients of the service.
40
+
41
+ ## License Grant
42
+
43
+ ### 1. General Permissions
44
+
45
+ Subject to compliance with this License, KohakuBlueLeaf grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty-free, and limited license to access, use, modify, create Derived Models, and distribute the Model for **Non-Commercial Purposes** and **Commercial Usage** under certain conditions.
46
+
47
+ ### 2. Categories of Use
48
+
49
+ #### a. Direct Users
50
+ Individuals or entities that use the Model directly for their personal or internal purposes without providing services to third parties.
51
+
52
+ #### b. Service Providers
53
+ Entities that use the Model to offer services to **Model Input Providers**, thereby making the **Model Input Providers** the recipients of the service.
54
+
55
+
56
+ ### 3. Output Rights
57
+
58
+ All rights to the outputs generated by the Model belong to the **Model Input Providers**. **Model Input Providers** retain full ownership and rights to any output generated from their inputs.
59
+
60
+ ### 4. Derivative Models
61
+
62
+ Any Derived Models created must be published under the **Kohaku License**. The minimal requirement for a Derived Model includes the model weights and the minimal code necessary to load and use the Model as defined above.
63
+
64
+ **Additional Requirements for Derived Models in Custom Pipelines:**
65
+ - If the Derived Model is part of a custom pipeline that combines multiple models, all such Models must be published under the **Kohaku License**.
66
+ - The author of the Derived Model must provide a script, program, or source code that allows recipients to load and utilize all combined Models within a commonly used framework or programming language, ensuring that recipients can obtain real outputs and qualify as **Model Input Providers**.
67
+ - **Example**: If you have ModelA, ModelB, and ModelC in your pipeline, you should release these three models and their own code, but you don't need to release anything related to "how to combine these three models."
68
+ - **Note**: The author is not obligated to release instructions or documentation on how to use these Models to achieve specific services or pipelines.
69
+
70
+ ## Restrictions
71
+
72
+ ### 1. Commercial Usage
73
+ - **Definition**: **Commercial Usage** is defined as any entity providing any kind of service to **Model Input Providers** in any commercial capacity.
74
+ - **Conditions for Requiring a Custom License**: Commercial Usage is prohibited **only if both** of the following conditions are met:
75
+ - **Total Revenue** exceeds $25,000 USD.
76
+ - **Usage Duration** exceeds 3 months.
77
+ - **Revenue Threshold and Usage Duration**:
78
+ - **Trial Period**: Entities are allowed to engage in **Commercial Usage** without a custom license for a trial period of **up to 3 months**, regardless of total revenue.
79
+ - **Revenue Limit**: Entities with **Total Revenue** below or equal to $25,000 USD are permitted to continue **Commercial Usage** without a custom license.
80
+ - **Exceeding Both Thresholds**: If an entity's **Total Revenue** exceeds $25,000 USD and the **Commercial Usage** period exceeds 3 months, the entity must request an exclusive custom license from the author.
81
+ - **Exclusions**: **Commercial Usage** conducted by entities that do not meet both conditions above (i.e., either revenue below $25,000 USD or usage period within 3 months) does not require a custom license but must adhere to all other license terms.
82
+ - **Requesting a Custom License**: Entities that need to engage in **Commercial Usage** exceeding both thresholds must contact the author at [Your Contact Email] to request a custom license. The author may grant such licenses at their sole discretion, potentially subject to fees, royalties, or revenue-sharing agreements.
83
+
84
+ ### 2. Prohibited Uses
85
+
86
+ You may not:
87
+ - Use, modify, copy, reproduce, create Derived Models of, or distribute the Model for:
88
+ - Military purposes.
89
+ - Surveillance, including research or development related to surveillance.
90
+ - Biometric processing.
91
+ - Any activity that infringes on third-party rights.
92
+ - Any use violating applicable laws, including privacy and security regulations.
93
+ - Alter or remove copyright and proprietary notices.
94
+ - Circumvent or remove any security or usage restrictions.
95
+ - Impose terms that conflict with this License.
96
+ - Distribute the Model to prohibited individuals, entities, or countries as defined by Export Laws.
97
+
98
+ ### 3. Distribution Requirements
99
+
100
+ When distributing the Model or any Derived Models, you must:
101
+ - Include a copy of this License.
102
+ - **Attribution Notice**: Prominently display the following notice alongside the distribution of the Model or Derived Model (e.g., via a “Notice” text file):
103
+ ```
104
+ “The Model is licensed under the Kohaku License by KohakuBlueLeaf. Copyright 2024 KohakuBlueLeaf.
105
+
106
+ IN NO EVENT SHALL KohakuBlueLeaf BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE USE OF THIS MODEL.”
107
+ ```
108
+ - **Derived Models**:
109
+ - When distributing Derived Models, include a statement indicating that you have modified the original Model.
110
+ - Ensure that all combined Models in custom pipelines are published under this License.
111
+ - Provide a script, program, or source code that allows recipients to load and use all combined Models within a commonly used framework or programming language, ensuring that recipients can obtain real outputs and qualify as **Model Input Providers**.
112
+ - **No Misrepresentation**: Do not misrepresent or imply that Derived Models are official products of the author or have been endorsed, approved, or validated by the author unless authorized in writing.
113
+ - **Explicit Notice to Model Input Providers**: For any kind of **Commercial** or **Non-Commercial** service, **Service Providers** must provide **Model Input Providers** with an explicit notice of the Model’s source.
114
+ - **Clear Reference to Original Model and License for Service End-Users**: **Service Providers** must provide **Service End-Users** with a clear reference to the original Model and this **Kohaku License**. This can be achieved through visible notices within the service interface, documentation, or other appropriate means.
115
+
116
+
117
+ ## No Harm and No Liability
118
+
119
+ ### 1. No Harm
120
+
121
+ You agree that no contributor’s conduct in creating the Model has caused you harm. To the extent permitted by law, you waive the right to pursue any legal claims against contributors related to the creation of the Model.
122
+
123
+ ### 2. No Liability
124
+
125
+ The Model is provided "as is" without any warranty. Contributors are not liable for any damages arising from the use of the Model.
126
+
127
+
128
+ ## Patent Grant
129
+
130
+ Each contributor grants you the rights to use any patent claims they can license or have the right to license related to the Model.
131
+
132
+
133
+ ## Output Rights
134
+
135
+ All rights to the outputs generated by the Model belong to the **Model Input Providers**. **Model Input Providers** retain full ownership and rights to any output generated from their inputs.
136
+
137
+
138
+ ## Interpretation of Ambiguous Terms
139
+
140
+ In the event of any ambiguity or uncertainty in the interpretation of the terms of this License, the Licensee has the right to interpret the ambiguous descriptions in a manner that aligns with the intended purpose of this License.
141
+
142
+
143
+ ## Acceptance and Compliance
144
+
145
+ By using the Model, you agree to comply with all terms of this License. Non-compliance may result in the termination of your rights under this License.
146
+
147
+
148
+ ## Termination
149
+
150
+ This License terminates automatically upon any breach. Upon termination, cease all use, access, and distribution of the Model and Derived Models.
151
+
152
+
153
+ ## Indemnification
154
+
155
+ You agree to indemnify and hold harmless KohakuBlueLeaf and its affiliates from any claims arising from your use of the Model, violation of this License, or infringement of any rights of others.
156
+
157
+
158
+ ## General Provisions
159
+ - **Governing Law**: This License is governed by the laws of [Your Jurisdiction], without regard to conflict of law principles.
160
+ - **Severability**: If any provision is found unenforceable, the remaining provisions remain in effect.
161
+ - **Entire Agreement**: This License constitutes the entire agreement between you and KohakuBlueLeaf regarding the Model.
162
+ - **No Waiver**: Failure to enforce any provision does not constitute a waiver of that provision.
163
+
164
+ ## Revisions
165
+
166
+ KohakuBlueLeaf may publish revised versions of the Kohaku License. You may opt to follow the terms of any later version as they become available.