1. 05 Jun, 2024 1 commit
  2. 03 Jun, 2024 1 commit
  3. 01 Jun, 2024 1 commit
  4. 30 May, 2024 1 commit
  5. 28 May, 2024 1 commit
  6. 11 May, 2024 1 commit
  7. 09 May, 2024 1 commit
  8. 03 May, 2024 1 commit
  9. 21 Apr, 2024 1 commit
  10. 20 Apr, 2024 2 commits
    • nunjunj's avatar
      91528575
    • Cody Yu's avatar
      [Kernel][FP8] Initial support with dynamic per-tensor scaling (#4118) · a22cdea3
      Cody Yu authored
      Provide an initial support to FP8 computation. This PR is inspired by HuggingFace TGI: huggingface/text-generation-inference#1726
      
      This feature can be enabled with --quantization fp8 or -q fp8 when launching an engine.
      
      Algorithm:
      We still load a model checkpoint in FP16/BF16. After the weights are loaded, Fp8LinearMethod calculates the per-tensor scaling factor of weights and quantizes the weights accordingly. The scaling factor will then be stored for future use. Meanwhile, the per-tensor scaling factor for activations is calculated in every forward pass.
      
      Initial Results:
      Currently tested Mistral-7B on 1xH100. With prompt length ~5 and decoding length 128:
      
      BF16: 1.47s
      FP8: 1.66s
      I'll try to use larger models and try to find more performance bottleneck. Meanwhile, you're welcome to try this code.
      a22cdea3
  11. 12 Apr, 2024 2 commits
  12. 29 Mar, 2024 1 commit
  13. 25 Mar, 2024 2 commits
  14. 22 Mar, 2024 1 commit
  15. 06 Mar, 2024 1 commit
  16. 02 Mar, 2024 1 commit
  17. 04 Feb, 2024 1 commit
  18. 27 Jan, 2024 1 commit
  19. 23 Jan, 2024 1 commit
  20. 18 Jan, 2024 1 commit
  21. 17 Dec, 2023 2 commits
  22. 15 Dec, 2023 1 commit
  23. 20 Nov, 2023 1 commit
  24. 03 Oct, 2023 1 commit
  25. 20 Sep, 2023 1 commit
  26. 18 Sep, 2023 1 commit
  27. 13 Sep, 2023 1 commit
  28. 08 Jul, 2023 1 commit
  29. 07 Jul, 2023 1 commit
  30. 03 Jul, 2023 1 commit
  31. 28 Jun, 2023 3 commits
  32. 22 Jun, 2023 1 commit
  33. 17 Jun, 2023 2 commits