Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.transformers: 4.47.0 -> 4.47.1 #365939

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions pkgs/development/python-modules/transformers/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,

Expand Down Expand Up @@ -59,25 +58,16 @@

buildPythonPackage rec {
pname = "transformers";
version = "4.47.0";
version = "4.47.1";
pyproject = true;

src = fetchFromGitHub {
owner = "huggingface";
repo = "transformers";
tag = "v${version}";
hash = "sha256-TQQ+w+EH/KWLE7iaaAHGxfE74hCiLXcqlIr1TIBFGvo=";
hash = "sha256-xwc84wFUSRJ8SNCLiI7FQ1v/JKnXkTW4EpNCjgUbZ8E=";
};

# torch.distributed is not available on darwin
# Fix submitted upstream in https://github.com/huggingface/transformers/pull/35133
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/transformers/pytorch_utils.py \
--replace-fail \
'if is_torch_greater_or_equal("2.5"):' \
'if False:'
'';

build-system = [ setuptools ];

dependencies = [
Expand Down Expand Up @@ -200,7 +190,7 @@ buildPythonPackage rec {
homepage = "https://github.com/huggingface/transformers";
description = "Natural Language Processing for TensorFlow 2.0 and PyTorch";
mainProgram = "transformers-cli";
changelog = "https://github.com/huggingface/transformers/releases/tag/v${version}";
changelog = "https://github.com/huggingface/transformers/releases/tag/${src.tag}";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
Expand Down
Loading