mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[Tests] Fix DistilHubert path (#14245)
* Add audio-classification benchmarking results * fix distilhubert path
This commit is contained in:
parent
4a394cf53f
commit
ce01122a3b
@ -762,8 +762,8 @@ class HubertModelIntegrationTest(unittest.TestCase):
|
||||
self.assertTrue(torch.allclose(predicted_logits, expected_logits, atol=1e-1))
|
||||
|
||||
def test_inference_distilhubert(self):
|
||||
model = HubertModel.from_pretrained("anton-l/distilhubert").to(torch_device)
|
||||
processor = Wav2Vec2FeatureExtractor.from_pretrained("anton-l/distilhubert")
|
||||
model = HubertModel.from_pretrained("ntu-spml/distilhubert").to(torch_device)
|
||||
processor = Wav2Vec2FeatureExtractor.from_pretrained("ntu-spml/distilhubert")
|
||||
|
||||
# TODO: can't test on batched inputs due to incompatible padding https://github.com/pytorch/fairseq/pull/3572
|
||||
input_speech = self._load_datasamples(1)
|
||||
|
Loading…
Reference in New Issue
Block a user