Remove trust_remote_code when loading Libri Dummy (#31748)
* [whisper integration] use parquet dataset for testing * propagate to others * more propagation * last one
This commit is contained in:
@@ -138,9 +138,7 @@ class EnCodecFeatureExtractionTest(SequenceFeatureExtractionTestMixin, unittest.
|
||||
def _load_datasamples(self, num_samples):
|
||||
from datasets import load_dataset
|
||||
|
||||
ds = load_dataset(
|
||||
"hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True
|
||||
)
|
||||
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
||||
# automatic decoding with librispeech
|
||||
audio_samples = ds.sort("id").select(range(num_samples))[:num_samples]["audio"]
|
||||
|
||||
|
||||
@@ -461,9 +461,7 @@ class EncodecIntegrationTest(unittest.TestCase):
|
||||
"1.5": [371955],
|
||||
"24.0": [6659962],
|
||||
}
|
||||
librispeech_dummy = load_dataset(
|
||||
"hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True
|
||||
)
|
||||
librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
||||
model_id = "facebook/encodec_24khz"
|
||||
|
||||
model = EncodecModel.from_pretrained(model_id).to(torch_device)
|
||||
@@ -517,9 +515,7 @@ class EncodecIntegrationTest(unittest.TestCase):
|
||||
"3.0": [144259, 146765, 156435, 176871, 161971],
|
||||
"24.0": [1568553, 1294948, 1306190, 1464747, 1663150],
|
||||
}
|
||||
librispeech_dummy = load_dataset(
|
||||
"hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True
|
||||
)
|
||||
librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
||||
model_id = "facebook/encodec_48khz"
|
||||
|
||||
model = EncodecModel.from_pretrained(model_id).to(torch_device)
|
||||
@@ -581,9 +577,7 @@ class EncodecIntegrationTest(unittest.TestCase):
|
||||
[85561, 81870, 76953, 48967, 79315, 85442, 81479, 107241],
|
||||
],
|
||||
}
|
||||
librispeech_dummy = load_dataset(
|
||||
"hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True
|
||||
)
|
||||
librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
||||
model_id = "facebook/encodec_48khz"
|
||||
|
||||
model = EncodecModel.from_pretrained(model_id).to(torch_device)
|
||||
|
||||
Reference in New Issue
Block a user