setup pyproject.toml to add optional dependencies
This commit is contained in:
+7
-2
@@ -20,12 +20,17 @@ huggingface_hub = { version = ">=0.23.0", extras = ["cli"] }
|
||||
safetensors = ">=0.5.3"
|
||||
torch = { version = ">=2.0.0", extras = ["cuda"], optional = true }
|
||||
flax = { version = ">=0.8.2", optional = true }
|
||||
jax = { version = ">=0.4.26", optional = true }
|
||||
optax = { version = ">=0.2.2", optional = true }
|
||||
einshape = { version = ">=0.8.0", optional = true }
|
||||
orbax-checkpoint = { version = ">=0.5.15", optional = true }
|
||||
jaxtyping = { version = ">=0.2.29", optional = true }
|
||||
typeguard = { version = ">=4.3.0", optional = true }
|
||||
jax = { version = ">=0.4.26", optional = true }
|
||||
|
||||
|
||||
[tool.poetry.extras]
|
||||
torch = ["torch"]
|
||||
flax = ["flax", "jax", "optax", "einshape", "orbax-checkpoint", "jaxtyping", "typeguard"]
|
||||
flax = ["flax", "optax", "einshape", "orbax-checkpoint", "jaxtyping", "typeguard", "jax"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 88
|
||||
|
||||
Reference in New Issue
Block a user