Skip to content

malkamius/MicrosoftPhiClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicrosoftPhiClient

Connect to a Flask server and submit LLM Requests

Dependencies

You may need to install the cuda framework from
https://developer.nvidia.com/cuda-downloads?target_os=Windows

Python environment

Create a virtual environment (optional but recommended):

This keeps your installations and project separate from your main Python installation.


On a command line go to where you want to create the python environment
python -m venv myenv
From the same command line run
myenv\Scripts\activate.bat

pip install transformers accelerate bitsandbytes
pip install Flask
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

navigate to the phi-py folder on the command line
python serve.py

About

Connect to a Flask server and submit LLM Requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published