Skip to content

CUDA out of memory - minimum gpu size #167

Closed

Description

@yscoffee

Thanks for the amazing work.
Could you please suggest the minimum GPU size for doing offline Inference?
I tried with 24GB 4090 but it turns out not enought for running the offline inference example.

Activity

  1. BIGBALLON commented on May 13, 2024

    @BIGBALLON

    @yscoffee The total number of model parameters is 25.5B, consisting of the architecture of InternViT-6B-448px-V1-5 + MLP + InternLM2-Chat-20B.

    • For bf16, at least 52GB of GPU memory is required.
    • For int8, at least 26GB of GPU memory is needed. There is also some additional overhead. so 32GB memory is needed.

    Examples, if you can understand Chinese, you can refer to this article:

    • 1 GPU for int8 model: image
    • 2 GPU for bf16 model: image
    • 4 GPU for bf16 model: image
  2. yscoffee commented on May 13, 2024

    @yscoffee
    Author

    thank you for the detail explanation!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions