GithubHelp home page GithubHelp logo

Comments (10)

albertfgu avatar albertfgu commented on August 28, 2024 7

Agree it's a useful feature, it's on the roadmap!

from mamba.

albertfgu avatar albertfgu commented on August 28, 2024 7

Unfortunately not right now. It will hopefully be ready within a few weeks.

from mamba.

ejmejm avatar ejmejm commented on August 28, 2024 3

Unfortunately not right now. It will hopefully be ready within a few weeks.

Just checking to see if this is still in progress. I was going to start working on this myself, but I would hate to spend a couple weeks figuring it out just for an official implementation to come out at the same time.

from mamba.

sentialx avatar sentialx commented on August 28, 2024

@albertfgu Would states be differentiable? I would rather like to not stop the gradient during training unlike @robflynnyh

from mamba.

albertfgu avatar albertfgu commented on August 28, 2024

Not sure, it's a lot of extra work to make it differentiable through the final state. And that's also not necessary for the main use case that we wanted to support (continuing training on the next state). What use case are you thinking of?

from mamba.

sentialx avatar sentialx commented on August 28, 2024

I'm thinking of backpropagation through time on multiple chunks (e.g. 4) instead of fitting full sequence in one huge window

from mamba.

tridao avatar tridao commented on August 28, 2024

I'm thinking of backpropagation through time on multiple chunks (e.g. 4) instead of fitting full sequence in one huge window

Would that take the same amount of activation memory as computing the full sequence?

from mamba.

sentialx avatar sentialx commented on August 28, 2024

Hmm yeah, my bad

from mamba.

sustcsonglin avatar sustcsonglin commented on August 28, 2024

Are there any convenient ways to set up the initial state for mamba? I wanna use TBPTT to train mamba on longer ctx size, so there is no need to make initial/final states of each chunk differentiable.

from mamba.

woominsong avatar woominsong commented on August 28, 2024

Not sure, it's a lot of extra work to make it differentiable through the final state. And that's also not necessary for the main use case that we wanted to support (continuing training on the next state). What use case are you thinking of?

@albertfgu I think differentiable initial states is a critical feature for investigating state initialization. For example, we would be able to perform prefix tuning for mamba (similar to tuning KV-cache in Transformers).

from mamba.

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.