"docs/vscode:/vscode.git/clone" did not exist on "59eaefebe065e09cbdb3dc3fc48f4f508ccc7cd2"
Commit f5d7635e authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Disable HF integration test (#3431)

Summary:
The new version of transformers changed the format of pre-trained weight. Fixing it is low-priority for the maintanance team so we disable the test.

See https://github.com/pytorch/audio/issues/3430

Pull Request resolved: https://github.com/pytorch/audio/pull/3431

Differential Revision: D46592883

Pulled By: mthrok

fbshipit-source-id: d8f54a281a92cac60c469c48f95345bcf0e959d6
parent 30afaa9b
...@@ -71,7 +71,7 @@ fi ...@@ -71,7 +71,7 @@ fi
( (
set -x set -x
conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} 'librosa==0.10.0' parameterized 'requests>=2.20' conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} 'librosa==0.10.0' parameterized 'requests>=2.20'
pip install kaldi-io SoundFile coverage pytest pytest-cov 'scipy==1.7.3' transformers expecttest unidecode inflect Pillow sentencepiece pytorch-lightning 'protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm pip install kaldi-io SoundFile coverage pytest pytest-cov 'scipy==1.7.3' expecttest unidecode inflect Pillow sentencepiece pytorch-lightning 'protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm
) )
# Install fairseq # Install fairseq
git clone https://github.com/pytorch/fairseq git clone https://github.com/pytorch/fairseq
......
...@@ -82,7 +82,6 @@ esac ...@@ -82,7 +82,6 @@ esac
pytest-cov \ pytest-cov \
pytorch-lightning \ pytorch-lightning \
'scipy==1.7.3' \ 'scipy==1.7.3' \
transformers \
unidecode \ unidecode \
'protobuf<4.21.0' \ 'protobuf<4.21.0' \
demucs \ demucs \
......
import json import json
import unittest
import torch import torch
from parameterized import parameterized from parameterized import parameterized
...@@ -87,6 +88,7 @@ WAVLM_CONFIGS = parameterized.expand( ...@@ -87,6 +88,7 @@ WAVLM_CONFIGS = parameterized.expand(
) )
@unittest.skip("transformers v4.30 seems to break the weight format. See https://github.com/pytorch/audio/issues/3430")
@skipIfNoModule("transformers") @skipIfNoModule("transformers")
class TestHFIntegration(TorchaudioTestCase): class TestHFIntegration(TorchaudioTestCase):
"""Test the process of importing the models from Hugging Face Transformers """Test the process of importing the models from Hugging Face Transformers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment