Skip to content

Commit

Permalink
Re-add framework specific required dependencies for source build (#1124)
Browse files Browse the repository at this point in the history
* Re-add framework specific required dependencies for source build

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>

* fix build

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>

* Fix

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>

---------

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>
  • Loading branch information
ksivaman committed Aug 22, 2024
1 parent 467b39a commit 47caafb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ def setup_requirements() -> Tuple[List[str], List[str], List[str]]:
if not found_pybind11():
setup_reqs.append("pybind11")

# Framework-specific requirements
if not bool(int(os.getenv("NVTE_RELEASE_BUILD", "0"))):
if "pytorch" in frameworks:
install_reqs.extend(["torch", "flash-attn>=2.0.6,<=2.5.8,!=2.0.9,!=2.1.0"])
test_reqs.extend(["numpy", "onnxruntime", "torchvision", "prettytable"])
if "jax" in frameworks:
install_reqs.extend(["jax", "flax>=0.7.1"])
test_reqs.extend(["numpy", "praxis"])
if "paddle" in frameworks:
install_reqs.append("paddlepaddle-gpu")
test_reqs.append("numpy")

return [remove_dups(reqs) for reqs in [setup_reqs, install_reqs, test_reqs]]


Expand Down

0 comments on commit 47caafb

Please sign in to comment.