Giter Site home page Giter Site logo

Efficient Sampling about gpt-neo HOT 6 CLOSED

eleutherai avatar eleutherai commented on July 3, 2024
Efficient Sampling

from gpt-neo.

Comments (6)

Mistobaan avatar Mistobaan commented on July 3, 2024

@shawwn is your pr #28 related to this?

from gpt-neo.

StellaAthena avatar StellaAthena commented on July 3, 2024

Per Stack Overflow, apparently you cannot have multiple assignees to a private repo. No idea why.

@Mistobaan @lucidrains should assure you both get notifications.

from gpt-neo.

sdtblck avatar sdtblck commented on July 3, 2024

reopening this because there are still some problems

  1. at least with the models I've tested, 'fast sampling' seems to be of significantly worse quality than slow sampling. (see sample screenshots below)

Slow sampling:
slow

Fast sampling:
fast
It looks ok on the surface but is notably more nonsensical and more often than not devolves into repetition:
fast_repetition

  1. fast sampling does not work with larger TPU pods - I will post the stacktrace for this shortly (whenever we have a spare pod 😆 )

I'm happy to look into this if you're busy @lucidrains . I suspect 1) is just an off by one error somewhere with the attention mask, maybe. 2) might be a little trickier but I'd be happy to look into this one, since TPUs might be the one area where I can claim to have more experience, haha. I think it may be a shape error relating to the mtf splitting.

from gpt-neo.

sdtblck avatar sdtblck commented on July 3, 2024

After a bit more digging, it seems like the sample quality is only worse with MOE models. I'm going to keep investigating as to why.

from gpt-neo.

sdtblck avatar sdtblck commented on July 3, 2024

Ok, for now we have set fast sampling as the default, but revert to slow sampling for moe models.

Error no. 2 wasn't in fact an error with larger pods, or models, but was an error with fast sampling when recompute_grad was set to True. This is fixed here: 8415e56

so what's left now is to 1) figure out what's wrong with moe and 2) try out step 4 here: #43

from gpt-neo.

sdtblck avatar sdtblck commented on July 3, 2024

closing this issue to open a more relevant one w/r/t moe

from gpt-neo.

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.