Run this model with HF Jobs
Run Bl4ckSpaces/FLUX.1-dev-Transformer-Int8 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Bl4ckSpaces/FLUX.1-dev-Transformer-Int8. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Bl4ckSpaces/FLUX.1-dev-Transformer-Int8 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Bl4ckSpaces/FLUX.1-dev-Transformer-Int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Bl4ckSpaces/FLUX.1-dev-Transformer-Int8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Bl4ckSpaces/FLUX.1-dev-Transformer-Int8", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Quantized FLUX Transformer to Int8 (BF16 Compute) Anti-OOM
Browse filesFiles changed (4)
1234567891011121314151617181920{ "_class_name": "FluxTransformer2DModel", "_diffusers_version": "0.38.0", "_name_or_path": "../checkpoints/flux-dev/transformer", "attention_head_dim": 128, "axes_dims_rope": [ 16, 56, 56 ], "guidance_embeds": true, "in_channels": 64, "joint_attention_dim": 4096, "num_attention_heads": 24, "num_layers": 19, "num_single_layers": 38, "out_channels": null, "patch_size": 1, "pooled_projection_dim": 768}123version https://git-lfs.github.com/spec/v1oid sha256:0fc1489ad830459ea06ca41489c436e43122fc6967f9652c8dfa2a6d87623d38size 9974226720123version https://git-lfs.github.com/spec/v1oid sha256:03a995225420c69020e54ca6e7d56e68790384323cba4d751e2c72e585e83963size 1936709984config.jsonAdded+20
diffusion_pytorch_model-00001-of-00002.safetensorsAdded+3
diffusion_pytorch_model-00002-of-00002.safetensorsAdded+3
diffusion_pytorch_model.safetensors.index.jsonAdded