transformers icon indicating copy to clipboard operation
transformers copied to clipboard

piepline not loading the model

Open deepanshudashora opened this issue 2 years ago • 2 comments

System Info

ubuntu 22.04

Who can help?

@Narsil

Information

  • [X] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [X] My own task or dataset (give details below)

Reproduction

    pipe = pipeline("document-question-answering", model=model,tokenizer=tokenizer)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 811, in pipeline
    raise Exception(
Exception: Impossible to guess which feature extractor to use. Please provide a PreTrainedFeatureExtractor class or a path/identifier to a pretrained feature extractor.

Expected behavior

SHould be able to load the model

deepanshudashora avatar Feb 24 '23 11:02 deepanshudashora

How? This pipeline requires a feature extractor to see the document doesn't it?

Narsil avatar Feb 24 '23 11:02 Narsil

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Mar 26 '23 15:03 github-actions[bot]