The purpose of this is to have a collection of different scripts for efficient and low-gpu flux-dev.1 inference model.
This repository is divided based on its gpu usage. The results considerates for all the cases when denoising:
Inference time could vary if those conditions are changed.
By using the requirements.txt file, it's guaranteed that all the scripts here will be able to run properly.
Ubuntu
python3 -m venv venv
source venv\bin\activate
pip install -r requirements.txt
Windows
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
The scripts listed here has been using between 8 and 8.5 GB of VRAM.
It's basically loads a pipeline for text encoding, then deletes it and loads a pipeline for inference using only the encoded prompt.
The scripts listed here has been using between 14.3 and 14.6 GB of VRAM.
The main difference against the low-gpu-decode approach (8 GB) is that it makes no encoding of the prompt, allowing for faster denoising process but diminishing the efficiency of gpu usage.
Against its twin (low-gpu-no-decode-linear-pipeline) this script loads 2 pipeline, one for inference and one for decoding. It allows to load both pipelines once and then just making inference based on the new prompts.
The scripts listed here has been using 38 or more GB of VRAM.
This is a common and not optimized inference pipeling on the gpu-usage, however the inference time is quite optimal.
The scripts listed here contains slightly variations of scripts found in different repositories.
Also, the diffusers repository branch for this scripts is taken from the quantization branch.
4 commits
Python
100.0%
The purpose of this is to have a collection of different scripts for efficient and low-gpu flux-dev.1 inference model.
This repository is divided based on its gpu usage. The results considerates for all the cases when denoising:
Inference time could vary if those conditions are changed.
By using the requirements.txt file, it's guaranteed that all the scripts here will be able to run properly.
Ubuntu
python3 -m venv venv
source venv\bin\activate
pip install -r requirements.txt
Windows
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
The scripts listed here has been using between 8 and 8.5 GB of VRAM.
It's basically loads a pipeline for text encoding, then deletes it and loads a pipeline for inference using only the encoded prompt.
The scripts listed here has been using between 14.3 and 14.6 GB of VRAM.
The main difference against the low-gpu-decode approach (8 GB) is that it makes no encoding of the prompt, allowing for faster denoising process but diminishing the efficiency of gpu usage.
Against its twin (low-gpu-no-decode-linear-pipeline) this script loads 2 pipeline, one for inference and one for decoding. It allows to load both pipelines once and then just making inference based on the new prompts.
The scripts listed here has been using 38 or more GB of VRAM.
This is a common and not optimized inference pipeling on the gpu-usage, however the inference time is quite optimal.
The scripts listed here contains slightly variations of scripts found in different repositories.
Also, the diffusers repository branch for this scripts is taken from the quantization branch.
4 commits
Python
100.0%