Views
No views yet
| GPU | FP8 | Time per Image | Batch Size |
|---|---|---|---|
| H200 141GB | Yes | ~3-4 seconds | 16 |
| H100 80GB | Yes | ~4-5 seconds | 4 |
| L40S 48GB | Yes | ~5-6 seconds | 2-4 |
| A100 80GB | No | ~8-10 seconds | 4 |
| GPU | FP8 Support | Mode | Notes |
|---|---|---|---|
| H200 141GB | Yes (CC 9.0) | Full GPU | Optimal performance |
| H100 80GB | Yes (CC 9.0) | Full GPU | Full FP8 support |
| L40S 48GB | Yes (CC 8.9) | Full GPU / Offload | FP8 enabled |
| A100 80GB | No (CC 8.0) | Full GPU | BF16 only |
| A10G 24GB | No (CC 8.6) | CPU Offload | BF16 only |
1{
2 "inputs": "A professional portrait of a business person in a modern office",
3 "parameters": {
4 "num_inference_steps": 28,
5 "guidance_scale": 3.5,
6 "width": 1344,
7 "height": 768
8 }
9}1{
2 "inputs": [
3 "A sunset over mountains",
4 "A city skyline at night",
5 "A peaceful forest scene"
6 ],
7 "parameters": {
8 "num_inference_steps": 28,
9 "guidance_scale": 3.5
10 }
11}1{
2 "image": "data:image/png;base64,..."
3}1[
2 {"image": "data:image/png;base64,..."},
3 {"image": "data:image/png;base64,..."}
4]| Parameter | Default | Description |
|---|---|---|
num_inference_steps | 28 | Denoising steps (20-50 recommended) |
guidance_scale | 3.5 | Prompt adherence (3.0-7.0) |
width | 1344 | Image width |
height | 768 | Image height |
seed | -1 | Random seed (-1 for random) |
| Variable | Default | Description |
|---|---|---|
TORCH_COMPILE_MODE | reduce-overhead | Compile mode (reduce-overhead/default/max-autotune/false) |
FIXED_BATCH_SIZE | 16 | Batch size for CUDA graphs |
NUM_INFERENCE_STEPS | 28 | Default inference steps |
ENABLE_FP8 | auto | FP8 quantization (auto/true/false) |
auto (default): Enable FP8 for GPUs with Compute Capability >= 8.9true: Force enable FP8 (will fail on unsupported GPUs)false: Disable FP8 (use BF16 only)handler.py and requirements.txtHF_TOKEN secret for gated model access| Handler | FP8 | Steps | Batch | Speed (H200) | Use Case |
|---|---|---|---|---|---|
| flux-schnell | No | 4 | 10 | ~1.5s | Quick previews |
| flux-dev-no-pulid | No | 28 | 4 | ~8s | Standard quality |
| flux-dev-h200 | Yes | 28 | 16 | ~3-4s | H200 optimized |
| flux-dev-pulid | No | 28 | 1 | ~10s | Character consistency |
torchao:1from torchao.quantization import quantize_, float8_weight_only
2quantize_(pipe.transformer, float8_weight_only())pipe.enable_vae_slicing()