Skip to content

FP6 quantization end-to-end.#5234

Merged
loadams merged 33 commits intomasterfrom
features/rebase-quant-fp6
Mar 8, 2024
Merged

FP6 quantization end-to-end.#5234
loadams merged 33 commits intomasterfrom
features/rebase-quant-fp6

Conversation

@loadams
Copy link
Collaborator

@loadams loadams commented Mar 6, 2024

The user interface: deepspeedai/DeepSpeed-MII#433
nv-a6000 ci running against the MII branch linked above is here

Co-authored-by: Zhen Zheng [email protected]
Co-authored-by: Shiyang Chen [email protected]
Co-authored-by: Arash Bakhtiari [email protected]
Co-authored-by: Haojun Xia [email protected]

JamesTheZ and others added 30 commits March 5, 2024 00:56
* Initialize the fp6-quant-kernel integration.
* Add necessary parameters of kernel interfaces and the linear layer selection logic.
* upload kernel code
* The simple script for debugging.
* fix typo
* update
* fix split k
* Fix some errors and add test case.
* Workspace for Inference Kernels (#1)
* Add transform_param functions and update format.
* kernel debug
* fix include
* Update core_ops.cpp
* Add split k support
* fix
* Fix kernel error
* update
* update
* Fix rebase errors.
* Add missed include.
* Fix the bug that the attribute uses the weight information for mem alloc.
* Avoid GPU preallocation during weight loading.
* Add support of larger shapes for gated activation kernel.
* update
* model update
* fix all weight preprocessing
* Add split-k heuristic.
* Avoid reading scale attribute on non-quantized tensors.
* Change the scales from attributes to new tensors. Provide the end-to-end script given HuggingFace model id.
* Hard-coded commented out the scales in the kernel to workaround the bug.
* Support the user config for quantization. Fix kernel bug.
* Per operator test functions.
* Multiply scales by 1e12 according to the kernel design.
* Revert "Workspace for Inference Kernels (#1)". This reverts commit 1528732.
* Remove the format-only changes.
* Put the quantization into the transform_param function.

---------

Co-authored-by: Shiyang Chen <[email protected]>
Co-authored-by: Haojun Xia <[email protected]>
@loadams
Copy link
Collaborator Author

loadams commented Mar 7, 2024

A6000 CI that points to the required branch for MII is here

@loadams loadams disabled auto-merge March 8, 2024 00:44
@loadams loadams merged commit ccfdb84 into master Mar 8, 2024
ShellyNR pushed a commit to ShellyNR/DeepSpeed that referenced this pull request Mar 11, 2024
The user interface: deepspeedai/DeepSpeed-MII#433
nv-a6000 ci running against the MII branch linked above is
[here](https://github.com/microsoft/DeepSpeed/actions/runs/8192124606)

Co-authored-by: Zhen Zheng
[[email protected]](mailto:[email protected])
Co-authored-by: Shiyang Chen [[email protected]](mailto:[email protected])
Co-authored-by: Arash Bakhtiari
[[email protected]](mailto:[email protected])
Co-authored-by: Haojun Xia
[[email protected]](mailto:[email protected])

---------

Co-authored-by: ZHENG, Zhen <[email protected]>
Co-authored-by: Shiyang Chen <[email protected]>
Co-authored-by: Haojun Xia <[email protected]>
Co-authored-by: Arash Bakhtiari <[email protected]>
Co-authored-by: Michael Wyatt <[email protected]>
Co-authored-by: Michael Wyatt <[email protected]>
loadams added a commit that referenced this pull request Apr 4, 2024
rraminen pushed a commit to ROCm/DeepSpeed that referenced this pull request May 9, 2024
The user interface: deepspeedai/DeepSpeed-MII#433
nv-a6000 ci running against the MII branch linked above is
[here](https://github.com/microsoft/DeepSpeed/actions/runs/8192124606)

Co-authored-by: Zhen Zheng
[[email protected]](mailto:[email protected])
Co-authored-by: Shiyang Chen [[email protected]](mailto:[email protected])
Co-authored-by: Arash Bakhtiari
[[email protected]](mailto:[email protected])
Co-authored-by: Haojun Xia
[[email protected]](mailto:[email protected])

---------

Co-authored-by: ZHENG, Zhen <[email protected]>
Co-authored-by: Shiyang Chen <[email protected]>
Co-authored-by: Haojun Xia <[email protected]>
Co-authored-by: Arash Bakhtiari <[email protected]>
Co-authored-by: Michael Wyatt <[email protected]>
Co-authored-by: Michael Wyatt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants