Open FightingEveryDay0 opened 2 years ago
And the generated_str is:
An 11-year-old boy who survived being sucked into a flooded stormwater drain has been reunited with his rescuers in Melbourne and gifted a new bike a week after the tumultuous ordeal. Jake Gilbert was cycling with a friend in Altona Meadows last week when he rode across a submerged drain and was sucked 10 metres underneath a road. Stormwater drain ‘I love you all!’: boy sucked into stormwater drain in Melbourne praises rescuers after amazing escape. Gilbert managed to
However, I think it is just the same as the input, but I don't know how to use PRIMERA to inference correctly.
When using the primer_main.py, "output_ids" did not feed into the forward() function, sorry that I got trouble in using the pretrained model. Could you help me?
@FightingEveryDay0 This is what I got when I used
model = LongformerEncoderDecoderForConditionalGeneration.from_pretrained(
'./PRIMER_multinews/', config=config)
and I have put max_output_len = 1000
An 11-year-old boy in Melbourne, Australia, is being praised for his survival after he was sucked into a flooded stormwater drain and saved by a passerby and an off-duty emergency services member. Jake Gilbert was cycling with friend Kyle when he crossed a submerged drain and was sucked 10 feet beneath a road, the Daily Telegraph reports. Gilbert managed to grab on to the underside of a metal grate on the other side and keep his head above water before the passerby and the off-duty SES member removed the bolts and pried the grate open. Kyle was also washed off his bike, but he managed to avoid being sucked into the drain. A week after the dramatic escape, Jake was reunited with his rescuers and given a new bike, the Telegraph reports.
I have encountered the same problem. Have you solved it?
Hi, thank you for your sharing. I have trouble in using PRIMERA to generate summary. Could you please help me using the pretrained PRIMERA model generate the summary correctly? The code is as following: