-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: GitHub <[email protected]>
- Loading branch information
Showing
8 changed files
with
568 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.PONY: ctransformers | ||
ctransformers: | ||
@echo "Creating virtual environment..." | ||
@conda create -n ctransformers python=3.11 -y | ||
@echo "Virtual environment created." | ||
|
||
@echo "Activating virtual environment..." | ||
@. activate ctransformers | ||
|
||
@echo "Installing dependencies..." | ||
@pip install grpcio==1.59.0 protobuf==4.24.4 | ||
|
||
# Install ctransformers from JLLLLLL's cuBLAS wheels will append cu117to version of ctransformer, this will cause creating from file failed. | ||
@echo "Installing ctransformers..." | ||
@pip install ctransformers==0.2.27 --prefer-binary --extra-index-url=https://jllllll.github.io/ctransformers-cuBLAS-wheels/AVX2/cu117 | ||
|
||
@echo "Deactivating virtual environment..." | ||
@. deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Creating a separate environment for ctransformers project | ||
|
||
``` | ||
make ctransformers | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.