• Nicolas Patry's avatar
    Fixing issue where generic model types wouldn't load properly with the pipeline (#18392) · 586dcf6b
    Nicolas Patry authored
    * Adding a better error message when the model is improperly configured
    
    within transformers.
    
    * Update src/transformers/pipelines/__init__.py
    
    * Black version.
    
    * Overriding task aliases so that tokenizer+feature_extractor
    
    values are correct.
    
    * Fixing task aliases by overriding their names early
    
    * X.
    
    * Fixing feature-extraction.
    
    * black again.
    
    * Normalizing `translation` too.
    
    * Fixing last few corner cases.
    
    translation need to use its non normalized name (translation_XX_to_YY,
    so that the task_specific_params are correctly overloaded).
    This can be removed and cleaned up in a later PR.
    
    `speech-encode-decoder` actually REQUIRES to pass a `tokenizer` manually
    so the error needs to be discarded when the `tokenizer` is already
    there.
    
    * doc-builder fix.
    
    * Fixing the real issue.
    
    * Removing dead code.
    
    * Do not import the actual config classes.
    586dcf6b
test_pipelines_automatic_speech_recognition.py 34.1 KB