Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CTransformers): add support to CTransformers #1248

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions extra/grpc/c_transformers/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/c_transformers/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/c_transformers/backend_pb2.py

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

Loading
Loading