Skip to content

Question about readme benchmarks #1

Closed

Description

@decoherencer

Huggingface 1 T4 23h 15m 56h 28m 8h 38m 391h 41m
Huggingface 2 T4 84h 47m 163h 48m 30h 51m 1301h 24m

Sorry, are these different models? why is 1T4 faster?

Activity

  1. danielhanchen commented on Dec 1, 2023

    @danielhanchen
    Member

    Hiya - so weirdly from our benchmarks it seems like HF's DDP is not optimally loading data for each GPU - you can replicate our results on Kaggle notebooks which has 2 Tesla T4s by running the official QLoRA example: https://colab.research.google.com/drive/1VoYNfYDKcKRQRor98Zbf2-9VQTtGJ24k?usp=sharing - it needs changes, but it should run.

  2. danielhanchen commented on Dec 1, 2023

    @danielhanchen
    Member

    Also DDP has some extra overhead since you must synchronize gradients at the end of each step, hence it's slower a bit. Interestingly, if batch sizes are large enough, using multi GPUs don't really speed up QLoRA training that much, since the FLOP utilization is mainly in the matrix multiplies of dC/dX and not dC/dLoras

  3. vgoklani commented on Dec 2, 2023

    @vgoklani

    Hey @danielhanchen - can you please be more precise here:

    HF's DDP is not optimally loading data for each GPU

    What do you mean by not optimally? What about using DDP directly?

    Thanks!

  4. danielhanchen commented on Dec 3, 2023

    @danielhanchen
    Member

    @vgoklani You'll have to ask the HF team about this - I'm not sure why myself

  5. vgoklani commented on Dec 3, 2023

    @vgoklani

    Thanks for the response @danielhanchen

    I'm confused about why you said HF's DDP is not optimally loading data for each GPU

    Can you describe what you observed that led to that hypothesis?

    Thanks!

  6. danielhanchen commented on Dec 4, 2023

    @danielhanchen
    Member

    @vgoklani #13 has the benchmarking notebooks if you're interested.

  7. vgoklani commented on Dec 5, 2023

    @vgoklani

    thanks @danielhanchen - Could you please post benchmarks on an A100/H100. Also, could you please run the huggingface code with Flash-attention2 enabled (I don't know of any group that doesn't use flash-attention, it's standard). thanks!

  8. danielhanchen commented on Dec 5, 2023

    @danielhanchen
    Member

    @vgoklani I'll post it in a new blog - closing for now - you can reopen once the new blog comes out

  9. 3 remaining items

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