diff --git a/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.ipynb b/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.ipynb index 2446f11fc8..f439f90952 100644 --- a/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.ipynb +++ b/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.ipynb @@ -904,6 +904,7 @@ "metadata": {}, "outputs": [], "source": [ + "import numpy as np\n", "import intel_extension_for_tensorflow as itex\n", "\n", "itex.experimental_ops_override()" diff --git a/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.py b/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.py index d8ba1f3daa..00f3e4d131 100644 --- a/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.py +++ b/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/JobRecommendationSystem.py @@ -428,6 +428,7 @@ def lemmatize_text(text): # Now, let us import Intel Extension for TensorFlow*. We are using Python API `itex.experimental_ops_override()`. It automatically replace some TensorFlow operators by Custom Operators under `itex.ops` namespace, as well as to be compatible with existing trained parameters. # %% +import numpy as np import intel_extension_for_tensorflow as itex itex.experimental_ops_override() diff --git a/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/sample.json b/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/sample.json index 31e14cab36..4c1c91a71e 100644 --- a/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/sample.json +++ b/AI-and-Analytics/End-to-end-Workloads/JobRecommendationSystem/sample.json @@ -15,12 +15,16 @@ "id": "JobRecommendationSystem_py", "steps": [ "source /intel/oneapi/intelpython/bin/activate", - "conda env remove -n user_tensorflow-gpu", - "conda create --name user_tensorflow-gpu --clone tensorflow-gpu", - "conda activate user_tensorflow-gpu", - "pip install -r requirements.txt", - "python -m ipykernel install --user --name=user_tensorflow-gpu", - "python JobRecommendationSystem.py" + "conda activate tensorflow-gpu", + "pip install uv", + "uv init", + "uv python pin $(which python)", + "uv venv --system-site-packages", + "uv add -r requirements.txt", + "uv add seaborn", + "uv add numpy==1.26.4", + "uv run python -m spacy download en_core_web_sm", + "uv run python JobRecommendationSystem.py" ] } ] diff --git a/AI-and-Analytics/Features-and-Functionality/INC_QuantizationAwareTraining_TextClassification/sample.json b/AI-and-Analytics/Features-and-Functionality/INC_QuantizationAwareTraining_TextClassification/sample.json index 2a6f8cdb4f..8906911aa9 100644 --- a/AI-and-Analytics/Features-and-Functionality/INC_QuantizationAwareTraining_TextClassification/sample.json +++ b/AI-and-Analytics/Features-and-Functionality/INC_QuantizationAwareTraining_TextClassification/sample.json @@ -14,11 +14,16 @@ "env": [ "source /intel/oneapi/intelpython/bin/activate", "conda activate pytorch", - "pip install -r requirements.txt" + "pip install uv", + "uv init", + "uv python pin $(which python)", + "uv venv --system-site-packages", + "uv add -r requirements.txt", + "uv add torch==2.5.0 torchvision==0.20.0" ], "id": "inc_text_classification_quantization_py", "steps": [ - "python INC_QuantizationAwareTraining_TextClassification.py" + "uv run INC_QuantizationAwareTraining_TextClassification.py" ] } ] diff --git a/AI-and-Analytics/Getting-Started-Samples/INC-Sample-for-Tensorflow/sample.json b/AI-and-Analytics/Getting-Started-Samples/INC-Sample-for-Tensorflow/sample.json index ccbab7fde7..f3dae96582 100644 --- a/AI-and-Analytics/Getting-Started-Samples/INC-Sample-for-Tensorflow/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/INC-Sample-for-Tensorflow/sample.json @@ -13,11 +13,17 @@ { "env": ["source /intel/oneapi/intelpython/bin/activate", "conda activate tensorflow", - "conda install -n tensorflow -c conda-forge python-flatbuffers -y", - "conda install -n tensorflow -c https://software.repos.intel.com/python/conda/ -c conda-forge neural-compressor -y", - "conda install -n tensorflow -y", - "pip install jupyter ipykernel", - "python -m ipykernel install --user --name=tensorflow" + "pip install uv", + "uv init", + "uv python pin $(which python)", + "uv venv --system-site-packages", + "uv add -r requirements.txt", + "uv add flatbuffers", + "uv add neural-compressor", + "pip install notebook", + "uv add --dev ipykernel", + "uv run ipython kernel install --user --name tensorflow" + ], "id": "neural-compressor tensorflow", "steps": [ diff --git a/AI-and-Analytics/Getting-Started-Samples/IntelPython_XGBoost_GettingStarted/sample.json b/AI-and-Analytics/Getting-Started-Samples/IntelPython_XGBoost_GettingStarted/sample.json index bf73661fec..cb5a99d5d9 100755 --- a/AI-and-Analytics/Getting-Started-Samples/IntelPython_XGBoost_GettingStarted/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/IntelPython_XGBoost_GettingStarted/sample.json @@ -15,11 +15,15 @@ "env": [ "source /intel/oneapi/intelpython/bin/activate", "conda activate base", - "pip install -r requirements.txt" + "pip install uv", + "uv init", + "uv python pin $(which python)", + "uv venv --system-site-packages", + "uv add -r requirements.txt" ], "id": "IDP_XGBoost_GS_py", "steps": [ - "python IntelPython_XGBoost_GettingStarted.py" + "uv run python IntelPython_XGBoost_GettingStarted.py" ] }] }, diff --git a/AI-and-Analytics/Getting-Started-Samples/Intel_Extension_For_SKLearn_GettingStarted/sample.json b/AI-and-Analytics/Getting-Started-Samples/Intel_Extension_For_SKLearn_GettingStarted/sample.json index 964b555293..d01e8d1ffa 100644 --- a/AI-and-Analytics/Getting-Started-Samples/Intel_Extension_For_SKLearn_GettingStarted/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/Intel_Extension_For_SKLearn_GettingStarted/sample.json @@ -15,11 +15,16 @@ "env": [ "source /intel/oneapi/intelpython/bin/activate", "conda activate base", - "pip install -r requirements.txt" + "pip install uv", + "uv init", + "uv python pin $(which python)", + "uv venv --system-site-packages", + "uv add -r requirements.txt", + "uv add numpy==1.26.4" ], "id": "idp_sklex_gs_py", "steps": [ - "python Intel_Extension_For_SKLearn_GettingStarted.py" + "uv run python Intel_Extension_For_SKLearn_GettingStarted.py" ] }] }, diff --git a/AI-and-Analytics/Getting-Started-Samples/Modin_GettingStarted/sample.json b/AI-and-Analytics/Getting-Started-Samples/Modin_GettingStarted/sample.json index 5acc558d80..042d81a2f4 100644 --- a/AI-and-Analytics/Getting-Started-Samples/Modin_GettingStarted/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/Modin_GettingStarted/sample.json @@ -10,12 +10,20 @@ "ciTests": { "linux": [ { - "env": [], + "env": [ + "source /intel/oneapi/intelpython/bin/activate", + "conda activate modin", + "pip install uv", + "uv init", + "uv python pin $(which python)", + "uv venv --system-site-packages", + "uv add -r requirements.txt", + "pip install notebook", + "uv add --dev ipykernel", + "uv run ipython kernel install --user --name modin_getting_started" + ], "id": "Intel_Modin_GS_py", "steps": [ - "source /intel/oneapi/intelpython/bin/activate", - "pip install -r requirements.txt", - "pip install jupyter ipykernel", "jupyter nbconvert --ExecutePreprocessor.enabled=True --to notebook Modin_GettingStarted.ipynb" ] }