question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading pipeline("summarization") failed

See original GitHub issue

Hi guys, when I try to load pipeline(“summarization”) I get the following error:

Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "PATH", line 11, in <module> summarizer = pipeline("summarization") File "PATH\venv\lib\site-packages\transformers\pipelines.py", line 1626, in pipeline return task_class(model=model, tokenizer=tokenizer, modelcard=modelcard, framework=framework, task=task, **kwargs,) File "PATH\venv\lib\site-packages\transformers\pipelines.py", line 367, in __init__ task_specific_params = self.model.config.task_specific_params AttributeError: 'NoneType' object has no attribute 'config'

Setup: Python: 3.7.6 transformers==2.8.0 tensorboard==2.0.2 tensorflow==2.0.0 tensorflow-estimator==2.0.1 tensorflow-hub==0.7.0

from transformers import pipeline
from transformers import TFAutoModelWithLMHead, AutoTokenizer

summarizer = pipeline("summarization")

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
julien-ccommented, Apr 10, 2020

The default summarization pipeline doesn’t have support for TF unfortunately, but we should probably add an explicit error message @sshleifer

0reactions
julien-ccommented, Apr 15, 2020

Do you want to take a stab at a better error message for this @patrickvonplaten?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipelines - Hugging Face
Summarize news articles and other documents. This summarizing pipeline can currently be loaded from pipeline() using the following task identifier: ...
Read more >
Transformers model from Hugging-Face throws error that ...
In the GitHub issue, another workaround is mentioned: load the model in TF with from_pt=True and save as personal copy as a TF...
Read more >
Pipelines API - GitLab Docs
Get a pipeline's test report summary. Introduced in GitLab 14.2. This API route is part of the Unit test report feature.
Read more >
About dashboards, charts, reports, & widgets - Azure
These reports derive from Analytics data. Open a pipeline (or release summary for Test failure) to view the reports and select the Analytics...
Read more >
Release Notes — SensiML Documentation
Added Loader with logs for creating and loading pipeline ... Added additional information to the model summary for PME and TensorFlow Lite for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found