# Stable-diffusion local speed improvement

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-local-speed-improvement%2F35135%3E%5C
**Category:** Beginners\
**Created:** [March 30, 2023, 7:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-local-speed-improvement%2F35135 "2023-03-30T19:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wejdene](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@wejdene](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwejdene)%5C
**Post date:** [March 30, 2023, 7:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-local-speed-improvement%2F35135%2F1 "2023-03-30T19:29:49Z")

</div>

Hi,  
I recently installed stable diffusion locally on my computer. It works great, but it’s not very fast (average of 1it/s), but I have a GTX 1080Ti with like 13GB of Vram, so it should work faster no ?  
I tried to install xformers in the batch file (–xformers), it made no improvement…  
I searched on this site and found many ways to improve the speed of the software, but I don’t know how to run the code lines.

For ex this [optimization](https://huggingface.co/docs/diffusers/optimization/fp16) I don’t know where to put the code lines ! In a file, or running them in powershell ?
