[feature] support for pypi install

This commit is contained in:
chenxl 2024-07-29 11:51:28 +00:00
parent a25320b703
commit dd18a11cab
4 changed files with 185 additions and 124 deletions

View file

@ -10,16 +10,6 @@ rm -rf ktransformers/ktransformers_ext/cuda/*.egg-info
echo "Installing python dependencies from requirements.txt"
pip install -r requirements-local_chat.txt
echo "Installing ktransformers cpuinfer"
mkdir -p ktransformers/ktransformers_ext/build
cd ktransformers/ktransformers_ext/build
cmake ..
cmake --build . --config Release
echo "Installing ktransformers gpu kernel, this may take for a while, please wait"
sleep 3
cd ../cuda
python setup.py install
cd ../../..
echo "Installing ktransformers"
pip install . --no-build-isolation
echo "Installation completed successfully"