From db090badd67afac489685596f04d7ce9184fcf5e Mon Sep 17 00:00:00 2001 From: ZJaume Date: Tue, 16 Apr 2024 14:01:35 +0000 Subject: [PATCH] Update Transformers to 4.36.1 This fixes security issues #274, #275, #276. Can't upgrade to a higher version because this change seems to break model loading and some layers are failing to load: https://github.com/huggingface/transformers/pull/27794 --- CHANGELOG.md | 1 + pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c300e99..74e287f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Re-organize documentation. - Updated Tensorflow. - Support for Python 3.11. +- Updated Transformers to 4.36. ### Fixed: - Always English being used in Tokenizer during noise generation. diff --git a/pyproject.toml b/pyproject.toml index cb5a845..0452d9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,8 +26,8 @@ dependencies = [ "bicleaner-ai-glove==0.2.1", "fuzzywuzzy", "python-Levenshtein", - "transformers==4.30.2", - "huggingface-hub==0.15.1", + "transformers==4.36.1", + "huggingface-hub>=0.22,<0.23", "zstandard", "psutil", "regex",