

TITLE
Default Model Licenses

COMMENTS
8

REACTIONS
+1: 1
-1: 0
laugh: 0
hooray: 0
heart: 0
rocket: 0
eyes: 0

BODY
Hi, thanks for the great library!

I've been trying to compile a list of licenses for the default models and wanted to share in case others were wondering about it. Here's what I have so far:

*Note: table has been updated based on this discussion.*

Task | Model | License | Model Card w/ License
--- | --- | --- | ---
feature-extraction | distilbert-base-cased | Apache-2.0 | ✓ (added)
sentiment-analysis | distilbert-base-uncased-finetuned-sst-2-english | Apache-2.0 | ✓ (added)
ner | dbmdz/bert-large-cased-finetuned-conll03-english | MIT* (added) | 
question-answering | distilbert-base-cased-distilled-squad | Apache-2.0 | ✓ (added)
fill-mask | distilroberta-base | Apache-2.0 | ✓
text-generation | gpt2 | MIT* | ✓
summarization | sshleifer/distilbart-cnn-12-6 | Apache-2.0 | ✓ 
translation, text2text-generation | t5-base | Apache-2.0 | ✓
zero-shot-classification (PyTorch) | facebook/bart-large-mnli | MIT (added) | ✓ (added)
zero-shot-classification (TensorFlow) | roberta-large-mnli |  MIT | ✓
conversational | microsoft/DialoGPT-medium | MIT | ✓

Notes:

- `distil` models without a model card are listed as Apache 2.0 based on this comment: https://github.com/huggingface/transformers/issues/3357#issuecomment-614856396
- `gpt2` was changed from MIT to a custom license earlier this year: [history](https://github.com/openai/gpt-2/commits/master/LICENSE)
- Other `dbmdz` models use MIT (https://github.com/huggingface/transformers/pull/3492), but didn't find info on `dbmdz/bert-large-cased-finetuned-conll03-english`. If the model was fine-tuned from a pretrained BERT model, I imagine it would need to retain Apache 2.0 in addition to how the final model is licensed.

It'd be nice to get clarification on the two models that are missing licenses (and ideally ensure all default models have a clear license going forward).