Seamless Video Sharing
Better Than Loom, Always Free
Another developer-friendly tool from Codersera
3 min to read
This guide provides detailed instructions for installing and running the DeepSeek Janus-Pro 7B model on a Linux/Ubuntu system using ComfyUI. Follow these steps to ensure a successful setup.
Before starting the installation, ensure your system meets the following requirements:
Open your terminal and run the following commands to install Git, Python, and pip:
sudo apt update
sudo apt install git python3 python3-pip
If you need a specific version of Python (e.g., Python 3.10), you can install it with:
sudo apt install python3.10 python3.10-distutils
To utilize your NVIDIA GPU, install PyTorch with CUDA support. Run the following command:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
Next, clone the ComfyUI repository from GitHub:
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
Inside the ComfyUI directory, install all required dependencies by running:
pip install -r requirements.txt
Using ComfyUI Manager:
python3 app.py
in the terminal.Manual Installation:
If you prefer manual installation, download the Janus-Pro plugin from its GitHub repository. Extract it into the ComfyUI/plugins
directory.
To access certain models, you may need to create an account on Hugging Face.
Search for "Janus-Pro-7B" on Hugging Face. Click on the model repository link and download all necessary files (typically .bin, .json, and configuration files).
Create a folder structure in your ComfyUI directory as follows:
📁 ComfyUI
├── 📁 models
│ ├── 📁 Janus-Pro
│ └── 📁 Janus-Pro-7B
│ ├── config.json
│ ├── preprocessor_config.json
│ ├── processor_config.json
│ ├── pytorch_model-00001-of-00002.bin
│ ├── pytorch_model-00002-of-00002.bin
│ ├── pytorch_model.bin.index.json
│ ├── special_tokens_map.json
│ ├── tokenizer.json
│ └── tokenizer_config.json
Ensure that all downloaded files are placed in their respective directories.
After setting up everything, you can launch ComfyUI:
python3 app.py
This will start a local server, typically accessible at http://localhost:8188
.
http://localhost:8188
.You can use a command in the prompt area like this:
generate_image(prompt="a futuristic cityscape", num_images=4)
This command will generate four images based on your prompt.
For further assistance or updates:
By following these detailed steps, you should be able to successfully install and run DeepSeek Janus-Pro 7B on your Linux/Ubuntu machine using ComfyUI!
Need expert guidance? Connect with a top Codersera professional today!