Skip to content
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

GPU/CUDA support - Windows solution #36

Open
archasek opened this issue Feb 9, 2025 · 2 comments
Open

GPU/CUDA support - Windows solution #36

archasek opened this issue Feb 9, 2025 · 2 comments

Comments

@archasek
Copy link
Contributor

archasek commented Feb 9, 2025

If anybody needs to test it on Windows, this is what worked for me.

  1. pyproject.toml:
[[tool.poetry.source]]
name = "pytorch-cuda"
url = "https://download.pytorch.org/whl/cu121"
priority = "explicit"

[tool.poetry.group.windows-gpu]
optional = true

[tool.poetry.group.windows-gpu.dependencies]
torch = [
    {version = ">=2.5.1+cu121", source = "pytorch-cuda", markers = 'sys_platform == "win32"'},
]
torchvision = [
    {version = ">=0.20.1+cu121", source = "pytorch-cuda", markers = 'sys_platform == "win32"'},
]
  1. poetry install --with windows-gpu --extras ui
@archasek
Copy link
Contributor Author

@dolfim-ibm do you think it's worth adding to the repo?

@dolfim-ibm
Copy link
Contributor

Managing the extra indexes (specially the torch versions) with poetry seems to create more issues. This is why in #48 I'm actually migrating to uv.

We could add the Windows extra there, but I think this won't needed anymore once we make the project consumable directly via pip install docling-serve (see #47 ).
The target is to simplify and don't require the actual clone of the repo, if not for developments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants