From 0866aac1b62dc004d6d571dd4eedf44d6975e906 Mon Sep 17 00:00:00 2001 From: Ankur-singh Date: Mon, 16 Oct 2023 10:06:42 -0700 Subject: [PATCH 1/3] updated sample.json --- .../INC-Quantization-Sample-for-PyTorch/sample.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json b/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json index a5aa5eda8b..f4078ea9c5 100644 --- a/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json @@ -10,10 +10,18 @@ "ciTests": { "linux": [ { + "env": [ + "source /opt/intel/oneapi/setvars.sh --force", + "conda env remove -n user_pytorch", + "conda create -n user_pytorch --clone pytorch -y", + "conda activate user_pytorch", + "conda install -n user_pytorch jinja2=3.0.3 nbconvert=6.4.4 -y", + "pip install ipykernel", + "python -m ipykernel install --user --name=user_pytorch" + ], "id": "quantize with inc", "steps": [ - "/opt/intel/oneapi/intelpython/latest/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch", - "python ci_test.py" + "jupyter nbconvert --ExecutePreprocessor.kernel_name=user_pytorch --to notebook quantize_with_inc.ipynb" ] } ] From 6a17873087b241495c40189da34309a6f13371db Mon Sep 17 00:00:00 2001 From: Rakshith Krishnappa Date: Thu, 19 Oct 2023 17:12:38 +0000 Subject: [PATCH 2/3] updated sample.json --- .../INC-Quantization-Sample-for-PyTorch/sample.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json b/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json index f4078ea9c5..8329544263 100644 --- a/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json @@ -12,11 +12,8 @@ { "env": [ "source /opt/intel/oneapi/setvars.sh --force", - "conda env remove -n user_pytorch", - "conda create -n user_pytorch --clone pytorch -y", - "conda activate user_pytorch", - "conda install -n user_pytorch jinja2=3.0.3 nbconvert=6.4.4 -y", - "pip install ipykernel", + "conda activate pytorch", + "pip install ipykernel jupyter", "python -m ipykernel install --user --name=user_pytorch" ], "id": "quantize with inc", @@ -27,4 +24,4 @@ ] }, "expertise": "Code Optimization" - } \ No newline at end of file + } From 459bbbdc4213a54d83bbd60f7e26ad284ec044c3 Mon Sep 17 00:00:00 2001 From: Ankur Singh Date: Tue, 24 Oct 2023 18:29:31 +0000 Subject: [PATCH 3/3] fixed conda environment name --- .../INC-Quantization-Sample-for-PyTorch/sample.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json b/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json index 8329544263..b0d76388cf 100644 --- a/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json +++ b/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json @@ -14,11 +14,11 @@ "source /opt/intel/oneapi/setvars.sh --force", "conda activate pytorch", "pip install ipykernel jupyter", - "python -m ipykernel install --user --name=user_pytorch" + "python -m ipykernel install --user --name=pytorch" ], "id": "quantize with inc", "steps": [ - "jupyter nbconvert --ExecutePreprocessor.kernel_name=user_pytorch --to notebook quantize_with_inc.ipynb" + "jupyter nbconvert --ExecutePreprocessor.kernel_name=pytorch --to notebook quantize_with_inc.ipynb" ] } ]