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.

SummarizationPipeline crashes

See original GitHub issue
summarize = pipeline("summarization")
summarize("Sam Shleifer writes the best docstring examples in the whole world.")

➡️

/usr/local/lib/python3.6/dist-packages/transformers/pipelines.py in _parse_and_tokenize(self, pad_to_max_length, *args, **kwargs)
    461         # Parse arguments
    462         inputs = self._args_parser(*args, **kwargs)
--> 463         inputs = self.tokenizer.batch_encode_plus(
    464             inputs, add_special_tokens=True, return_tensors=self.framework, pad_to_max_length=pad_to_max_length,
    465         )

AttributeError: 'dict' object has no attribute 'batch_encode_plus'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
sshleifercommented, May 28, 2020

Yeah that sounds like this issue. It will be fixed in the next release or you can build from source with

git clone [this repo]
pip install -e .
0reactions
Dhanasekar-Scommented, Jun 17, 2020

@sshleifer It works finally. There was a problem with GPU allocation. Thanks for your response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipelines - Hugging Face
Even worse, on bigger batches, the program simply crashes. ... The models that this pipeline can use are models that have been fine-tuned...
Read more >
[vtk-developers] [VTK 0011515]: Pipeline crashes with multiple ...
[vtk-developers] [VTK 0011515]: Pipeline crashes with multiple update extent requests, if different extents are requested.
Read more >
Pipeline jobs crashing on user names beginning with special ...
Summary Pipeline jobs triggered by users with names beginning with special characters, are crashing. I'm not sure if this...
Read more >
Data-driven accident consequence assessment on urban gas ...
The accidents in Urban Pipeline Network (UPN) may cause enormous economic loss ... factors affecting accident consequence of gas UPN are first summarized....
Read more >
Pipeline transportation occurrences in 2020
Pipeline transportation occurrences in 2020 - Statistical Summary - ... Pipeline accidents and incidents reported to the TSB (according to reporting ...
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