Skip to main content

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-I1 is a new open-source image generative foundation model with 17B parameters that achieves state-of-the-art image generation quality within seconds.

HiDream-I1 Demo

image

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 use conda create -n hdi1 python=3.12 and then conda activate hdi1.
Or you can use python3 -m venv venv and then source venv/bin/activate on Linux or venv\Scripts\activate on 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-Instruct model files. You need to agree to the license of the Llama model on your HuggingFace account and login using huggingface-cli login in 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

image

License

The code in this repository and the HiDream-I1 models are licensed under MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdi1-1.0.2.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hdi1-1.0.2-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file hdi1-1.0.2.tar.gz.

File metadata

  • Download URL: hdi1-1.0.2.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for hdi1-1.0.2.tar.gz
Algorithm Hash digest
SHA256 472b6b254e688740305d141d3e832ba78ebe21a2c5f2a558831b3826c0a09a28
MD5 5eb7fa8b60996a56c1d2619b11711d68
BLAKE2b-256 e5773edf72f233ce30fb1eaca32f5df51e6ffffaab4f6a1c538e88fce0220581

See more details on using hashes here.

File details

Details for the file hdi1-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: hdi1-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for hdi1-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8deb5f3e54e972f525967175e7d0933b82414407930c047563c3eebce18242
MD5 135c6f325fece803d641916a7f669111
BLAKE2b-256 d7f720a7b8c8e16628bb9d3f1db7e673d4741f289c72cae289a1ad8fb8b00745

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page