Skip to content

Commit dcbf836

Browse files
authored
Add support to CTransformer
Signed-off-by: GitHub <[email protected]>
1 parent 8123f00 commit dcbf836

File tree

8 files changed

+568
-7
lines changed

8 files changed

+568
-7
lines changed

extra/grpc/ctransformers/Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.PONY: ctransformers
2+
ctransformers:
3+
@echo "Creating virtual environment..."
4+
@conda create -n ctransformers python=3.11 -y
5+
@echo "Virtual environment created."
6+
7+
@echo "Activating virtual environment..."
8+
@. activate ctransformers
9+
10+
@echo "Installing dependencies..."
11+
@pip install grpcio==1.59.0 protobuf==4.24.4
12+
13+
# Install ctransformers from JLLLLLL's cuBLAS wheels will append cu117to version of ctransformer, this will cause creating from file failed.
14+
@echo "Installing ctransformers..."
15+
@pip install ctransformers==0.2.27 --prefer-binary --extra-index-url=https://jllllll.github.io/ctransformers-cuBLAS-wheels/AVX2/cu117
16+
17+
@echo "Deactivating virtual environment..."
18+
@. deactivate

extra/grpc/ctransformers/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Creating a separate environment for ctransformers project
2+
3+
```
4+
make ctransformers
5+
```

extra/grpc/ctransformers/backend_pb2.py

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)