test_pipelines_feature_extraction.py 476 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
import unittest

from .test_pipelines_common import MonoInputPipelineCommonMixin


class FeatureExtractionPipelineTests(MonoInputPipelineCommonMixin, unittest.TestCase):
    pipeline_task = "feature-extraction"
    small_models = [
        "sshleifer/tiny-distilbert-base-cased"
    ]  # Default model - Models tested without the @slow decorator
    large_models = [None]  # Models tested with the @slow decorator
    mandatory_keys = {}  # Keys which should be in the output