Update AMD ROCm install to 7.2 for RDNA 3.5/4 support#1298
Merged
Conversation
Signed-off-by: Kaihui-AMD <Kaihui.Tang@amd.com>
Contributor
Author
|
test code: import torch
print('device:', torch.cuda.get_device_name(0))
print('hip:', torch.version.hip)
from f5_tts.infer.utils_infer import load_model
from f5_tts.model import DiT
from huggingface_hub import hf_hub_download
ckpt_path = hf_hub_download(repo_id='SWivid/F5-TTS', filename='F5TTS_v1_Base/model_1250000.safetensors')
F5TTS_model_cfg = dict(dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4)
model = load_model(DiT, F5TTS_model_cfg, ckpt_path)
print(f'Model loaded! dtype={next(model.parameters()).dtype}')output: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The README recommends
torch==2.5.1+rocm6.2for AMD GPUs, but ROCm 6.x does not include gfx1151 or gfx1201 targets. Users with RDNA 3.5/4 GPUs (Radeon 8050S/8060S, RX 9060/9070) hitHIP error: invalid device functionon first model load (#1236).Changes
torch==2.9.1+rocm7.2References