Comments (3)
Also, argostranslate REQUIRES stanza REQUIRES torch
and torch
requires NVIDIA libraries (eg. libcublas.so).
One fix for this is to install CPU version of PyTorch before installing argostranslate
: pip install torch==2.0.1+cpu --extra-index-url https://download.pytorch.org/whl/cpu
from argos-translate.
NVIDIA packages are installed due to ctranslate2
package (only on Linux, x64 platform).
"nvidia-cuda-nvrtc-cu12 ==12.1.105 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cuda-runtime-cu12 ==12.1.105 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cuda-cupti-cu12 ==12.1.105 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cudnn-cu12 ==8.9.2.26 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cublas-cu12 ==12.1.3.1 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cufft-cu12 ==11.0.2.54 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-curand-cu12 ==10.3.2.106 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cusolver-cu12 ==11.4.5.107 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-cusparse-cu12 ==12.1.0.106 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-nccl-cu12 ==2.19.3 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"nvidia-nvtx-cu12 ==12.1.105 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"triton ==2.2.0 ; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
Found this info by running pip install --dry-run --ignore-installed argostranslate --report argos_deps.json
in Python 3.8 environment. Found above NVIDIA dependencies in key "requires_dist":
of dict of ctranslate2
dependency in argos_deps.json.
from argos-translate.
I haven’t tried it but I think it should be possible to install Argos Translate without all of the (very large) Nvidia dependencies by disabling them for both CTranslate2 and Stanza.
https://community.libretranslate.com/t/using-argos-translate-without-nvidia-dependencies/1061
from argos-translate.
Related Issues (20)
- The difficulty of generating a proper LLM for translation from web scraping...
- Pipe mode, line-by-line (stdin/stdout)
- Support for tamil language
- no pip install
- Does not support Python 3.12 HOT 1
- How to switch usage to GPU instead of CPU? HOT 1
- BUG: pip install argostranslate does not work on Python 3.12 HOT 3
- Problem in Greek Translation
- How to use custom model?
- Stanza version >=1.1.1 breaks a few langauges HOT 2
- Support for Brazilian Portuguese
- [BUG] SIGSEGV
- Title
- Upgrade SentencePiece for Windows Support on Python 3.12+ HOT 2
- Translation of pre-split and pre-tokenized sentences
- Translation from Spanish -> English missing words
- (feature request) a way to pause and continue a translation process that takes days to execute; plus a progress indicator
- Installation procedure has chronic crashes due to bulky files. Crash recovery fails. Manual procedure needed.
- KeyError: 'ctranslate2' on installation attempt
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 argos-translate.