Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LibreTranslate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Riße, Matthias
LibreTranslate
Commits
393eebe2
Unverified
Commit
393eebe2
authored
Jul 3, 2022
by
Piero Toffanin
Committed by
GitHub
Jul 3, 2022
Browse files
Options
Downloads
Plain Diff
Merge pull request #283 from jonwiggins/main
Expand CUDA Support to more GPUs
parents
727b9192
482a1c65
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/Dockerfile.cuda
+7
-1
7 additions, 1 deletion
docker/Dockerfile.cuda
with
7 additions
and
1 deletion
docker/Dockerfile.cuda
+
7
−
1
View file @
393eebe2
...
...
@@ -18,6 +18,8 @@ COPY . .
RUN
ln
-s
/usr/bin/python3 /usr/bin/python
RUN
pip3
install
torch
==
1.12.0+cu116
-f
https://download.pytorch.org/whl/torch_stable.html
RUN if
[
"
$with_models
"
=
"true"
]
;
then
\
# install only the dependencies first
pip3 install -e .; \
...
...
@@ -32,6 +34,10 @@ RUN if [ "$with_models" = "true" ]; then \
# Install package from source code
RUN
pip3
install
.
\
&&
pip3 cache purge
ENV
LD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/cuda/lib64
# Depending on your cuda install you may need to uncomment this line to allow the container to access the cuda libraries
# See: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions
# ENV LD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/cuda/lib64
EXPOSE
5000
ENTRYPOINT
[ "libretranslate", "--host", "0.0.0.0" ]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment