@@ -669,7 +669,7 @@ only interested in a specific component.
669669- Don't need Caffe2? Pass ` BUILD_CAFFE2=0 ` to disable Caffe2 build.
670670
671671On the initial build, you can also speed things up with the environment
672- variables ` DEBUG ` , ` USE_DISTRIBUTED ` , ` USE_MKLDNN ` , ` USE_CUDA ` , ` BUILD_TEST ` , ` USE_FBGEMM ` , ` USE_NNPACK ` and ` USE_QNNPACK ` .
672+ variables ` DEBUG ` , ` USE_DISTRIBUTED ` , ` USE_MKLDNN ` , ` USE_CUDA ` , ` USE_FLASH_ATTENTION ` , ` USE_MEM_EFF_ATTENTION ` , ` BUILD_TEST ` , ` USE_FBGEMM ` , ` USE_NNPACK ` and ` USE_QNNPACK ` .
673673
674674- ` DEBUG=1 ` will enable debug builds (-g -O0)
675675- ` REL_WITH_DEB_INFO=1 ` will enable debug symbols with optimizations (-g -O3)
@@ -681,6 +681,7 @@ variables `DEBUG`, `USE_DISTRIBUTED`, `USE_MKLDNN`, `USE_CUDA`, `BUILD_TEST`, `U
681681- ` USE_NNPACK=0 ` will disable compiling with NNPACK.
682682- ` USE_QNNPACK=0 ` will disable QNNPACK build (quantized 8-bit operators).
683683- ` USE_XNNPACK=0 ` will disable compiling with XNNPACK.
684+ - ` USE_FLASH_ATTENTION=0 ` and ` USE_MEM_EFF_ATTENTION=0 ` will disable compiling flash attention and memory efficient kernels respectively
684685
685686For example:
686687
@@ -712,6 +713,8 @@ with `pip install ninja`. If PyTorch was already built, you will need
712713to run ` python setup.py clean ` once after installing ninja for builds to
713714succeed.
714715
716+ Note: Make sure to use a machine with a larger number of CPU cores, this will significantly reduce your build times.
717+
715718#### Use CCache
716719
717720Even when dependencies are tracked with file modification, there are many
0 commit comments