GithubHelp home page GithubHelp logo

Comments (3)

sohang3112 avatar sohang3112 commented on June 6, 2024 1

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.

sohang3112 avatar sohang3112 commented on June 6, 2024

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.

argos_deps.json

from argos-translate.

PJ-Finlay avatar PJ-Finlay commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.