Skip to content

Latest commit

 

History

History
118 lines (54 loc) · 1.85 KB

01.Installations.md

File metadata and controls

118 lines (54 loc) · 1.85 KB

Lab 0 - Installation

When we enter the Lab, we need to configure the relevant environment :

1. Python 3.11+

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

2. Install Prompt flow SDK

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

3. Install Visual Studio Code Prompt flow Extension

pf

4. Apple's MLX Framework

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

5. Other Python Library

create requirements.txt and add this content

notebook
numpy 
scipy 
scikit-learn 
matplotlib 
pandas 
pillow 
graphviz

6. Install NVM

install nvm in Powershell

brew install nvm

install nodejs 18.20

nvm install 18.20.0

nvm use 18.20.0

7. Install Visual Studio Code Development Support

npm install --global yo generator-code

Congratulations! You have successfully configured the SDK. Next, proceed to the hands-on steps.