HiDream-I1 is a new open-source image generative foundation model with 17B parameters that achieves state-of-the-art image generation quality within seconds.
Project description
HiDream-I1 4Bit Quantized Model
This repository is a fork of HiDream-I1 quantized to 4 bits, allowing the full model to run in less than 16GB of VRAM.
The original repository can be found here.
HiDream-I1is a new open-source image generative foundation model with 17B parameters that achieves state-of-the-art image generation quality within seconds.
Models
We offer both the full version and distilled models. The parameter size are the same, so they require the same amount of GPU memory to run. However, the distilled models are faster because of reduced number of inference steps.
| Name | Min VRAM | Steps | HuggingFace |
|---|---|---|---|
| HiDream-I1-Full | 16 GB | 50 | 🤗 Original / NF4 |
| HiDream-I1-Dev | 16 GB | 28 | 🤗 Original / NF4 |
| HiDream-I1-Fast | 16 GB | 16 | 🤗 Original / NF4 |
Hardware Requirements
- GPU Architecture: NVIDIA
>= Ampere(e.g. A100, H100, A40, RTX 3090, RTX 4090) - GPU RAM:
>= 16 GB - CPU RAM:
>= 16 GB
Quick Start
Simply run:
pip install hdi1 --no-build-isolation
[!NOTE] It's recommended that you start a new python environment for this package to avoid dependency conflicts.
To do that, you can useconda create -n hdi1 python=3.12and thenconda activate hdi1.
Or you can usepython3 -m venv venvand thensource venv/bin/activateon Linux orvenv\Scripts\activateon Windows.
Command Line Interface
Then you can run the module to generate images:
python -m hdi1 "A cat holding a sign that says 'hello world'"
# or you can specify the model
python -m hdi1 "A cat holding a sign that says 'hello world'" -m fast
[!NOTE] The inference script will try to automatically download
meta-llama/Llama-3.1-8B-Instructmodel files. You need to agree to the license of the Llama model on your HuggingFace account and login usinghuggingface-cli loginin order to use the automatic downloader.
Web Dashboard
We also provide a web dashboard for interactive image generation. You can start it by running:
python -m hdi1.web
License
The code in this repository and the HiDream-I1 models are licensed under MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hdi1-1.0.4.tar.gz.
File metadata
- Download URL: hdi1-1.0.4.tar.gz
- Upload date:
- Size: 35.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc5ed2e58f2a63f2e8873785a4b3d2b4bb1380a29c43d4a06cb45f4138a4aa54
|
|
| MD5 |
806f1249415871bb628c43272df9ca0f
|
|
| BLAKE2b-256 |
61eb4a087c99d16f679078445aa59dbe810e781ddd423253e3f8a8318a866dc4
|
File details
Details for the file hdi1-1.0.4-py3-none-any.whl.
File metadata
- Download URL: hdi1-1.0.4-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2c14ac1988345b254f5a75147d60c54fa544ed70d4f2fe5522bd69c3d0ba818
|
|
| MD5 |
1ba67a65e97ce1bd7a1fe3097f7a290f
|
|
| BLAKE2b-256 |
2f1b24506935758c64eb5badd148a45734acd0625e5e81d3388cd52838136229
|