mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
[tests] remove overload for deleted test (test_offloaded_cache_implementation
) (#37896)
* remove overload for deleted tests * make fixup
This commit is contained in:
parent
f85fd90407
commit
0f5a8243c4
@ -17,7 +17,6 @@ import unittest
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import requests
|
import requests
|
||||||
from parameterized import parameterized
|
|
||||||
|
|
||||||
from transformers import (
|
from transformers import (
|
||||||
AutoProcessor,
|
AutoProcessor,
|
||||||
@ -396,12 +395,6 @@ class MllamaForConditionalGenerationModelTest(ModelTesterMixin, GenerationTester
|
|||||||
def test_model_parallelism(self):
|
def test_model_parallelism(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@parameterized.expand([("offloaded",)])
|
|
||||||
@pytest.mark.generate
|
|
||||||
@unittest.skip(reason="Offloaded cache seems to not work with mllama's kv cache type")
|
|
||||||
def test_offloaded_cache_implementation(self, cache_implementation):
|
|
||||||
pass
|
|
||||||
|
|
||||||
@unittest.skip(
|
@unittest.skip(
|
||||||
reason="Mllama cache type doesn't allow correct check on output `past_key_values` due to `Cache.crop()`"
|
reason="Mllama cache type doesn't allow correct check on output `past_key_values` due to `Cache.crop()`"
|
||||||
)
|
)
|
||||||
|
@ -546,12 +546,6 @@ class WhisperModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMi
|
|||||||
def test_generate_with_head_masking(self):
|
def test_generate_with_head_masking(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@parameterized.expand([("offloaded",)])
|
|
||||||
@pytest.mark.generate
|
|
||||||
@unittest.skip(reason="Whisper doesn't work with offloaded cache implementation yet")
|
|
||||||
def test_offloaded_cache_implementation(self, cache_implementation):
|
|
||||||
pass
|
|
||||||
|
|
||||||
@require_torch_fp16
|
@require_torch_fp16
|
||||||
def test_generate_fp16(self):
|
def test_generate_fp16(self):
|
||||||
config, input_dict = self.model_tester.prepare_config_and_inputs()
|
config, input_dict = self.model_tester.prepare_config_and_inputs()
|
||||||
|
Loading…
Reference in New Issue
Block a user