You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* made task_types only accept transformers tasks
* renamed base_model_spec
* added additional task_type options
* updated docu and changes
* added unit test case with illegal task_type for delete models udf
---------
Co-authored-by: Ariel Schulz <43442541+ArBridgeman@users.noreply.github.com>
Copy file name to clipboardExpand all lines: doc/changes/unreleased.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ Code name: T.B.D
4
4
5
5
## Summary
6
6
7
+
T.B.D
8
+
7
9
### BREAKING CHANGES:
8
10
9
11
* The `max_length` parameter has been renamed to `max_new_tokens`, and its behavior changed. Both of these changes where done in accordance with changes in the [transformers library](https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.TextGenerationPipeline).
*`token_conn`: The connection name containing the token required for private models. You can use an empty string ('') for public models. For details on how to create a connection object with token information, please check the [Getting Started](./setup#getting-started) section.
107
+
*`token_conn`: The connection name containing the token required for private models.
108
+
You can use an empty string ('') for public models. For details on how to create a
109
+
connection object with token information, please see the
Some models can be used for multiple types of tasks, but Hugging Face Transformers stores different metadata depending on the task of the model, which affects how the model is loaded later. Setting an incorrect task type, or leaving the task type empty may affect the models performance severely.
115
+
Some models can be used for multiple types of tasks, but Hugging Face Transformers
116
+
stores different metadata depending on the task of the model, which affects how the
117
+
model is loaded later. Setting an incorrect task type, or leaving the task type empty
Note that you may use underscores (`_`) instead of dashes (`-`).
139
+
140
+
We also support the installation of models using the following transformers tasks:
141
+
142
+
*`document-question-answering`
143
+
*`mask-generation`
144
+
*`table-question-answering`
145
+
*`feature-extraction`
146
+
147
+
However, we do not offer built in UDFs for using these models. So if you need models
148
+
supporting these tasks, you will need to write your own UDF for running it.
149
+
150
+
More information about transformers tasks can be found in the [pipeline task parameter description](https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline.task).
151
+
152
+
##### Legacy Task Types
153
+
154
+
We previously supported the followin task_types:
155
+
156
+
*`ai_fill_mask_extended`
157
+
*`filling_mask`
158
+
*`sequence_classification`
159
+
*`ai_complete_extended`
160
+
*`ai_extract_extended`
161
+
162
+
Models installed with these task types are no longer compatible with our
163
+
prediction UDFs. If you still need these models, you will need to re-install
164
+
them using the new task-types described above.
165
+
166
+
However, listing and deleting these models will still work using both the UDF and the Python API.
167
+
122
168
123
169
### Model Uploader Script
124
170
@@ -164,10 +210,14 @@ Similar to [Store Models in BucketFS](#store-models-in-bucketfs), you have two o
164
210
In order to do this, you might need to find out which models are safed in the Exasol BucketFS. To do this,
165
211
we provide the `TE_LIST_MODELS_UDF`. See details at the end of this section.
166
212
213
+
Note: If you installed models using a custom task_type, or a task_type we do
214
+
not support anymore, you are still able to list and then delete these models using both the UDF and the Python API.
215
+
167
216
168
217
### Delete Model UDF
169
218
170
-
Using the `TE_DELETE_MODEL_UDF` below, you can delete a model from BucketFS. The parameter values are similar to that one used in [Store Models in BucketFS](#store-models-in-bucketfs).
219
+
Using the `TE_DELETE_MODEL_UDF` below, you can delete a model from BucketFS.
220
+
The parameter values are similar to that one used in [Store Models in BucketFS](#store-models-in-bucketfs).
171
221
172
222
Run the UDF with:
173
223
@@ -223,6 +273,10 @@ for potential error messages, in addition to the input.
223
273
This UDF will fail to return a model if it was saved with the sub_dir parameter empty,
224
274
or if no config.json file can be found in the model files.
225
275
276
+
Note: If you installed models using a custom task_type, or a task_type we do
277
+
not support anymore, you are still able to list these models using the UDF.
0 commit comments