When we enter the Lab, we need to configure the relevant environment :
It is recommended to use miniforge to configure your Python environment
To configure miniforge, please refer to https://github.com/conda-forge/miniforge
After configuring miniforge, run the following command in Power Shell
conda create -n pyenv python==3.11.8 -y
conda activate pyenv
In Lab 1, we use Prompt flow, so you need to configure the Prompt flow SDK.
pip install promptflow --upgrade
You can check promptflow sdk in this command
pf --version
MLX is an array framework for machine learning research on Apple silicon, brought to you by Apple machine learning research. You can use Apple MLX framework to accelerate LLM / SLM with Apple Silicon. If you want to know more, you can read https://github.com/microsoft/Phi-3CookBook/blob/main/md/03.Inference/MLX_Inference.md.
Install MLX framework Library in bash
pip install mlx-lm
create requirements.txt and add this content
notebook
numpy
scipy
scikit-learn
matplotlib
pandas
pillow
graphviz
install nvm in Powershell
brew install nvm
install nodejs 18.20
nvm install 18.20.0
nvm use 18.20.0
npm install --global yo generator-code
Congratulations! You have successfully configured the SDK. Next, proceed to the hands-on steps.