Comments (2)
The Ubuntu Docker images include a Python 3 wheel. You can define a simple Dockerfile that installs Python 3 and this wheel:
FROM opennmt/ctranslate2:1.2.1-ubuntu18-gpu
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-pip && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install /opt/ctranslate2/*cp3*.whl
docker build -t ctranslate2-py3 -f Dockerfile .
from ctranslate2.
The Ubuntu Docker images include a Python 3 wheel. You can define a simple Dockerfile that installs Python 3 and this wheel:
FROM opennmt/ctranslate2:1.2.1-ubuntu18-gpu RUN apt-get update && \ apt-get install -y --no-install-recommends python3-pip && \ rm -rf /var/lib/apt/lists/* RUN pip3 install /opt/ctranslate2/*cp3*.whldocker build -t ctranslate2-py3 -f Dockerfile .
Tanks for you reply! Best wishes!
from ctranslate2.
Related Issues (20)
- Doesn't build without docker. libiomp5 not found HOT 6
- Clang unusual switches wrongly hardcoded in resulting setup.py HOT 3
- Support for Phi3-Small, Medium, and Vision HOT 1
- Different results when run with tensor parallelism HOT 2
- CUDA DeviceAllocate segfault HOT 3
- Converter not working for NLLB models HOT 6
- Ctranslate2 Pypi exceeds limit 20GB
- Facing issues with Ctranslate2 when working with Intel built-in GPU and oneDNN HOT 6
- Proper way to change alignment_heads and alignment_layer when using return_attention=True for converted HF Seq2Seq Transformers?
- Feature Request: Implement Static Cache and Quantization Techniques in CTranslate2 HOT 17
- T5 inference result is all <pad> HOT 2
- Does CT2/OpenNMT engine support Qualcomm SoC? HOT 1
- Qwen2 Support? HOT 2
- Inference for ctranslate2 using tensor parallel with mpi HOT 1
- Feature Request: Support for CohereForAI AYA-23 models
- Adding a layer to an existing model? HOT 4
- Gemma model - help needed HOT 4
- Download ready to use model HOT 3
- [feature request] Mixed quantizations. HOT 1
- Segmentation fault when using `return_alternatives` flag on NLLB model on cuda HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctranslate2.