Skip to content

Commit

Permalink
Add support to CTransformer
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
Aisuko committed Nov 6, 2023
1 parent 8123f00 commit dcbf836
Show file tree
Hide file tree
Showing 8 changed files with 568 additions and 7 deletions.
18 changes: 18 additions & 0 deletions extra/grpc/ctransformers/Makefile
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
5 changes: 5 additions & 0 deletions extra/grpc/ctransformers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Creating a separate environment for ctransformers project

```
make ctransformers
```
61 changes: 61 additions & 0 deletions extra/grpc/ctransformers/backend_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dcbf836

Please sign in to comment.