Compact Cog wrapper around Black Forest Labs' FLUX.1 Kontext dev model.  It loads the
Transformer, auto-encoder, CLIP/T5 text encoders, and optional NSFW safety checker,
then exposes a single predict endpoint that performs image-to-image editing or
style transfer conditioned on a text prompt.
# basic usage
cog predict -i prompt="make the hair blue" -i [email protected]Everything required (weights download, Torch 2 compilation, etc.) happens automatically on first run.
Licensed under Apache-2.0 for the wrapper code; see model card for FLUX.1 license.
torch.compileis used in dynamic mode- the two linear layers in the single stream block are quantized to run in FP8, using a modified version of aredden's fp8 linear layer
 - taylor seer style activation caching, enabled by the 
go_fastoption in the cog predictor. May cause quality degradation for more complex editing tasks. - enable pytorch's cudnn attention backend
 
To deploy this model to Replicate:
- 
Create a model page on Replicate at replicate.com/create
 - 
Install Cog following the installation instructions
 - 
Login to Replicate:
cog login
 - 
Push the model to Replicate:
cog push r8.im/your-username/your-model-name
 
Replace your-username with your Replicate username and your-model-name with the name you chose when creating the model page.