Skip to content

[Hardware Optimization] 2x Flux speedup on Pascal GPUs (GTX 1080/Ti) #3121

Description

@zxcchel

Hello! I created a custom INT8 dp4a kernel for Pascal architecture to bypass the slow PyTorch fp8 fallback. It doubles the generation speed of Flux on GTX 1080/Ti and Titan X (from ~70s to ~30s).

I built this testing on a community fork (Neo), but the core CUDA math and PyTorch routing logic should be applicable to your experimental backend as well.

Profiler traces and source code are available here: [Твоя ссылка на GitHub].

Just wanted to share this in case you find the dp4a implementation useful for supporting older hardware in the new Forge backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions