Skip to content

Commit 2878d7f

Browse files
authored
[Category] Fix and add categories to functions (#808)
* [Category] Fix and add categories to functions * bump version in structured * test is not valid in huggingface_serving
1 parent cef3f4f commit 2878d7f

File tree

24 files changed

+143
-135
lines changed

24 files changed

+143
-135
lines changed

bert_embeddings/function.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,33 @@ kind: remote
22
metadata:
33
name: bert-embeddings
44
tag: ''
5-
hash: 57a2ce8e0da1f6e813a8649e9ea6fcbb69a1ce5f
5+
hash: ecf6647fe4716e0df54ce50278b735034536a568
66
project: ''
77
labels:
88
framework: pytorch
99
categories:
10+
- huggingface
1011
- machine-learning
1112
- data-preparation
13+
- pytorch
1214
spec:
1315
command: ''
1416
args: []
1517
image: mlrun/mlrun
1618
build:
1719
functionSourceCode: IyBDb3B5cmlnaHQgMjAxOSBJZ3VhemlvCiMKIyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKIyB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuCiMgWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0CiMKIyAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wCiMKIyBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlCiMgZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gIkFTIElTIiBCQVNJUywKIyBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3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3NbMF0ubnVtcHkoKSwgZW1iZWRkaW5nc1sxXS5udW1weSgpXQogICAgcmV0dXJuIHBpY2tsZS5kdW1wcyhlbWJlZGRpbmdzKQo=
1820
commands: []
19-
code_origin: http://github.com/aviaIguazio/functions.git#a1c9940e4c2420c88063768b4038e29b1f4e37a6:/Users/Avi_Asulin/PycharmProjects/mlrun/functions/bert_embeddings/bert_embeddings.py
20-
origin_filename: /Users/Avi_Asulin/PycharmProjects/mlrun/functions/bert_embeddings/bert_embeddings.py
21+
code_origin: ''
22+
origin_filename: ''
2123
requirements:
2224
- torch
2325
description: Get BERT based embeddings for given text
2426
default_handler: ''
2527
disable_auto_mount: false
2628
clone_target_dir: ''
27-
env: []
29+
env:
30+
- name: MLRUN_HTTPDB__NUCLIO__EXPLICIT_ACK
31+
value: enabled
2832
priority_class_name: ''
2933
preemption_mode: prevent
3034
min_replicas: 1

bert_embeddings/item.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
apiVersion: v1
22
categories:
3+
- huggingface
34
- machine-learning
45
- data-preparation
6+
- pytorch
57
description: Get BERT based embeddings for given text
68
doc: ''
79
example: bert_embeddings.ipynb
@@ -23,4 +25,4 @@ spec:
2325
requirements:
2426
- torch
2527
url: ''
26-
version: 1.2.0
28+
version: 1.3.0

hugging_face_classifier_trainer/function.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ kind: job
22
metadata:
33
name: hugging-face-classifier-trainer
44
tag: ''
5-
hash: e8113e81f04c96fc9a8a94e717dea81ee3e05a18
5+
hash: f9d8aa4a2c66e24fa418bb163829adc3e2ada06c
66
project: ''
77
labels:
88
author: davids
99
categories:
10+
- deep-learning
11+
- huggingface
1012
- machine-learning
1113
- model-training
1214
spec:

hugging_face_classifier_trainer/item.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apiVersion: v1
22
categories:
3+
- deep-learning
4+
- huggingface
35
- machine-learning
46
- model-training
57
description: Automatic train and optimize functions for HuggingFace framework
@@ -28,4 +30,4 @@ spec:
2830
- datasets~=2.10.1
2931
- scikit-learn~=1.0.2
3032
url: ''
31-
version: 0.2.0
33+
version: 0.3.0

hugging_face_serving/function.yaml

Lines changed: 17 additions & 24 deletions
Large diffs are not rendered by default.

hugging_face_serving/item.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apiVersion: v1
22
categories:
3+
- huggingface
4+
- genai
35
- model-serving
46
- machine-learning
57
description: Generic Hugging Face model server.
@@ -26,4 +28,5 @@ spec:
2628
- transformers==4.21.3
2729
- tensorflow==2.9.2
2830
url: ''
29-
version: 1.0.0
31+
version: 1.1.0
32+
test_valid: false

huggingface_auto_trainer/function.yaml

Lines changed: 47 additions & 69 deletions
Large diffs are not rendered by default.

huggingface_auto_trainer/item.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apiVersion: v1
22
categories:
3+
- huggingface
4+
- genai
35
- machine-learning
46
- model-training
57
description: fine-tune llm model with ease
@@ -22,4 +24,4 @@ spec:
2224
kind: job
2325
requirements: []
2426
url: ''
25-
version: 1.0.0
27+
version: 1.1.0

pii_recognizer/function.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ kind: job
22
metadata:
33
name: pii-recognizer
44
tag: ''
5-
hash: b09b7b9a4ffd55088d665a0191055411e9198a2f
5+
hash: 818930645d33704e9cada919769ee9d93cbb9434
66
project: ''
77
labels:
88
author: pgw
99
categories:
1010
- machine-learning
1111
- data-preparation
12+
- NLP
1213
spec:
1314
command: ''
1415
args: []

pii_recognizer/item.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
categories:
33
- machine-learning
44
- data-preparation
5+
- NLP
56
description: This function is used to recognize PII in a directory of text files
67
doc: ''
78
example: pii_recognizer.ipynb
@@ -30,5 +31,5 @@ spec:
3031
- st-annotated-text
3132
- https://huggingface.co/beki/en_spacy_pii_distilbert/resolve/main/en_spacy_pii_distilbert-any-py3-none-any.whl
3233
url: ''
33-
version: 0.2.0
34+
version: 0.3.0
3435
test_valid: False

0 commit comments

Comments
 (0)