Skip to content

Commit

Permalink
fix(root): Fixes direct depency so its publishable to PyPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugarosa committed Sep 15, 2023
1 parent 0f55ccb commit 6bb8ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

from einops import rearrange

from fftconv import fftconv_fwd, fftconv_bwd
try:
from fftconv import fftconv_fwd, fftconv_bwd
except ImportError:
raise ImportError("`fftconv` module not found. Please run `pip install git+https://github.com/HazyResearch/H3.git#egg=fftconv&subdirectory=csrc/fftconv`.")

@torch.jit.script
def _mul_sum(y, q):
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"einops",
"flake8>=5.0.4",
"flash-attn",
"fftconv @ git+https://github.com/HazyResearch/H3.git#egg=fftconv&subdirectory=csrc/fftconv",
"gorilla>=0.4.0",
"h5py",
"hyperopt",
Expand Down Expand Up @@ -86,7 +85,7 @@ def filter_dependencies(*pkgs):
)

extras_require["deepspeed"] = filter_dependencies("deepspeed", "mlflow")
extras_require["flash-attn"] = filter_dependencies("flash-attn", "fftconv")
extras_require["flash-attn"] = filter_dependencies("flash-attn")
extras_require["xformers"] = filter_dependencies("xformers")

extras_require["docs"] = filter_dependencies(
Expand Down

0 comments on commit 6bb8ba3

Please sign in to comment.