Skip to content

Int 8 / FP 8 quantization support similar to bnb #24

Closed

Description

@alexconstant9108

Hi there @ggerganov and great work. The performance on CPU is just amazing.
Would it be possible in the future to also implement Int 8 / FP 8 loading of models (a few layers still must be loaded with their original fp16 or fp32 weights) similar to bitsandbytes library: https://github.com/TimDettmers/bitsandbytes
This would allow loading of bigger models on some systems with limited amount of cpu ram. Or perhaps even faster inference for models like GPT-J.
In theory on a mac system or x64 (AVX2 or AVX512) system with 128GB cpu ram you would be able load a 120B model this way... Wouldnt that be amazing :)))

Activity

  1. ggerganov commented on Feb 22, 2023

    @ggerganov
    Member

    Hi, these days I actually started working on 4-bit / n-bit quantization support.
    There are some optimistic results already, but not 100% sure yet if I will be able to make it work efficiently and accurately.

  2. alexconstant9108 commented on Feb 22, 2023

    @alexconstant9108
    Author

    4 bit! Wow! This reminds me of https://github.com/THUDM/GLM-130B/blob/main/docs/quantization.md
    It would be total game changer if it works. Some degradation in output accuracy is expected for some models of course but still much better than not able to run the model at all due to hardware limitations :))))

  3. pinned this issue on Feb 26, 2023
  4. unpinned this issue on May 20, 2023
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions