Update tiny models and a few fixes (#22928)
* run_check_tiny_models * update summary * update mixin * update pipeline_model_mapping * update pipeline_model_mapping * Update for gpt_bigcode --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -36,9 +36,11 @@ class ZeroShotClassificationPipelineTests(unittest.TestCase):
|
||||
tf_model_mapping = TF_MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING
|
||||
|
||||
if model_mapping is not None:
|
||||
model_mapping = {config: model for config, model in model_mapping.items() if config.__name__ in _TO_SKIP}
|
||||
model_mapping = {config: model for config, model in model_mapping.items() if config.__name__ not in _TO_SKIP}
|
||||
if tf_model_mapping is not None:
|
||||
tf_model_mapping = {config: model for config, model in tf_model_mapping.items() if config.__name__ in _TO_SKIP}
|
||||
tf_model_mapping = {
|
||||
config: model for config, model in tf_model_mapping.items() if config.__name__ not in _TO_SKIP
|
||||
}
|
||||
|
||||
def get_test_pipeline(self, model, tokenizer, processor):
|
||||
classifier = ZeroShotClassificationPipeline(
|
||||
|
||||
Reference in New Issue
Block a user