mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #97] Nothing is generated locally #75
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#75
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 @LbISS on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/97
Have run commands from "Quick Start" guide. Everything installed successfully, no errors. Running gradio demo via command: "python demo/app_januspro.py". Server is starting successfully, UI is opening.
But it's not generating anything, the loader just keep staying forever, no result generated. No visible processing in the terminal. No heavy GPU load (RTX 4070Ti). Model Janus-Pro-1B.
@Artrender commented on GitHub (Jan 30, 2025):
Same here!
I still have 100GB free on C after installation
Model Janus-Pro-7B.
@LbISS commented on GitHub (Feb 1, 2025):
Ok, so I figured it out. I have the same problem as here https://github.com/deepseek-ai/Janus/issues/96. Janus is using pyTorch for CPU by default. Which is slow as hell and not loading all the CPU for some reason, so I didn't event notice load on CPU. It's there, just small, like 20-30%. And then even 10 minutes is not enough to generate something.
So based on the issue I've mentioned above: it's required to install CUDA and reinstall pyTorch with the respective version for it.
I've done:
pip3 uninstall torch torchvision torchaudiothen install Cuda Toolkit 12.6 from official NVidia site https://developer.nvidia.com/cuda-toolkit (only runtime is required, you could uncheck other points on installation, like SDK, drivers, etc.).
Then
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126(respective command for you platform could be found here: https://pytorch.org/get-started/locally/And then have restarted Janus - and voila - it's working, 6-10 seconds to generate image on GPU.