mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #47] AMD support #35
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @userbox020 on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/47
Hello guys, you doing awesome work!
I was wondering if there is any tutorial on how to run the janus or janus demo with amd video game cards
@hamfighters commented on GitHub (Jan 29, 2025):
AMD No /(ㄒoㄒ)/~~
When running the model on AMD's Windows system using ComfyUI, it prompt "Torch not compiled with CUDA
enabled," that the model maynot be directly used with an AMD GPU.
Additionally, the command line show an error: `tokens = torch.zeros((parallel_size*2, len(input_ids)), dtype=torch.int).cuda()'
有没有大佬救一下
@aveiper commented on GitHub (Jan 29, 2025):
I've been able to run the 1b model using a 7900XTX. To run it I used WSL and conda. Apart from installing the requirements, it's needed to install ROCm and PyTorch for ROCm: https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-pytorch.html
After this it should work, but in my case I also needed to specifically force to use AMD drivers on the script:
This youtube tutorial also helped me: https://youtu.be/2KAjtxBYfeg?si=Gpp3jH7GxhS4tFLA
However, I don't think this is the best or recommended way to run the model, as it doesn't make much sense that I am able to run deepseek-r1:70b but not the janus-pro:7b model.
@Repeerc commented on GitHub (Feb 1, 2025):
7900XTX can run in Windows by using ZLUDA.
7B model use about 16GB VRAM (parallel_size=1, generate 1 image at a time)
add this code after
import torchline 20
@hedi-k commented on GitHub (Dec 28, 2025):
Hello! I had some issues getting it to work with an AMD card (RX 6800 XT) on Ubuntu.
I had to add my user to the video and render groups.
To check if you are in these groups, use the command "groups" in the terminal. If you don't see "video" and "render," run:
sudo usermod -a -G video,render $LOGNAME
Sources => https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/prerequisites.html