fix(root): Fixes direct depency so its publishable to PyPI.

This commit is contained in:
Gustavo Rosa 2023-09-15 11:07:30 -07:00
Родитель 0f55ccb4df
Коммит 6bb8ba3864
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -7,7 +7,10 @@ import torch.nn.functional as F
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):

Просмотреть файл

@ -17,7 +17,6 @@ dependencies = [
"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",
@ -86,7 +85,7 @@ extras_require["nlp"] = filter_dependencies(
)
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(