Skip to content

Commit

Permalink
Merge pull request #322 from mlrun/marketplace-doc-gen-d18acbf
Browse files Browse the repository at this point in the history
Marketplace update from marketplace-doc-gen-d18acbf
  • Loading branch information
aviaIguazio authored Dec 26, 2023
2 parents dc207e7 + a261bfa commit 221c1ef
Show file tree
Hide file tree
Showing 20 changed files with 3,838 additions and 39 deletions.
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,64 @@
### Change log [2023-12-26 14:14:45]
1. Item Updated: `gen_class_data` (from version: `1.2.0` to `1.2.0`)
2. Item Updated: `churn_server` (from version: `1.1.0` to `1.1.0`)
3. Item Updated: `v2_model_server` (from version: `1.1.0` to `1.1.0`)
4. Item Updated: `xgb_custom` (from version: `1.1.0` to `1.1.0`)
5. Item Updated: `concept_drift_streaming` (from version: `1.1.0` to `1.1.0`)
6. Item Updated: `describe_dask` (from version: `1.1.0` to `1.1.0`)
7. Item Updated: `xgb_test` (from version: `1.1.1` to `1.1.1`)
8. Item Updated: `model_monitoring_stream` (from version: `1.1.0` to `1.1.0`)
9. Item Updated: `model_server_tester` (from version: `1.1.0` to `1.1.0`)
10. Item Updated: `open_archive` (from version: `1.1.0` to `1.1.0`)
11. Item Updated: `github_utils` (from version: `1.1.0` to `1.1.0`)
12. Item Updated: `load_dask` (from version: `1.1.0` to `1.1.0`)
13. Item Updated: `huggingface_auto_trainer` (from version: `1.0.0` to `1.0.0`)
14. Item Updated: `sql_to_file` (from version: `1.1.0` to `1.1.0`)
15. Item Updated: `xgb_trainer` (from version: `1.1.1` to `1.1.1`)
16. Item Updated: `hugging_face_serving` (from version: `1.0.0` to `1.0.0`)
17. Item Updated: `onnx_utils` (from version: `1.2.0` to `1.2.0`)
18. Item Updated: `batch_inference` (from version: `1.7.0` to `1.7.0`)
19. Item Updated: `hugging_face_classifier_trainer` (from version: `0.1.0` to `0.1.0`)
20. Item Updated: `coxph_test` (from version: `1.1.0` to `1.1.0`)
21. Item Updated: `describe_spark` (from version: `1.1.0` to `1.1.0`)
22. Item Updated: `load_dataset` (from version: `1.1.0` to `1.1.0`)
23. Item Updated: `auto_trainer` (from version: `1.4.0` to `1.4.0`)
24. Item Updated: `v2_model_tester` (from version: `1.1.0` to `1.1.0`)
25. Item Updated: `pii_recognizer` (from version: `0.1.0` to `0.1.0`)
26. Item Updated: `validate_great_expectations` (from version: `1.1.0` to `1.1.0`)
27. Item Updated: `bert_embeddings` (from version: `1.2.0` to `1.2.0`)
28. Item Updated: `model_server` (from version: `1.1.0` to `1.1.0`)
29. Item Updated: `pandas_profiling_report` (from version: `1.1.0` to `1.1.0`)
30. Item Updated: `stream_to_parquet` (from version: `1.1.0` to `1.1.0`)
31. Item Updated: `get_offline_features` (from version: `1.2.0` to `1.2.0`)
32. Item Updated: `azureml_utils` (from version: `1.3.0` to `1.3.0`)
33. Item Updated: `tf1_serving` (from version: `1.1.0` to `1.1.0`)
34. Item Updated: `virtual_drift` (from version: `1.1.0` to `1.1.0`)
35. Item Updated: `arc_to_parquet` (from version: `1.4.1` to `1.4.1`)
36. Item Updated: `question_answering` (from version: `0.2.0` to `0.2.0`)
37. Item Updated: `sklearn_classifier_dask` (from version: `1.1.1` to `1.1.1`)
38. Item Updated: `feature_selection` (from version: `1.3.0` to `1.3.0`)
39. Item Updated: `concept_drift` (from version: `1.1.0` to `1.1.0`)
40. Item Updated: `test_classifier` (from version: `1.1.0` to `1.1.0`)
41. Item Updated: `snowflake_dask` (from version: `1.1.0` to `1.1.0`)
42. Item Updated: `feature_perms` (from version: `1.1.0` to `1.1.0`)
43. Item Updated: `azureml_serving` (from version: `1.1.0` to `1.1.0`)
44. Item Updated: `send_email` (from version: `1.2.0` to `1.2.0`)
45. Item Updated: `batch_inference_v2` (from version: `2.2.0` to `2.2.0`)
46. Item Updated: `model_monitoring_batch` (from version: `1.1.0` to `1.1.0`)
47. Item Updated: `transcribe` (from version: `0.0.2` to `0.0.2`)
48. Item Updated: `describe` (from version: `1.2.0` to `1.2.0`)
49. Item Updated: `xgb_serving` (from version: `1.1.2` to `1.1.2`)
50. Item Updated: `slack_notify` (from version: `1.1.0` to `1.1.0`)
51. Item Updated: `tf2_serving` (from version: `1.1.0` to `1.1.0`)
52. Item Updated: `aggregate` (from version: `1.3.0` to `1.3.0`)
53. Item Updated: `sklearn_classifier` (from version: `1.1.1` to `1.1.1`)
54. Item Updated: `coxph_trainer` (from version: `1.1.0` to `1.1.0`)
55. Item Updated: `rnn_serving` (from version: `1.1.0` to `1.1.0`)
56. Item Updated: `speech_diarization` (from version: `2.0.0` to `2.0.0`)
57. Item Updated: `tf2_serving_v2` (from version: `1.1.0` to `1.1.0`)
58. Item Updated: `ingest` (from version: `1.1.0` to `1.1.0`)
59. Item Updated: `translate` (from version: `0.0.2` to `0.0.2`)

### Change log [2023-12-20 11:48:50]
1. Item Updated: `gen_class_data` (from version: `1.2.0` to `1.2.0`)
2. Item Updated: `churn_server` (from version: `1.1.0` to `1.1.0`)
Expand Down
2 changes: 1 addition & 1 deletion catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/development/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/development/tags.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"kind": ["nuclio", "dask", "nuclio:serving", "serving", "job"], "categories": ["Audio", "feature-store", "data-preparation", "data-validation", "model-training", "machine-learning", "Huggingface", "model-serving", "utils", "monitoring", "etl", "Deep Learning", "data-analysis", "model-testing"]}
{"kind": ["job", "serving", "dask", "nuclio", "nuclio:serving"], "categories": ["data-preparation", "Huggingface", "data-analysis", "NLP", "model-serving", "data-validation", "etl", "Audio", "model-training", "deep-learning", "model-testing", "monitoring", "feature-store", "machine-learning", "utils", "Deep Learning"]}
127 changes: 127 additions & 0 deletions functions/development/translate/0.0.2/src/function.yaml

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions functions/development/translate/0.0.2/src/item.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: v1
categories:
- data-preparation
- machine-learning
- deep-learning
- NLP
description: Translate text files from one language to another
doc: ''
example: translate.ipynb
generationDate: 2023-12-05:17-20
hidden: false
icon: ''
labels:
author: guyl
maintainers: []
marketplaceType: ''
mlrunVersion: 1.5.1
name: translate
platformVersion: 3.5.3
spec:
filename: translate.py
handler: translate
image: mlrun/mlrun
kind: job
requirements:
- transformers
- sentencepiece
- torch
- tqdm
url: ''
version: 0.0.2
test_valid: True
4 changes: 4 additions & 0 deletions functions/development/translate/0.0.2/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
transformers
tqdm
torch
sentencepiece
51 changes: 51 additions & 0 deletions functions/development/translate/0.0.2/src/test_translate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Copyright 2023 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
import tempfile

import mlrun


def test_translate():
project = mlrun.new_project("test-translate")
translate_fn = project.set_function("translate.py", "translate", image="mlrun/mlrun")
input_text = "Ali her gece bir kitap okur."
expected_translation = "Ali reads a book every night."

with tempfile.TemporaryDirectory() as test_dir:
with tempfile.TemporaryDirectory() as data_dir:
with open(os.path.join(data_dir, "test_tr.txt"), "w") as f:
f.write(input_text)
translate_run = translate_fn.run(
handler="translate",
inputs={
"data_path": data_dir,
},
params={
"model_name": "Helsinki-NLP/opus-mt-tr-en",
"device": "cpu",
"output_directory": test_dir,
},
local=True,
returns=[
"files: path",
"text_files_dataframe: dataset",
"errors: dict",
],
artifact_path=test_dir,
)
assert translate_run.status.state == "completed"
with open(os.path.join(test_dir, "test_tr.txt")) as f:
assert f.read() == expected_translation

Loading

0 comments on commit 221c1ef

Please sign in to comment.