Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Speech To Speech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
huggingface
Speech To Speech
Commits
a6f27a28
Unverified
Commit
a6f27a28
authored
7 months ago
by
Andrés Marafioti
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #51 from huggingface/flash-attn-warning
add warning to install flash attn
parents
235e628a
5099c988
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TTS/parler_handler.py
+10
-0
10 additions, 0 deletions
TTS/parler_handler.py
with
10 additions
and
0 deletions
TTS/parler_handler.py
+
10
−
0
View file @
a6f27a28
...
...
@@ -11,6 +11,9 @@ import librosa
import
logging
from
rich.console
import
Console
from
utils.utils
import
next_power_of_2
from
transformers.utils.import_utils
import
(
is_flash_attn_2_available
,
)
torch
.
_inductor
.
config
.
fx_graph_cache
=
True
# mind about this parameter ! should be >= 2 * number of padded prompt sizes for TTS
...
...
@@ -24,6 +27,13 @@ logger = logging.getLogger(__name__)
console
=
Console
()
if
not
is_flash_attn_2_available
()
and
torch
.
cuda
.
is_available
():
logger
.
warn
(
"""
Parler TTS works best with flash attention 2, but is not installed
Given that CUDA is available in this system, you can install flash attention 2 with `uv pip install flash-attn --no-build-isolation`
"""
)
class
ParlerTTSHandler
(
BaseHandler
):
def
setup
(
self
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment