зеркало из https://github.com/microsoft/archai.git
fix(root): Fixes direct depency so its publishable to PyPI.
This commit is contained in:
Родитель
0f55ccb4df
Коммит
6bb8ba3864
|
@ -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):
|
||||
|
|
3
setup.py
3
setup.py
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче