Google-Colab_Notebooks icon indicating copy to clipboard operation
Google-Colab_Notebooks copied to clipboard

Can we get a Chroma1-HD fp8 scaled generating notebook/diffusers/forge notebook please

Open SarahPeterson2854 opened this issue 1 year ago • 6 comments

It's the new SOTA model but there is little in the way of running it in resource constrained environments.

Please could you make a Chroma1-HD like the QWEN image you did.

Thanks,

https://colab.research.google.com/github/Isi-dev/Google-Colab_Notebooks/blob/main/Qwen_Image/Qwen_Image_Gen_Edit.ipynb

https://huggingface.co/QuantStack/Chroma1-HD-GGUF/tree/main

https://huggingface.co/silveroxides/Chroma1-HD-fp8-scaled

https://huggingface.co/lodestones/Chroma1-HD

SarahPeterson2854 avatar Oct 23 '25 16:10 SarahPeterson2854

Thanks for the suggestion. I’ve heard of Chroma1-HD but haven’t had the chance to test it yet. I don’t have much time at the moment, but I might look into creating a notebook for it when my schedule allows.

Isi-dev avatar Oct 23 '25 19:10 Isi-dev

Thanks for the reply! So far I've managed to actually just use ComfyUI_Qwen_Image_Edit_2509 v3.ipynb to load comfy webui and then you can run it with the default chroma workflow. This works even to generate full size images with the fp8 model, no GGUF. Only now I'm having trouble converting the flow into working python. I suspect your code does something to aid in loading the model in the backend before starting the webui that i'm not replicating with the exported comfyui workflow to python.

SarahPeterson2854 avatar Oct 24 '25 13:10 SarahPeterson2854

Thanks for the reply! So far I've managed to actually just use ComfyUI_Qwen_Image_Edit_2509 v3.ipynb to load comfy webui and then you can run it with the default chroma workflow. This works even to generate full size images with the fp8 model, no GGUF. Only now I'm having trouble converting the flow into working python. I suspect your code does something to aid in loading the model in the backend before starting the webui that i'm not replicating with the exported comfyui workflow to python.

In most of the notebooks that run without the comfy webUI, I usually replicate a comfyUI workflow by cloning and checking the comfyUI github repository (and sometimes other repositories) for the python implementation of the nodes used in the workflow, including the model loaders, and then using the expected execution order to transfer outputs from one node or function to another. Apart from this, all required models are downloaded into the right comfyUI folder using the model_download function in the notebook.

Isi-dev avatar Oct 24 '25 14:10 Isi-dev

Thanks for the reply! So far I've managed to actually just use ComfyUI_Qwen_Image_Edit_2509 v3.ipynb to load comfy webui and then you can run it with the default chroma workflow. This works even to generate full size images with the fp8 model, no GGUF. Only now I'm having trouble converting the flow into working python. I suspect your code does something to aid in loading the model in the backend before starting the webui that i'm not replicating with the exported comfyui workflow to python.

In most of the notebooks that run without the comfy webUI, I usually replicate a comfyUI workflow by cloning and checking the comfyUI github repository (and sometimes other repositories) for the python implementation of the nodes used in the workflow, including the model loaders, and then using the expected execution order to transfer outputs from one node or function to another. Apart from this, all required models are downloaded into the right comfyUI folder using the model_download function in the notebook.

Yes there are some scripts and extensions that also aid in this, however the main problem is that when the webui runs it does some additional vram/offloading/block swapping that I'm not sure how to trigger or replicate. I suspect this is outside of the actual nodes in any workflow.

SarahPeterson2854 avatar Oct 25 '25 13:10 SarahPeterson2854

Thanks for the reply! So far I've managed to actually just use ComfyUI_Qwen_Image_Edit_2509 v3.ipynb to load comfy webui and then you can run it with the default chroma workflow. This works even to generate full size images with the fp8 model, no GGUF. Only now I'm having trouble converting the flow into working python. I suspect your code does something to aid in loading the model in the backend before starting the webui that i'm not replicating with the exported comfyui workflow to python.

In most of the notebooks that run without the comfy webUI, I usually replicate a comfyUI workflow by cloning and checking the comfyUI github repository (and sometimes other repositories) for the python implementation of the nodes used in the workflow, including the model loaders, and then using the expected execution order to transfer outputs from one node or function to another. Apart from this, all required models are downloaded into the right comfyUI folder using the model_download function in the notebook.

Yes there are some scripts and extensions that also aid in this, however the main problem is that when the webui runs it does some additional vram/offloading/block swapping that I'm not sure how to trigger or replicate. I suspect this is outside of the actual nodes in any workflow.

You can try getting rid of a model immediately after using it, especially when you are certain the model wouldn't be called again in the rest of your code. This will free up memory for loading and using other models. The tradeoff is longer generation time from loading the model for subsequent runs. I usually do this to ensure I can use the free T4 for some projects. For example, you can delete the text encoder after using it to encode your prompts as follows:

    clip = clip_loader.load_clip("umt5_xxl_fp8_e4m3fn_scaled.safetensors", "wan", "default")[0]

    positive = clip_encode_positive.encode(clip, positive_prompt)[0]
    negative = clip_encode_negative.encode(clip, negative_prompt)[0]

    del clip
    torch.cuda.empty_cache()
    gc.collect()
    
    # code continues...

Isi-dev avatar Oct 26 '25 09:10 Isi-dev

"Isi-dev closed this as completed20 hours ago

Thank you so much for the working chroma notebook, its amazing!

SarahPeterson2854 avatar Oct 29 '25 11:10 SarahPeterson2854