Hub documentation

Licenses

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Licenses

You are able to add a license to any repo that you create on the Hugging Face Hub to let other users know about the permissions that you want to attribute to your code or data. The license can be specified in your repository’s README.md file, known as a card on the Hub, in the card’s metadata section. Remember to seek out and respect a project’s license if you’re considering using their code or data.

A full list of the available licenses is available here:

FullnameLicense identifier (to use in repo card)
Apache license 2.0apache-2.0
MITmit
OpenRAIL license familyopenrail
BigScience OpenRAIL-Mbigscience-openrail-m
CreativeML OpenRAIL-Mcreativeml-openrail-m
BigScience BLOOM RAIL 1.0bigscience-bloom-rail-1.0
BigCode Open RAIL-M v1bigcode-openrail-m
Academic Free License v3.0afl-3.0
Artistic license 2.0artistic-2.0
Boost Software License 1.0bsl-1.0
BSD license familybsd
BSD 2-clause “Simplified” licensebsd-2-clause
BSD 3-clause “New” or “Revised” licensebsd-3-clause
BSD 3-clause Clear licensebsd-3-clause-clear
Computational Use of Data Agreementc-uda
Creative Commons license familycc
Creative Commons Zero v1.0 Universalcc0-1.0
Creative Commons Attribution 2.0cc-by-2.0
Creative Commons Attribution 2.5cc-by-2.5
Creative Commons Attribution 3.0cc-by-3.0
Creative Commons Attribution 4.0cc-by-4.0
Creative Commons Attribution Share Alike 3.0cc-by-sa-3.0
Creative Commons Attribution Share Alike 4.0cc-by-sa-4.0
Creative Commons Attribution Non Commercial 2.0cc-by-nc-2.0
Creative Commons Attribution Non Commercial 3.0cc-by-nc-3.0
Creative Commons Attribution Non Commercial 4.0cc-by-nc-4.0
Creative Commons Attribution No Derivatives 4.0cc-by-nd-4.0
Creative Commons Attribution Non Commercial No Derivatives 3.0cc-by-nc-nd-3.0
Creative Commons Attribution Non Commercial No Derivatives 4.0cc-by-nc-nd-4.0
Creative Commons Attribution Non Commercial Share Alike 2.0cc-by-nc-sa-2.0
Creative Commons Attribution Non Commercial Share Alike 3.0cc-by-nc-sa-3.0
Creative Commons Attribution Non Commercial Share Alike 4.0cc-by-nc-sa-4.0
Community Data License Agreement – Sharing, Version 1.0cdla-sharing-1.0
Community Data License Agreement – Permissive, Version 1.0cdla-permissive-1.0
Community Data License Agreement – Permissive, Version 2.0cdla-permissive-2.0
Do What The F*ck You Want To Public Licensewtfpl
Educational Community License v2.0ecl-2.0
Eclipse Public License 1.0epl-1.0
Eclipse Public License 2.0epl-2.0
Etalab Open License 2.0etalab-2.0
European Union Public License 1.1eupl-1.1
European Union Public License 1.2eupl-1.2
GNU Affero General Public License v3.0agpl-3.0
GNU Free Documentation License familygfdl
GNU General Public License familygpl
GNU General Public License v2.0gpl-2.0
GNU General Public License v3.0gpl-3.0
GNU Lesser General Public License familylgpl
GNU Lesser General Public License v2.1lgpl-2.1
GNU Lesser General Public License v3.0lgpl-3.0
ISCisc
H Research Licenseh-research
Intel Research Use License Agreementintel-research
LaTeX Project Public License v1.3clppl-1.3c
Microsoft Public Licensems-pl
Apple Sample Code licenseapple-ascl
Apple Model License for Researchapple-amlr
Mozilla Public License 2.0mpl-2.0
Open Data Commons License Attribution familyodc-by
Open Database License familyodbl
Open Model, Data & Weights License Agreementopenmdw-1.0
Open Model, Data & Weights License Agreement v1.1openmdw-1.1
Open Rail++-M Licenseopenrail++
Open Software License 3.0osl-3.0
PostgreSQL Licensepostgresql
SIL Open Font License 1.1ofl-1.1
University of Illinois/NCSA Open Source Licensencsa
The Unlicenseunlicense
zLib Licensezlib
Open Data Commons Public Domain Dedication and Licensepddl
Lesser General Public License For Linguistic Resourceslgpl-lr
DeepFloyd IF Research License Agreementdeepfloyd-if-license
FAIR Noncommercial Research Licensefair-noncommercial-research-license
Llama 2 Community License Agreementllama2
Llama 3 Community License Agreementllama3
Llama 3.1 Community License Agreementllama3.1
Llama 3.2 Community License Agreementllama3.2
Llama 3.3 Community License Agreementllama3.3
Llama 4 Community License Agreementllama4
Grok 2 Community License Agreementgrok2-community
Gemma Terms of Usegemma
Unknownunknown
Otherother

In case of license: other please add the license’s text to a LICENSE file inside your repo (or contact us to add the license you use to this list), and set a name for it in license_name.

Update on GitHub