Skip to content

Commit 0fe125e

Browse files
Automatically generated by github-worflow[bot] for commit: fe3e099 (#456)
Co-authored-by: iguazio-cicd <[email protected]>
1 parent d48b51e commit 0fe125e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+14815
-84
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
### Change log [2025-11-18 11:25:34]
2+
1. Item Updated: `histogram_data_drift` (from version: `1.0.0` to `1.0.0`)
3+
2. New item created: `openai_proxy_app` (version: `1.0.0`)
4+
3. Item Updated: `count_events` (from version: `1.0.0` to `1.0.0`)
5+
4. New item created: `evidently_iris` (version: `1.0.0`)
6+
7+
### Change log [2025-11-18 11:25:26]
8+
1. Item Updated: `test_classifier` (from version: `1.1.0` to `1.1.0`)
9+
2. Item Updated: `sklearn_classifier` (from version: `1.2.0` to `1.2.0`)
10+
3. Item Updated: `model_server_tester` (from version: `1.1.0` to `1.1.0`)
11+
4. Item Updated: `azureml_serving` (from version: `1.1.0` to `1.1.0`)
12+
5. Item Updated: `describe_dask` (from version: `1.2.0` to `1.2.0`)
13+
6. Item Updated: `batch_inference` (from version: `1.8.0` to `1.8.0`)
14+
7. Item Updated: `v2_model_server` (from version: `1.2.0` to `1.2.0`)
15+
8. Item Updated: `gen_class_data` (from version: `1.3.0` to `1.3.0`)
16+
9. Item Updated: `send_email` (from version: `1.2.0` to `1.2.0`)
17+
10. Item Updated: `tf2_serving` (from version: `1.1.0` to `1.1.0`)
18+
11. Item Updated: `aggregate` (from version: `1.4.0` to `1.4.0`)
19+
12. Item Updated: `open_archive` (from version: `1.2.0` to `1.2.0`)
20+
13. Item Updated: `describe` (from version: `1.4.0` to `1.4.0`)
21+
14. Item Updated: `v2_model_tester` (from version: `1.1.0` to `1.1.0`)
22+
15. Item Updated: `text_to_audio_generator` (from version: `1.3.0` to `1.3.0`)
23+
16. Item Updated: `pii_recognizer` (from version: `0.4.0` to `0.4.0`)
24+
17. Item Updated: `github_utils` (from version: `1.1.0` to `1.1.0`)
25+
18. Item Updated: `sklearn_classifier_dask` (from version: `1.1.1` to `1.1.1`)
26+
19. Item Updated: `azureml_utils` (from version: `1.4.0` to `1.4.0`)
27+
20. Item Updated: `question_answering` (from version: `0.5.0` to `0.5.0`)
28+
21. Item Updated: `structured_data_generator` (from version: `1.6.0` to `1.6.0`)
29+
22. Item Updated: `arc_to_parquet` (from version: `1.5.0` to `1.5.0`)
30+
23. Item Updated: `silero_vad` (from version: `1.4.0` to `1.4.0`)
31+
24. Item Updated: `load_dataset` (from version: `1.2.0` to `1.2.0`)
32+
25. Item Updated: `auto_trainer` (from version: `1.8.0` to `1.8.0`)
33+
26. Item Updated: `feature_selection` (from version: `1.6.0` to `1.6.0`)
34+
27. Item Updated: `translate` (from version: `0.3.0` to `0.3.0`)
35+
28. Item Updated: `describe_spark` (from version: `1.1.0` to `1.1.0`)
36+
29. Item Updated: `pyannote_audio` (from version: `1.3.0` to `1.3.0`)
37+
30. Item Updated: `onnx_utils` (from version: `1.3.0` to `1.3.0`)
38+
31. Item Updated: `batch_inference_v2` (from version: `2.6.0` to `2.6.0`)
39+
32. Item Updated: `transcribe` (from version: `1.2.0` to `1.2.0`)
40+
33. Item Updated: `model_server` (from version: `1.2.0` to `1.2.0`)
41+
34. Item Updated: `mlflow_utils` (from version: `1.1.0` to `1.1.0`)
42+
35. Item Updated: `noise_reduction` (from version: `1.1.0` to `1.1.0`)
43+
36. Item Updated: `hugging_face_serving` (from version: `1.1.0` to `1.1.0`)
44+
145
### Change log [2025-11-17 14:01:16]
246
1. Item Updated: `histogram_data_drift` (from version: `1.0.0` to `1.0.0`)
347
2. Item Updated: `openai_proxy_app` (from version: `1.0.0` to `1.0.0`)

catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

functions/master/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

functions/master/tags.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"categories": ["NLP", "monitoring", "genai", "deep-learning", "model-serving", "data-generation", "utils", "model-training", "audio", "data-analysis", "data-preparation", "machine-learning", "model-testing"], "kind": ["job", "nuclio:serving", "serving"]}
1+
{"kind": ["job", "serving", "nuclio:serving"], "categories": ["utils", "model-testing", "data-generation", "machine-learning", "NLP", "data-analysis", "model-serving", "monitoring", "deep-learning", "model-training", "data-preparation", "audio", "genai"]}

functions/master/translate/0.3.0/src/function.yaml

Lines changed: 116 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: v1
2+
categories:
3+
- genai
4+
- NLP
5+
description: Translate text files from one language to another
6+
doc: ''
7+
example: translate.ipynb
8+
generationDate: 2023-12-05:17-20
9+
hidden: false
10+
icon: ''
11+
labels:
12+
author: Iguazio
13+
maintainers: []
14+
marketplaceType: ''
15+
mlrunVersion: 1.10.0-rc41
16+
name: translate
17+
platformVersion: 3.5.3
18+
spec:
19+
filename: translate.py
20+
handler: translate
21+
image: mlrun/mlrun
22+
kind: job
23+
requirements:
24+
- transformers
25+
- sentencepiece
26+
- torch>=2.6
27+
- tqdm
28+
url: ''
29+
version: 0.3.0
30+
test_valid: True
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
transformers
2+
tqdm
3+
torch>=2.6
4+
sentencepiece
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2023 Iguazio
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
import os.path
15+
import tempfile
16+
17+
import mlrun
18+
19+
20+
def test_translate():
21+
project = mlrun.new_project("test-translate")
22+
translate_fn = project.set_function("translate.py", "translate", image="mlrun/mlrun")
23+
input_text = "Ali her gece bir kitap okur."
24+
expected_translation = "Ali reads a book every night."
25+
26+
with tempfile.TemporaryDirectory() as test_dir:
27+
with tempfile.TemporaryDirectory() as data_dir:
28+
with open(os.path.join(data_dir, "test_tr.txt"), "w") as f:
29+
f.write(input_text)
30+
translate_run = translate_fn.run(
31+
handler="translate",
32+
inputs={
33+
"data_path": data_dir,
34+
},
35+
params={
36+
"model_name": "Helsinki-NLP/opus-mt-tr-en",
37+
"device": "cpu",
38+
"output_directory": test_dir,
39+
},
40+
local=True,
41+
returns=[
42+
"files: path",
43+
"text_files_dataframe: dataset",
44+
"errors: dict",
45+
],
46+
artifact_path=test_dir,
47+
)
48+
assert translate_run.status.state == "completed"
49+
with open(os.path.join(test_dir, "test_tr.txt")) as f:
50+
assert f.read() == expected_translation
51+

0 commit comments

Comments
 (0)