Giter Site home page Giter Site logo

Comments (4)

FightingEveryDay0 avatar FightingEveryDay0 commented on June 27, 2024

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.

from primer.

FightingEveryDay0 avatar FightingEveryDay0 commented on June 27, 2024

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?

from primer.

desis123 avatar desis123 commented on June 27, 2024

@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.

from primer.

SabrinaZhuangxx avatar SabrinaZhuangxx commented on June 27, 2024

I have encountered the same problem. Have you solved it?

from primer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.