Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for int8 quantization on linear layers #299

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

pommedeterresautee
Copy link
Member

@pommedeterresautee pommedeterresautee commented Feb 27, 2023

Fix #288

  • add int8 matmul + scalers support
  • update PyTorch to last available (post branch cut)
  • update triton to 2.0 (requires to rework some kernels)

test pass


================================================== warnings summary ==================================================
test/test_model_optimization.py: 1 warning
test/test_torchdynamo.py: 79 warnings
  /home/geantvert/.local/share/virtualenvs/kernl/lib/python3.9/site-packages/torch/cuda/graphs.py:79: UserWarning: The CUDA Graph is empty. This ususally means that the graph was attempted to be captured on wrong device or stream. (Triggered internally at ../aten/src/ATen/cuda/CUDAGraph.cpp:191.)
    super().capture_end()

test/debugger/test_memory.py::test_load_is_in_different_memory
  /mnt/workspace/kernl/test/debugger/test_memory.py:58: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
    assert t.storage().data_ptr() != a.storage().data_ptr()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= 2885 passed, 3 skipped, 81 warnings in 10684.37s (2:58:04) =============================

@github-actions github-actions bot added feature and removed feature labels Feb 28, 2023
# Conflicts:
#	.github/workflows/test.yaml
#	Dockerfile
#	README.md
#	docs/how-to-guides/get-started.md
#	requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: introduce int8 quant kernel
1 participant