Loading pkgs/development/python-modules/optimum/default.nix +18 −10 Original line number Diff line number Diff line Loading @@ -3,24 +3,30 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, # build-system setuptools, # dependencies coloredlogs, datasets, huggingface-hub, numpy, packaging, sympy, torch, transformers, # optional-dependencies diffusers, evaluate, h5py, huggingface-hub, numpy, onnx, onnxruntime, packaging, protobuf, setuptools, sympy, tensorflow, tf2onnx, timm, torch, transformers, }: buildPythonPackage rec { Loading @@ -39,6 +45,8 @@ buildPythonPackage rec { build-system = [ setuptools ]; pythonRelaxDeps = [ "transformers" ]; dependencies = [ coloredlogs datasets Loading Loading @@ -108,12 +116,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "optimum" ]; meta = with lib; { meta = { description = "Accelerate training and inference of 🤗 Transformers and 🤗 Diffusers with easy to use hardware optimization tools"; mainProgram = "optimum-cli"; homepage = "https://github.com/huggingface/optimum"; changelog = "https://github.com/huggingface/optimum/releases/tag/${src.rev}"; license = licenses.asl20; maintainers = with maintainers; [ natsukium ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ natsukium ]; }; } Loading
pkgs/development/python-modules/optimum/default.nix +18 −10 Original line number Diff line number Diff line Loading @@ -3,24 +3,30 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, # build-system setuptools, # dependencies coloredlogs, datasets, huggingface-hub, numpy, packaging, sympy, torch, transformers, # optional-dependencies diffusers, evaluate, h5py, huggingface-hub, numpy, onnx, onnxruntime, packaging, protobuf, setuptools, sympy, tensorflow, tf2onnx, timm, torch, transformers, }: buildPythonPackage rec { Loading @@ -39,6 +45,8 @@ buildPythonPackage rec { build-system = [ setuptools ]; pythonRelaxDeps = [ "transformers" ]; dependencies = [ coloredlogs datasets Loading Loading @@ -108,12 +116,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "optimum" ]; meta = with lib; { meta = { description = "Accelerate training and inference of 🤗 Transformers and 🤗 Diffusers with easy to use hardware optimization tools"; mainProgram = "optimum-cli"; homepage = "https://github.com/huggingface/optimum"; changelog = "https://github.com/huggingface/optimum/releases/tag/${src.rev}"; license = licenses.asl20; maintainers = with maintainers; [ natsukium ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ natsukium ]; }; }