Skip to content

Installation and Runtime Optimizations#24

Open
gluttony-10 wants to merge 1 commit intozai-org:mainfrom
gluttony-10:main
Open

Installation and Runtime Optimizations#24
gluttony-10 wants to merge 1 commit intozai-org:mainfrom
gluttony-10:main

Conversation

@gluttony-10
Copy link

  1. Dependency Optimizations
    1.1. Pinned gradio to version 5.49.0. Versions gradio>=6 cause unexplained, long hangs on Windows without any error logs.
    1.2. Created a new minimal dependencies file, requirements-mini.txt, with looser version constraints for broader compatibility.
    1.3. Updated torch to 2.7.1+cu128 to support NVIDIA 50-series GPUs, which are not supported by older versions.
    1.4. Added the wetext dependency with system-specific installation logic. On Windows, the easier-to-install wetext package is used, while on Linux, WeTextProcessing is installed.

  2. Runtime Optimizations
    2.1. Optimized cosyvoice/frontend.py by adding the wetext import.
    2.2. Added launch parameters to the Gradio demo file.
    2.3. Fixed the Gradio demo file for compatibility with the updated Gradio version.
    2.4. Lowered the onnxruntime logging level to reduce verbosity from a specific dependency version.

  3. README Optimizations
    3.1. Optimized the “Dependency Installation” section.
    3.2. Suggestion: The README could benefit from a major restructuring. The introduction and project highlights should be at the top. The quick start guide (minimal installation and run) should be in the middle. Optional installations and other information can be placed at the end.
    3.3. Recommendation: Add a models directory to the project structure. This is crucial.

1. Dependency Optimizations
1.1. Pinned gradio to version 5.49.0. Versions gradio>=6 cause unexplained, long hangs on Windows without any error logs.
1.2. Created a new minimal dependencies file, requirements-mini.txt, with looser version constraints for broader compatibility.
1.3. Updated torch to 2.7.1+cu128 to support NVIDIA 50-series GPUs, which are not supported by older versions.
1.4. Added the wetext dependency with system-specific installation logic. On Windows, the easier-to-install wetext package is used, while on Linux, WeTextProcessing is installed.

2. Runtime Optimizations
2.1. Optimized cosyvoice/frontend.py by adding the wetext import.
2.2. Added launch parameters to the Gradio demo file.
2.3. Fixed the Gradio demo file for compatibility with the updated Gradio version.
2.4. Lowered the onnxruntime logging level to reduce verbosity from a specific dependency version.

3. README Optimizations
3.1. Optimized the “Dependency Installation” section.
3.2. Suggestion: The README could benefit from a major restructuring. The introduction and project highlights should be at the top. The quick start guide (minimal installation and run) should be in the middle. Optional installations and other information can be placed at the end.
3.3. Recommendation: Add a models directory to the project structure. This is crucial.
This was referenced Dec 13, 2025
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

Successfully merging this pull request may close these issues.

1 participant