OpenRAIL-M v1 is the model license released by the BigCode project, specifically version CodeML OpenRAIL-M 0.1, used to license the first machine learning models developed by the BigCode project. This license belongs to the Open Responsible AI License (OpenRAIL) series and is intended to allow free, open access to, reuse of, and downstream distribution of AI models and their derivative works for research, commercial, or non-commercial purposes, provided that the use restrictions in the license always apply, including to derivative works.
Key capabilities and features:
- Allows royalty-free access to, downstream use of, and redistribution of the licensed materials and their derivative works.
- Requires that license terms related to responsible use be embedded in downstream distribution and that any legal agreement be consistent with the license terms (e.g., Section 5, Attachment A).
- Contains a set of use restrictions specifying purposes for which the model must not be used. For CodeML OpenRAIL-M, the restrictions are mainly inspired by BigScience's approach to LLM licensing and include specific scenarios in which code generation models may be used as harmful tools due to user intent or technical limitations.
- The "M" in the license stands for "Model", i.e., the artifact that is licensed and subject to use restrictions.
- This license is not an open source license (as defined by the Open Source Initiative), because it imposes restrictions on model use, but it does not restrict reuse, distribution, commercialization, or adaptation, as long as it is not used for restricted use cases.
- The licensed subject matter is the ML models developed by the BigCode project; any source code related to the BigCode ML models is licensed under the Apache 2.0 license.
- The use restrictions apply to derivative works of the model. Distribution and use of any derivative work should be subject to at least the same use restrictions.
- The license requires that when code is generated using the model or code is distributed, it must be clearly stated that the code was generated by the model (restriction f).
- There are 4 modifications compared with the BigScience OpenRAIL-M license: the preamble is adapted to code generation models; the supplementary materials (source code) are not under this license but are separately licensed under Apache 2.0; Article 7 no longer requires users to make reasonable efforts to use the latest version of the model; Attachment A adds restriction (c), prohibiting the use of the model to generate and/or propagate malware.
How to use: Users must comply with the license terms when using BigCode models. If the model is modified, fine-tuned, and embedded in an application (such as a coding assistant), that application is considered a derivative work of the model, and its use is subject to the license's use restConstraints; when commercializing, usage restrictions need to be integrated into subsequent licenses and/or terms of service. When distributing the model or derivative works, any license or legal agreement may be used, but responsible use terms must be embedded and consistency maintained.
Applicable scenarios: Suitable for researchers, developers, and companies who wish to use, modify, and distribute BigCode models in an open manner, including commercial and non-commercial uses, but not for uses restricted by the license (such as generating malware, etc.).
Restrictions and considerations:
- The license's list of usage restrictions does not cover all possible harmful use cases, and focuses only on scenarios that may raise concern.
- The model itself has no built-in remote restriction mechanism, but if hosted via an API, access can be remotely restricted by revoking API keys.
- Users are responsible for inputs (prompts) and outputs (generated text/code), and should scan generated code for malware.
- The model may hallucinate and output sensitive data (such as PII), and users must comply with relevant laws and best practices.
- The dataset may contain undetected malicious code; users should scan the dataset themselves with the latest antivirus software and scan generated code before use.
- Developers should inform end users of malware risks and take necessary precautions.
- Regarding questions such as whether model output code belongs to existing repositories, attribution, and license notices, BigCode provides tools such as the "Am I in the Stack?" opt-out tool and dataset search, but users must check licensing requirements themselves.
The page also provides a FAQ covering the license definition, open-source attributes, what is licensed, applicability of restrictions, examples, the malware restriction, differences from the BigScience license, community feedback, other RAIL licenses, and governance considerations.