From 8408521094fc38d6fbc69ce5ad4a8b2f905f1f1d Mon Sep 17 00:00:00 2001 From: truskovskiyk Date: Sun, 30 Jun 2024 20:26:27 -0400 Subject: [PATCH] security issues --- .gitignore | 3 ++- README copy.md | 1 - README.md | 2 +- module-1/k8s-resources/pod-app-web.yaml | 2 +- module-2/README.md | 18 +++++++++--------- module-2/processing/requirements.txt | 4 ++-- module-3/nlp-sample/requirements.txt | 6 ++---- module-4/requirements.txt | 2 +- module-5/requirements.txt | 6 +++--- module-6/requirements.txt | 6 +++--- module-7/requirements.txt | 4 ++-- 11 files changed, 26 insertions(+), 28 deletions(-) delete mode 100644 README copy.md diff --git a/.gitignore b/.gitignore index 7949330..ac29a13 100644 --- a/.gitignore +++ b/.gitignore @@ -161,4 +161,5 @@ cython_debug/ taskfile.yml TODO.md README.p.md -.DS_Store \ No newline at end of file +.DS_Store +README.private.md \ No newline at end of file diff --git a/README copy.md b/README copy.md deleted file mode 100644 index 2320892..0000000 --- a/README copy.md +++ /dev/null @@ -1 +0,0 @@ -# ml-in-production-practice \ No newline at end of file diff --git a/README.md b/README.md index 2320892..6776d76 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# ml-in-production-practice \ No newline at end of file +# ml-in-production-practice diff --git a/module-1/k8s-resources/pod-app-web.yaml b/module-1/k8s-resources/pod-app-web.yaml index 87a8d4f..4ec3333 100644 --- a/module-1/k8s-resources/pod-app-web.yaml +++ b/module-1/k8s-resources/pod-app-web.yaml @@ -5,4 +5,4 @@ metadata: spec: containers: - image: ghcr.io/kyryl-opens-ml/app-web:latest - name: pod-app-web + name: pod-app-web \ No newline at end of file diff --git a/module-2/README.md b/module-2/README.md index ba9ca6e..eae5818 100644 --- a/module-2/README.md +++ b/module-2/README.md @@ -2,37 +2,37 @@ ![alt text](./../docs/data.jpg) -# Practice +# Practice [Practice task](./PRACTICE.md) -*** +*** # Reference implementation -*** +*** # Minio -## Setup +## Setup -Create kind cluster +Create kind cluster -``` +```bash kind create cluster --name ml-in-production ``` -Run k9s +Run k9s -``` +```bash k9s -A ``` Install libraries. -``` +```bash pip install -r minio_storage/requirements.txt ``` diff --git a/module-2/processing/requirements.txt b/module-2/processing/requirements.txt index 93f586b..f77155a 100644 --- a/module-2/processing/requirements.txt +++ b/module-2/processing/requirements.txt @@ -1,7 +1,7 @@ numpy==1.22.3 -scikit-learn==1.1.2 +scikit-learn==1.5.0 typer==0.7.0 -ray==2.3.1 +ray==2.31.0 dask==2023.4.0 distributed==2023.4.0 pydantic==1.10.13 \ No newline at end of file diff --git a/module-3/nlp-sample/requirements.txt b/module-3/nlp-sample/requirements.txt index 1a2e4e1..2a365d9 100644 --- a/module-3/nlp-sample/requirements.txt +++ b/module-3/nlp-sample/requirements.txt @@ -1,12 +1,10 @@ -transformers==4.35.2 +transformers==4.42.3 datasets==2.15.0 accelerate==0.24.1 # peft==0.6.2 typer==0.6.1 wandb==0.13.3 -black==22.3.0 -isort==5.10.1 -flake8==5.0.4 +ruff==0.5.0 great-expectations==0.15.25 pytest-cov==3.0.0 # bitsandbytes==0.41.2 \ No newline at end of file diff --git a/module-4/requirements.txt b/module-4/requirements.txt index 36e85f3..8d20dda 100644 --- a/module-4/requirements.txt +++ b/module-4/requirements.txt @@ -1,4 +1,4 @@ kfp==1.8.9 -apache-airflow==2.3.0 +apache-airflow==2.9.2 apache-airflow-providers-cncf-kubernetes==1.0.0 cached-property==1.5.2 \ No newline at end of file diff --git a/module-5/requirements.txt b/module-5/requirements.txt index 3ba3e88..1c5403a 100644 --- a/module-5/requirements.txt +++ b/module-5/requirements.txt @@ -1,8 +1,8 @@ -gunicorn==21.2.0 +gunicorn==22.0.0 streamlit==1.29.0 uvicorn==0.24.0.post1 -fastapi==0.104.1 -transformers==4.35.2 +fastapi==0.111.0 +transformers==4.42.3 datasets==2.14.6 typer==0.9.0 wandb==0.16.1 diff --git a/module-6/requirements.txt b/module-6/requirements.txt index afa5698..e9276af 100644 --- a/module-6/requirements.txt +++ b/module-6/requirements.txt @@ -1,7 +1,7 @@ -gunicorn==20.1.0 +gunicorn==22.0.0 uvicorn==0.18.3 -fastapi==0.85.1 -transformers==4.21.1 +fastapi==0.111.0 +transformers==4.42.3 datasets==2.4.0 typer==0.6.1 wandb==0.13.3 diff --git a/module-7/requirements.txt b/module-7/requirements.txt index 5ad9f84..1e6e14b 100644 --- a/module-7/requirements.txt +++ b/module-7/requirements.txt @@ -1,8 +1,8 @@ -gunicorn==20.1.0 +gunicorn==22.0.0 streamlit==1.13.0 uvicorn==0.18.3 fastapi==0.85.1 -transformers==4.21.1 +transformers==4.42.3 datasets==2.4.0 typer==0.6.1 wandb==0.13.3