Skip to content

Commit

Permalink
Upgrade Transformers to v4.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Dec 13, 2023
1 parent 9ad5ab2 commit ce847b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ quality:
python utils/custom_init_isort.py --check_only
python utils/sort_auto_mappings.py --check_only
flake8 $(check_dirs)
doc-builder style src/adapters docs --max_len 119 --check_only --path_to_docs docs
python utils/check_inits.py

# Format source code automatically and check is there are any problems left that need manual fixing

extra_style_checks:
python utils/custom_init_isort.py
python utils/sort_auto_mappings.py
doc-builder style src/adapters docs --max_len 119 --path_to_docs docs

# this target runs checks on all files and potentially modifies some of them

Expand Down
2 changes: 1 addition & 1 deletion hf_transformers
Submodule hf_transformers updated 1411 files
12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
# We try to follow their general layout wherever sensible.

_deps = [
"accelerate>=0.20.3",
"accelerate>=0.21.0",
"beautifulsoup4",
"black==22.3", # after updating to black 2023, also update Python version in pyproject.toml to 3.7
"datasets!=2.5.0",
"dill<0.3.5",
"docutils==0.16.0",
"evaluate>=0.2.0",
"flake8>=3.8.3",
"GitPython<3.1.19",
"hf-doc-builder>=0.3.0",
"isort>=5.5.4",
"Jinja2==2.11.3",
"nltk",
Expand All @@ -49,7 +49,6 @@
"rouge-score!=0.0.7,!=0.0.8,!=0.1,!=0.1.1",
"sacrebleu>=1.4.12,<2.0.0",
"sacremoses",
"safetensors>=0.2.1",
"scikit-learn",
"sentencepiece>=0.1.91,!=0.1.92",
"sphinx-copybutton",
Expand All @@ -61,8 +60,7 @@
"sphinx-multiversion",
"timeout-decorator",
"torch>=1.10,!=1.12.0",
"transformers==4.35.2",
"beautifulsoup4",
"transformers==4.36.0",
]


Expand Down Expand Up @@ -103,17 +101,15 @@ def deps_list(*pkgs):
"rouge-score",
"nltk",
"GitPython",
"hf-doc-builder",
"protobuf", # Can be removed once we can unpin protobuf
"sacremoses",
"rjieba",
"safetensors",
"beautifulsoup4",
"pillow",
"accelerate",
)

extras["quality"] = deps_list("black", "datasets", "isort", "flake8", "GitPython", "hf-doc-builder")
extras["quality"] = deps_list("black", "datasets", "isort", "flake8", "GitPython")

extras["docs"] = deps_list(
"docutils",
Expand Down

0 comments on commit ce847b2

Please sign in to comment.