Unverified Commit 70df8eea authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python312Packages.optimum: 1.23.3 -> 1.24.0 (#384222)

parents 5789a00b df0d46c2
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -8,12 +8,10 @@
  setuptools,

  # dependencies
  coloredlogs,
  datasets,
  huggingface-hub,
  numpy,
  packaging,
  sympy,
  torch,
  transformers,

@@ -31,16 +29,16 @@

buildPythonPackage rec {
  pname = "optimum";
  version = "1.23.3";
  version = "1.24.0";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "huggingface";
    repo = "optimum";
    tag = "v${version}";
    hash = "sha256-GJp1ukrYxEEwmkge31b02ROWZW5V23TtoEUjhycHpSg=";
    hash = "sha256-0D/kHPUI+gM7IblA4ULs0JuGTNQVezIYg0SPD3ESukw=";
  };

  build-system = [ setuptools ];
@@ -48,12 +46,9 @@ buildPythonPackage rec {
  pythonRelaxDeps = [ "transformers" ];

  dependencies = [
    coloredlogs
    datasets
    huggingface-hub
    numpy
    packaging
    sympy
    torch
    transformers
  ] ++ transformers.optional-dependencies.sentencepiece;
@@ -120,7 +115,7 @@ buildPythonPackage rec {
    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/v${version}";
    changelog = "https://github.com/huggingface/optimum/releases/tag/${src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ natsukium ];
  };