Skip to content

How can I use flan-t5-base? #251

Closed
Closed

Description

@shainisan

I tried to follow the logic from here but I'm not able to load and use the google/flan-t5-base

I'll appreciate your help with this.

Thanks.

Activity

  1. added
    feature request
    on Nov 2, 2023
  2. added
    triaged
    on Nov 5, 2023
  3. symphonylyh commented on Nov 8, 2023

    @symphonylyh
    Collaborator

    Hi we're working on Flan-T5, there are changes needed in weight loading and model definition to enabled flan-T5's gated activation. We'll ping this thread once it's done

  4. nish996 commented on Nov 8, 2023

    @nish996

    Hi @symphonylyh ,
    Any idea on when the flan t5 models would be supported?

  5. symphonylyh commented on Nov 17, 2023

    @symphonylyh
    Collaborator

    Hi @shainisan @nish996 , more general T5 and Flan-T5 support has been done and scheduled for TRT-LLM's 0.6.0 monthly release soon. Please stay tuned.

  6. symphonylyh commented on Nov 17, 2023

    @symphonylyh
    Collaborator

    @shainisan @nish996 , actually it has been released to dev branch (i.e., main) earlier! please check: #424.

  7. shainisan commented on Nov 19, 2023

    @shainisan
    Author

    Amazing! Thank you!

  8. shainisan commented on Nov 19, 2023

    @shainisan
    Author

    @symphonylyh can you please explain what should be done in order to use the new feature?
    Should I change the branch to main and rebuild the docker? Or something else?
    Thanks!

  9. symphonylyh commented on Nov 19, 2023

    @symphonylyh
    Collaborator

    @symphonylyh can you please explain what should be done in order to use the new feature? Should I change the branch to main and rebuild the docker? Or something else? Thanks!

    Generally speaking, the most stable way to use a new version (i.e., new commits pushed to the dev main branch OR a major release with release/x.x.x) is to redo the steps in the docs/installation.md: (1) rebuild docker images (2) inside new docker container, rebuild TRT-LLM c++ source code and install python wheel.

    For major release, it's likely the docker image has to be rebuilt (which doesn't take very long) because we may have updated the base environment and submodules. For most update commits to the dev main branch, you can usually use the same docker you have, but need to re-run the cpp build & wheel install commands. I would recommend you try (2) first; if it doesn't work, do (1) & (2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature requesttriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions