Skip to content

Breakdown of speedups #9

Closed
Closed

Description

@vgoklani

Hey there,

Thanks for releasing this!

Going through the list of kernels:

  1. CrossEntropyLoss
  2. RMS NORM
  3. RopeEmbedding
  4. Swiglu
  5. FastLoRA

I'm trying to understand how the various optimizations correlate to performance improvements, is there a chart that shows the gains from #5 alone?

Secondly, could you please explain what's being done/included in the both the PRO/MAX tiers. The wording from the blog post is very imprecise.

Thanks!

Activity

  1. Qubitium commented on Dec 2, 2023

    @Qubitium
    Contributor

    Same as above.

    Are the charts/speed ups for native fp16/bf16 or qlora/4bit? Can we get a separate charts for native vs 4bit/loads as they are wildly diff beasts for training.

    I have no interest in loras/qloras thus my interest in pure fp16/bf16 speedy vs lora numbers.

  2. danielhanchen commented on Dec 3, 2023

    @danielhanchen
    Member

    I do have ballpark numbers for Unsloth Open on Llama 13B for full fp16 / bf16 training - it's 1.5x faster, so not 2x on a single A100, but memory is shaved from 31.6GB to 27.2GB ish - where the VRAM used for training is reduced from 6.9GB to 2.6GB (the rest is the actual weights)

  3. danielhanchen commented on Dec 3, 2023

    @danielhanchen
    Member

    @vgoklani We're working on a blog post for that!! Will release in the next few days!

  4. added a commit that references this issue on Mar 12, 2026
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