Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectML acceleration for Flux.schnell gguf #264

Open
JohnClaw opened this issue Oct 2, 2024 · 3 comments
Open

DirectML acceleration for Flux.schnell gguf #264

JohnClaw opened this issue Oct 2, 2024 · 3 comments

Comments

@JohnClaw
Copy link

JohnClaw commented Oct 2, 2024

My cpu is rather slow and 4-steps Flux.schnell generation of 512x512 image takes a lot of time (especially due to the fact that fastsdcpu doesn't use all cpu threads and maximum cpu frequency). However, my igpu/apu Vega 7 is rather fast in DirectML mode, much faster than my cpu. Could you add support for DirectML igpu acceleration to fastsdcpu, please?

@rupeshs
Copy link
Owner

rupeshs commented Oct 3, 2024

@JohnClaw Currently fastsdcpu uses half number of CPU cores by default (

GGUF_THREADS = environ.get("GGUF_THREADS", cpu_count() // 2)
)
but you can change it be setting set GGUF_THREADS=10

@JohnClaw
Copy link
Author

JohnClaw commented Oct 3, 2024

@JohnClaw Currently fastsdcpu uses half number of CPU cores by default (

GGUF_THREADS = environ.get("GGUF_THREADS", cpu_count() // 2)

)
but you can change it be setting set GGUF_THREADS=10

Thanks for advice.

@q5325150
Copy link

q5325150 commented Oct 4, 2024

My cpu is rather slow and 4-steps Flux.schnell generation of 512x512 image takes a lot of time (especially due to the fact that fastsdcpu doesn't use all cpu threads and maximum cpu frequency). However, my igpu/apu Vega 7 is rather fast in DirectML mode, much faster than my cpu. Could you add support for DirectML igpu acceleration to fastsdcpu, please?

I want to konw, if a 4-core 16G cloud server is used to run it, how long will it take for Flux to process a 512x512 image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants