Skip to content

Commit 0c68d32

Browse files
committed
add triton kernels
1 parent 140cbfb commit 0c68d32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

run_cli.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python -m flux --name flux-schnell --height 1024 --width 1024 --loop

src/flux/model.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
from torch import Tensor, nn
55

66
from flux.modules.layers import (
7-
DoubleStreamBlock,
87
EmbedND,
98
LastLayer,
109
MLPEmbedder,
11-
SingleStreamBlock,
1210
timestep_embedding,
1311
)
1412
from flux.modules.lora import LinearLora, replace_linear_with_lora
1513

14+
from triton_kernels import SingleStreamBlock, DoubleStreamBlock
1615

1716
@dataclass
1817
class FluxParams:

0 commit comments

Comments
 (0)