Skip to content

Allow specifying torch version for CUDA installation#4

Merged
xqiu merged 2 commits intomainfrom
codex/identify-class-function-for-pip-install
Nov 11, 2025
Merged

Allow specifying torch version for CUDA installation#4
xqiu merged 2 commits intomainfrom
codex/identify-class-function-for-pip-install

Conversation

@xqiu
Copy link
Owner

@xqiu xqiu commented Nov 11, 2025

Summary

  • update InstallTorchWithCudaAsync to accept an optional torch version and build the corresponding package list
  • add helpers to construct torch package specifiers that append the detected CUDA tag when needed

Testing

  • dotnet test (fails: command not found: dotnet)

Codex Task

Added a new project `ExampleChatterbox` targeting .NET 8.0 with dependencies like `LibGit2Sharp` and `DotNetPythonEmbed`. Enhanced Python process management in `PythonEmbedManager` by introducing `RunPython` and `InstallRequirementInEditorMode` for better script execution and dependency handling. Improved Git repository handling in `Program.cs` with automatic pull functionality and error handling for merge conflicts.

Enhanced process lifecycle management with graceful cleanup of Python processes, including event handlers for termination signals and unhandled exceptions. Added CUDA detection and PyTorch installation, along with support for additional Python packages like `gradio`. Improved logging, error handling, and cancellation token support for better user experience and maintainability.
@xqiu xqiu merged commit 01eb412 into main Nov 11, 2025
1 check failed
@xqiu xqiu deleted the codex/identify-class-function-for-pip-install branch November 11, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant