Given example 4 does not work

#9
by FatiAI - opened

I'm testing this model and when I get to example 4 it doesn't work. When I reduce the size of the text it works. I wonder how to make it work with the long text ?
do you understand why it doesn't work and do you have any idea how to make it work plz?

I also am encountering this error when deploying on AWS.

Hi sir,

Would you please give me some suggestion.
How could it work well as yours ?
Thank you.
Description as below:

1.__I already download the files under meeting summary into my folder.

2.__And then I post the code below,

from transformers import pipeline
summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY")
text = '''The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel ......
'''
summarizer(text)

3.__Then the "IDLE Shell 3.11.3" show:
==================== RESTART: C:\Users\tsengb_py\summary.py ===================

Downloading pytorch_model.bin: 0%| | 0.00/1.63G [00:00<?, ?B/s]
Downloading pytorch_model.bin: 1%| | 10.5M/1.63G [00:01<04:58, 5.42MB/s]
Downloading pytorch_model.bin: 1%|▏ | 21.0M/1.63G [00:02<03:04, 8.67MB/s]
Downloading pytorch_model.bin: 2%|▏ | 31.5M/1.63G [00:03<02:32, 10.4MB/s]
Downloading pytorch_model.bin: 3%|β–Ž | 41.9M/1.63G [00:04<02:14, 11.8MB/s]
Downloading pytorch_model.bin: 3%|β–Ž | 52.4M/1.63G [00:04<01:56, 13.4MB/s]
Downloading pytorch_model.bin: 4%|▍ | 62.9M/1.63G [00:05<01:49, 14.2MB/s]
Downloading pytorch_model.bin: 5%|▍ | 73.4M/1.63G [00:05
......

"knkarthick/MEETING_SUMMARY" -> refers to HF Hub link.
For local dir (Let's say model_dir), it should be "./model_dir". Refer HF documentation for more info.

knkarthick changed discussion status to closed

Sign up or log in to comment