mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Adjust setup so that all extras run on Windows (#8102)
This commit is contained in:
parent
995006eabb
commit
c5f3149f95
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
|
@ -89,9 +89,12 @@ extras["tf-cpu"] = [
|
|||
]
|
||||
extras["torch"] = ["torch>=1.0"]
|
||||
|
||||
extras["flax"] = ["jaxlib==0.1.55", "jax>=0.2.0", "flax==0.2.2"]
|
||||
if os.name == "nt": # windows
|
||||
extras["retrieval"] = ["datasets"] # faiss is not supported on windows
|
||||
extras["flax"] = [] # jax is not supported on windows
|
||||
else:
|
||||
extras["retrieval"] = ["faiss-cpu", "datasets"]
|
||||
extras["flax"] = ["jaxlib==0.1.55", "jax>=0.2.0", "flax==0.2.2"]
|
||||
|
||||
extras["tokenizers"] = ["tokenizers==0.9.2"]
|
||||
extras["onnxruntime"] = ["onnxruntime>=1.4.0", "onnxruntime-tools>=1.4.2"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue