Skip to content

Have trouble in using flan-t5-xxl #474

Closed

Description

@Vergissmeinicht

Been trying to use use flan-t5-xxl like enc_dec example but failed to get correct output from trt inference. The T5 (t5-small) and Flan-T5 (google/flan-t5-small) examples prove to be getting correct output. So i wonder whether flan-t5-xxl is supported or there's something with my building&running code. Hope to get your response. Many thanks.

Activity

  1. added
    triaged
    on Nov 27, 2023
  2. symphonylyh commented on Dec 1, 2023

    @symphonylyh
    Collaborator

    @Vergissmeinicht we're investigating an issue in #500 and it's probably related. Did you observe the same incorrect pattern that only the 1st token is correct? The error might be hidden in t5-small case so didn't get caught earlier.

  3. symphonylyh commented on Dec 4, 2023

    @symphonylyh
    Collaborator

    Recommend to try the v0.6.1 latest release: https://github.com/NVIDIA/TensorRT-LLM/releases/tag/v0.6.1 since there are several related bug fixes. Mark as closed for now. Please don't hesitate to reopen it if you still encounter the issue

  4. Vergissmeinicht commented on Dec 5, 2023

    @Vergissmeinicht
    Author

    Recommend to try the v0.6.1 latest release: https://github.com/NVIDIA/TensorRT-LLM/releases/tag/v0.6.1 since there are several related bug fixes. Mark as closed for now. Please don't hesitate to reopen it if you still encounter the issue

    Problem solved! Many thanks.

  5. symphonylyh commented on Dec 5, 2023

    @symphonylyh
    Collaborator

    @Vergissmeinicht Nice to hear!

  6. symphonylyh commented on Dec 13, 2023

    @symphonylyh
    Collaborator

    @Vergissmeinicht important note: I found a tiny but important fix for Flan-T5.
    As a temporary fix, please manually comment out these lines when you run Flan-T5 (but NOT T5!) — basically T5 has this rescaling while Flan-T5 doesn’t have, but currently v0.6.1 implementation will always fall into the default=True path.
    This will be fixed soon in a week in v0.7 release and/or weekly dev release, but if you have Flan-T5 on the fly it would be good to apply the local fix first. Thanks

    Update: already merged in latest main. Will be merged in v0.7 release soon!

  7. shannonphu commented on Dec 18, 2023

    @shannonphu

    @symphonylyh Thanks for the heads up! Just to confirm, this change only needs to happen when we perform inference ie https://github.com/NVIDIA/TensorRT-LLM/blob/rel/examples/enc_dec/run.py ? Do we need to rebuild the engines or image?

  8. symphonylyh commented on Dec 18, 2023

    @symphonylyh
    Collaborator

    @shannonphu Yes, you need to rebuild the engine. Because the change is in model.py, which directly maps to what the engine is doing, engines have to be rebuilt. If a change is made in run.py without touching model.py, usually the engines can be reused.

    Also update: the above fix has been merged in latest main and soon in v0.7. You can just update to main, rebuilt engines, and everything should work fine

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

Metadata

Metadata

Assignees

Labels

triaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions