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

pin hf transformers #1914

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test = [
"pytest-rerunfailures>=14.0",
"pytest-timeout>=2.3.1",
"pytest-dependency>=0.6.0",
"transformers>=4.38.0", # numerical comparisons
"transformers==4.47.1", # numerical comparisons
"einops>=0.7.0",
"protobuf>=4.23.4",
]
Expand All @@ -50,7 +50,7 @@ all = [
"tensorboard>=2.14.0", # litgpt.pretrain
"torchmetrics>=1.3.1", # litgpt.pretrain
"datasets>=2.18.0", # litgpt.evaluate
"transformers>=4.38.0", # litgpt.evaluate
"transformers==4.47.1", # litgpt.evaluate
"lm-eval>=0.4.2", # litgpt.evaluate
"huggingface_hub[hf_transfer]>=0.21.0", # download
"uvloop>=0.2.0 ; sys_platform != 'win32'" # litdata, only on non-Windows
Expand Down
2 changes: 1 addition & 1 deletion tests/run_standalone_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defaults="-m pytest --no-header -v --disable-pytest-warnings --strict-markers --
echo "Using defaults: ${defaults}"

# find tests marked as `@RunIf(standalone=True)`. done manually instead of with pytest because it is faster
grep_output=$(grep --recursive --word-regexp . --regexp 'standalone=True' --include '*.py')
grep_output=$(grep --recursive --word-regexp . --regexp 'standalone=True' --include '*.py' --exclude 'test_thunder*.py')

# file paths, remove duplicates
files=$(echo "$grep_output" | cut -f1 -d: | sort | uniq)
Expand Down
Loading