Skip to content

Commit 54b34ae

Browse files
authored
Add missing model licenses. (#609)
Also, both the abbreviation or the full is accepted by the backend: https://github.com/Kaggle/kaggleazure/blob/aa12660a3bb6321ca2134110633571485ed049fc/Kaggle.Services.Models/Handlers/ModelApiService/V1/CreateModelInstanceHandler.cs#L118 Drive-by fix for the wiki URL.
1 parent 8312acf commit 54b34ae

File tree

2 files changed

+74
-2
lines changed

2 files changed

+74
-2
lines changed

src/KaggleSwagger.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,30 +2041,66 @@ definitions:
20412041
type: string
20422042
description: The license that should be associated with the model instance
20432043
default: Apache 2.0
2044+
# Use go/kaggle-models-license-values-swagger to get the accepted values (both abbreviation & full name are accepted)
20442045
enum:
2046+
- CC0 1.0
20452047
- CC0: Public Domain
20462048
- CC BY-NC-SA 4.0
2049+
- Unknown
20472050
- CC BY-SA 4.0
20482051
- GPL 2
20492052
- CC BY-SA 3.0
2053+
- Other
2054+
- Other (specified in description)
2055+
- CC BY 4.0
20502056
- Attribution 4.0 International (CC BY 4.0)
2057+
- CC BY-NC 4.0
20512058
- Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
2059+
- PDDL
20522060
- ODC Public Domain Dedication and Licence (PDDL)
2061+
- CC BY 3.0
20532062
- Attribution 3.0 Unported (CC BY 3.0)
2063+
- CC BY 3.0 IGO
20542064
- Attribution 3.0 IGO (CC BY 3.0 IGO)
2065+
- CC BY-NC-SA 3.0 IGO
20552066
- Attribution-NonCommercial-ShareAlike 3.0 IGO (CC BY-NC-SA 3.0 IGO)
2067+
- CDLA Permissive 1.0
20562068
- Community Data License Agreement - Permissive - Version 1.0
2069+
- CDLA Sharing 1.0
20572070
- Community Data License Agreement - Sharing - Version 1.0
2071+
- CC BY-ND 4.0
20582072
- Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
2073+
- CC BY-NC-ND 4.0
20592074
- Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
2075+
- ODC-BY 1.0
20602076
- ODC Attribution License (ODC-By)
2077+
- LGPL 3.0
20612078
- GNU Lesser General Public License 3.0
2079+
- AGPL 3.0
20622080
- GNU Affero General Public License 3.0
2081+
- FDL 1.3
20632082
- GNU Free Documentation License 1.3
2083+
- apache-2.0
20642084
- Apache 2.0
2085+
- mit
20652086
- MIT
2087+
- bsd-3-clause
20662088
- BSD-3-Clause
2089+
- Llama 2
2090+
- Llama 2 Community License
2091+
- Gemma
2092+
- gpl-3
20672093
- GPL 3
2094+
- RAIL-M
2095+
- AI Pubs Open RAIL-M License
2096+
- AIPubs Research-Use RAIL-M
2097+
- AI Pubs Research-Use RAIL-M License
2098+
- BigScience OpenRAIL-M
2099+
- BigScience Open RAIL-M License
2100+
- RAIL
2101+
- RAIL (specified in description)
2102+
- Llama 3
2103+
- Llama 3 Community License
20682104
fineTunable:
20692105
type: boolean
20702106
description: Whether the model instance is fine tunable
@@ -2108,30 +2144,66 @@ definitions:
21082144
type: string
21092145
description: The license that should be associated with the model instance
21102146
default: Apache 2.0
2147+
# Use go/kaggle-models-license-values-swagger to get the accepted values (both abbreviation & full name are accepted)
21112148
enum:
2149+
- CC0 1.0
21122150
- CC0: Public Domain
21132151
- CC BY-NC-SA 4.0
2152+
- Unknown
21142153
- CC BY-SA 4.0
21152154
- GPL 2
21162155
- CC BY-SA 3.0
2156+
- Other
2157+
- Other (specified in description)
2158+
- CC BY 4.0
21172159
- Attribution 4.0 International (CC BY 4.0)
2160+
- CC BY-NC 4.0
21182161
- Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
2162+
- PDDL
21192163
- ODC Public Domain Dedication and Licence (PDDL)
2164+
- CC BY 3.0
21202165
- Attribution 3.0 Unported (CC BY 3.0)
2166+
- CC BY 3.0 IGO
21212167
- Attribution 3.0 IGO (CC BY 3.0 IGO)
2168+
- CC BY-NC-SA 3.0 IGO
21222169
- Attribution-NonCommercial-ShareAlike 3.0 IGO (CC BY-NC-SA 3.0 IGO)
2170+
- CDLA Permissive 1.0
21232171
- Community Data License Agreement - Permissive - Version 1.0
2172+
- CDLA Sharing 1.0
21242173
- Community Data License Agreement - Sharing - Version 1.0
2174+
- CC BY-ND 4.0
21252175
- Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
2176+
- CC BY-NC-ND 4.0
21262177
- Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
2178+
- ODC-BY 1.0
21272179
- ODC Attribution License (ODC-By)
2180+
- LGPL 3.0
21282181
- GNU Lesser General Public License 3.0
2182+
- AGPL 3.0
21292183
- GNU Affero General Public License 3.0
2184+
- FDL 1.3
21302185
- GNU Free Documentation License 1.3
2186+
- apache-2.0
21312187
- Apache 2.0
2188+
- mit
21322189
- MIT
2190+
- bsd-3-clause
21332191
- BSD-3-Clause
2192+
- Llama 2
2193+
- Llama 2 Community License
2194+
- Gemma
2195+
- gpl-3
21342196
- GPL 3
2197+
- RAIL-M
2198+
- AI Pubs Open RAIL-M License
2199+
- AIPubs Research-Use RAIL-M
2200+
- AI Pubs Research-Use RAIL-M License
2201+
- BigScience OpenRAIL-M
2202+
- BigScience Open RAIL-M License
2203+
- RAIL
2204+
- RAIL (specified in description)
2205+
- Llama 3
2206+
- Llama 3 Community License
21352207
fineTunable:
21362208
type: boolean
21372209
description: Whether the model instance is fine tunable

src/kaggle/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,11 +1658,11 @@ class Help(object):
16581658
command_model_instances_new = 'Create a new model instance'
16591659
param_model_instance_downfile = (
16601660
'Folder for downloading the special model-instance-metadata.json file '
1661-
'(https://github.com/Kaggle/kaggle-api/wiki/ModelInstance-Metadata). ')
1661+
'(https://github.com/Kaggle/kaggle-api/wiki/Model-Metadata#model-instance). ')
16621662
param_model_instance_upfile = (
16631663
'Folder for upload, containing data files and a '
16641664
'special model-instance-metadata.json file '
1665-
'(https://github.com/Kaggle/kaggle-api/wiki/ModelInstance-Metadata). '
1665+
'(https://github.com/Kaggle/kaggle-api/wiki/Model-Metadata#model-instance). '
16661666
'Defaults to current working directory')
16671667
command_model_instances_delete = 'Delete a model instance'
16681668
command_model_instances_update = 'Update a model instance'

0 commit comments

Comments
 (0)