Skip to content

Brandon/flux model loading - #6739

Merged
brandonrising merged 113 commits into
mainfrom
brandon/flux-model-loading
Aug 27, 2024
Merged

Brandon/flux model loading#6739
brandonrising merged 113 commits into
mainfrom
brandon/flux-model-loading

Conversation

@brandonrising

@brandonrisingbrandonrising commented Aug 12, 2024

Copy link
Copy Markdown
Contributor

Summary

Add FLUX support to the model manager.

QA Instructions

Install the FLUX model via the "Starter Models" tab:

  • Test fresh install and inference of all FLUX variants
    • FLUX schnell
    • FLUX schnell quantized
    • FLUX dev
    • FLUX dev quantized
  • Test quantized on 16GB GPU
  • Maybe: Test quantized on 8GB GPU
  • Test that the app still runs on CPU and MPS systems (main concern is pip install, or that we try to import bitsandbytes)

Merge Plan

Can be merged with proper approvals

@github-actionsgithub-actionsBot added python PRs that change python files invocations PRs that change invocations backend PRs that change backend files frontend PRs that change frontend files labels Aug 12, 2024
Comment threadinvokeai/backend/model_manager/probe.py Outdated
Comment threadinvokeai/backend/quantization/fast_quantized_diffusion_model.py Outdated
Comment threadinvokeai/backend/quantization/fast_quantized_transformers_model.py Outdated
@sammcjsammcj mentioned this pull request Aug 14, 2024
1 task
@brandonrising
brandonrisingforce-pushed the brandon/flux-model-loading branch from 2e978ad to 0e14fc6CompareAugust 15, 2024 14:27
@github-actionsgithub-actionsBot added Root python-deps PRs that change python dependencies services PRs that change app services labels Aug 15, 2024
@brandonrising
brandonrisingforce-pushed the brandon/flux-model-loading branch from 043df07 to 00b63afCompareAugust 19, 2024 17:13
@RyanJDick
RyanJDick changed the base branch from ryan/flux to mainAugust 20, 2024 18:10
@github-actionsgithub-actionsBot added the python-tests PRs that change python tests label Aug 20, 2024
Comment threadinvokeai/app/invocations/fields.py Outdated
Comment threadinvokeai/app/invocations/fields.py Outdated
Comment threadinvokeai/app/invocations/flux_text_encoder.py
Comment threadinvokeai/app/invocations/flux_text_encoder.py Outdated
Comment threadinvokeai/app/invocations/flux_text_encoder.py Outdated
Comment threadinvokeai/backend/quantization/load_flux_model_bnb_llm_int8.py Outdated
Comment threadinvokeai/backend/requantize.py Outdated
Comment threadinvokeai/backend/requantize.py Outdated
Comment threadinvokeai/configs/flux/flux1-schnell.yaml Outdated
Comment threadpyproject.toml Outdated
Comment threadinvokeai/app/invocations/flux_text_encoder.py Outdated
Comment threadinvokeai/backend/model_manager/config.py
Comment threadinvokeai/frontend/web/src/features/nodes/types/v2/common.ts
Comment threadpyproject.toml Outdated
@brandonrising
brandonrisingforce-pushed the brandon/flux-model-loading branch 2 times, most recently from 5606eea to 5edec7fCompareAugust 21, 2024 13:11
@RyanJDick
RyanJDickforce-pushed the brandon/flux-model-loading branch from ccb49c9 to e41025dCompareAugust 21, 2024 18:21
Comment threadinvokeai/backend/model_manager/load/model_loaders/flux.py
Comment threadinvokeai/app/invocations/flux_text_encoder.py
Comment threadinvokeai/backend/flux/modules/autoencoder.py Outdated
Comment threadinvokeai/backend/flux/modules/autoencoder.py
Comment threadinvokeai/app/invocations/flux_text_encoder.py
Comment threadpyproject.toml Outdated
RyanJDickand others added 25 commits August 26, 2024 19:21
…ly equivalent, but in my test VAE deconding was ~8% faster after the change.
@brandonrising
brandonrisingforce-pushed the brandon/flux-model-loading branch from a30c2d9 to c510234CompareAugust 26, 2024 23:21
@brandonrising
brandonrising merged commit 50085b4 into mainAug 27, 2024
@brandonrising
brandonrising deleted the brandon/flux-model-loading branch August 27, 2024 00:17
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backendPRs that change backend filesCI-CDContinuous integration / Continuous deliveryfrontendPRs that change frontend filesinvocationsPRs that change invocationspythonPRs that change python filespython-depsPRs that change python dependenciespython-testsPRs that change python testsRootservicesPRs that change app services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@brandonrising@psychedelicious@maryhipp@StAlKeR7779@RyanJDick@hipsterusername