Skip to content

Commit

Permalink
Build fa3
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Dec 20, 2024
1 parent 57150e9 commit c1f8bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/flash_attn/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def install_fa3():
FA3_PATH = REPO_PATH.joinpath("submodules", "flash-attention", "hopper")
env = os.environ.copy()
# nvcc will spawn cicc process and will cost ~1G memory
env["MAX_JOBS"] = "8"
env["NVCC_THREADS"] = "1"
# env["MAX_JOBS"] = "8"
# env["NVCC_THREADS"] = "1"
cmd = [sys.executable, "setup.py", "install"]
subprocess.check_call(cmd, cwd=str(FA3_PATH.resolve()), env=env)

0 comments on commit c1f8bb0

Please sign in to comment.