DEV Community

Cover image for It is now possible to generate 16 Megapixel (4096x4096) raw images with SANA 4K model using under 8GB VRAM and more
Furkan Gözükara
Furkan Gözükara

Posted on

2 1 1 1 1

It is now possible to generate 16 Megapixel (4096x4096) raw images with SANA 4K model using under 8GB VRAM and more

Installers : https://www.patreon.com/posts/from-nvidia-labs-116474081

New 4K Tutorial Video : https://youtu.be/GjENQfHF4W8

  • Now the APP will use Diffusers Pipeline and it has huge VRAM optimizations

  • You need to reinstall

  • The models will be downloaded into your Hugging Face cache folder when you first time generate something

  • How to Get Installation Logs and How to Change Hugging Face Cache Folder

  • Please make a fresh install

  • When you enable all 4 optimizations the VRAM usages are like below

  • Make sure shared VRAM is enabled because initial loading of the model need more VRAM

  • Enable VAE Tiling + Enable VAE Slicing + Enable Model CPU Offload +

  • Enable Sequential CPU Offload

  • 1K (1024x1024) : 4 GB GPUs

  • 2K (2048x2048) : 6 GB GPUs

  • 4K (4096x4096) : 8 GB GPUs

  • Still in any case may work on your GPU test it

  • Just Enable VAE Tiling + Enable Model CPU Offload works great in many cases

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay