mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-10-14 22:36:54 +00:00
[feature] support for pypi install
This commit is contained in:
parent
a25320b703
commit
dd18a11cab
4 changed files with 185 additions and 124 deletions
14
install.sh
14
install.sh
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue