Skip to content

Commit

Permalink
ci: update Transformers to v4.48.0
Browse files Browse the repository at this point in the history
We don't need to manually exclude some cuda specific tests for
models since this was addressed on Huggingface side for v4.48.0, see.

Previously failing test_prompt_lookup_decoding_matches_greedy_search test
in fuyu model now is skipped.

See: huggingface/transformers#35269
Signed-off-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
dvrogozh committed Jan 14, 2025
1 parent b2560ac commit 62ed9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/scripts/check-transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@
'tests.models.dpt.test_modeling_dpt_auto_backbone.DPTModelTest': {
'test_batching_equivalence': { 'flaky': True },
},
'tests.models.fuyu.test_modeling_fuyu.FuyuModelTest': {
'test_prompt_lookup_decoding_matches_greedy_search': { 'flaky': True },
},
'tests.models.git.test_modeling_git.GitModelTest': {
'test_generate_continue_from_past_key_values': { 'flaky': True },
'test_inputs_embeds_matches_input_ids': None,
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/_linux_transformers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
transformers:
required: false
type: string
default: 'v4.47.0'
default: 'v4.48.0'
description: Transformers version

permissions: read-all
Expand All @@ -53,7 +53,7 @@ jobs:
DisableScratchPages: ${{ inputs.driver == 'rolling' && '1' || '0' }}
python: ${{ inputs.python != '' && inputs.python || '3.10' }}
pytorch: ${{ inputs.pytorch != '' && inputs.pytorch || 'nightly' }}
transformers: ${{ inputs.transformers != '' && inputs.transformers || 'v4.47.0' }}
transformers: ${{ inputs.transformers != '' && inputs.transformers || 'v4.48.0' }}
PYTORCH_DEBUG_XPU_FALLBACK: '1'
TRANSFORMERS_TEST_DEVICE_SPEC: 'spec.py'
steps:
Expand Down Expand Up @@ -170,11 +170,8 @@ jobs:
source activate huggingface_transformers_test
cd transformers
# Excluding tests due to:
# * https://github.com/huggingface/transformers/issues/35252 (CUDA specific tests)
# * https://github.com/pytorch/pytorch/issues/140965 (aten::_linalg_eigvals)
pattern=" \
not test_model_parallelization and \
not test_model_parallel_equal_results and \
not test_resize_embeddings_untied and \
not test_resize_tokens_embeddings"
python3 -m pytest -rsf --make-reports=$TEST_CASE --junit-xml=reports/$TEST_CASE.xml tests/models -k "$pattern" || true
Expand Down

0 comments on commit 62ed9a5

Please sign in to comment.