-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotImplementedError: Cannot copy out of meta tensor; no data!
#8
Comments
I used the following links to get the files with wget and had no issues:
|
What's the benefit of using these weights vs. the full modelfile? Just speed? |
The error you were getting is the result of some state dict keys not matching. It could be because it's trying creating the guidance embed based on the config given, but the guidance embed doesn't exist for schnell, so it would remain on the "meta" device and throw that error. Also, if that's not it, diffusers weights wont work, since that's a different state dict. If you're using fp8 checkpoints from civit etc, those are quantized differently than in my repo, so you probably wont get as much precision, since I scale the weights into fp8 range rather than just directly convert to fp8. So if you want to use the "prequantized_flow" config, it wouldn't work with those, you have to save the state dict from the flow model in this repo after running at least ~30 steps so it can configure the input scales. @montyanderson edit: Just realized that it's because you're using diffusers weights, which do have a separate state dict- so none of the keys will match and it will throw that error. |
Firstly, thanks to @aredden and all the contributors to this repo. Open-source work like this is so valuable. @prodialabs would love to support it any way possible.
Steps to Reproduce
2.4.0
with cuda12.4
(our box has an h100)flux-fp8-api
+ pip install dependencieshuggingface-cli
to download official BFL Flux Dev + VAEhuggingface-cli download black-forest-labs/FLUX.1-dev flux1-dev.safetensors
huggingface-cli download black-forest-labs/FLUX.1-dev vae/diffusion_pytorch_model.safetensors
configs/config-dev-1-RTX6000ADA.json
to useckpt_path
andae_path
from downloaded BFL modelsfrom flux_pipeline import FluxPipeline
pipeline = FluxPipeline.load_pipeline_from_config_path("configs/config-dev-1-RTX6000ADA.json")
The text was updated successfully, but these errors were encountered: