-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CUDA compatibility with CTranslate2 #1086
Comments
Thanks for the version matrix & appreciate your work! Currently colab uses CUDA 12.2 and
I think it would be better to include this version matrix in the README or somewhere. |
It's going to be outdated in a week or two once colab changes the version, I've pinned the issue for visibility |
In the meantime, pursuant to the discussion at OpenNMT/CTranslate2#1806, I've created a script that will download that appropriate CUDA Toolkit files (by version) or you can choose to download the cuDNN files. Remember, you must still set the appropriate PATH and other variables...and you must still make sure that the cuDNN version you're using is compatible with cuDNN and/or Torch and/or Ctranslate2 and/or any other library you plan to use in your program. You will only need to FULL SCRIPT HERE``` __version__ = "0.5.0" minimum = "3.8"import sys import argparse ARCHIVES = {} CUDA_RELEASES = { CUDNN_RELEASES = [ PRODUCTS = { OPERATING_SYSTEMS = { ARCHITECTURES = { VARIANTS = { COMPONENTS = { def err(msg): def fetch_file(full_path, filename): def fix_permissions(directory): def flatten_tree(src, dest, tag=None):
def parse_artifact(
def fetch_action(
def post_action(output_dir, collapse=True):
class DownloadWorker(QThread):
class DownloaderGUI(QMainWindow):
def main():
if name == "main":
|
Official compatibility matrix that I found at: https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix
|
Hi Everyone,
as per @BBC-Esq research,
ctranslate2>=4.5.0
uses CuDNN v9 which requires CUDA >= 12.3.Since most issues occur from a conflicting
torch
andctranslate2
installations these are tested working combinations:2.*.*+cu121
<=4.4.0
2.*.*+cu124
>=4.5.0
>=2.4.0
>=4.5.0
<2.4.0
<4.5.0
For google colab users, the quick solution is to downgrade to
4.4.0
as of 24/10/2024 as colab usestorch==2.5.0+cu12.1
The text was updated successfully, but these errors were encountered: