https://github.com/amd/quark
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.9%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: amd
- License: mit
- Language: Python
- Default Branch: release/0.9
- Size: 7.49 MB
Statistics
- Stars: 66
- Watchers: 2
- Forks: 5
- Open Issues: 5
- Releases: 0
Metadata Files
README.md
AMD Quark is a comprehensive cross-platform toolkit designed to simplify and enhance the quantization of deep learning models. Supporting both PyTorch and ONNX models, AMD Quark empowers developers to optimize their models for deployment on a wide range of hardware backends, achieving significant performance gains without compromising accuracy.

Features
| Feature Set | PyTorch backend | ONNX backend |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Data Types | int4, uint4, int8, uint8, float16, bfloat16, OCP FP8 E4M3/E5M2, OCP MX INT8, OCP MX FP4, OCP MX FP6 E3M2/E2M3, OCP MX FP8 E4M3/E5M2 | int4, uint4, int8, uint8, int16, uint16, int32, uint32, float16, bfloat16, BFP16, MX4/MX6/MX9, OCP MX INT8, OCP MX FP4, OCP MX FP6 E3M2/E2M3, OCP MX FP8 E4M3/E5M2 |
| Quant Mode | eager mode, FX graph mode | ONNX graph mode |
| Quant Strategy | static quant, dynamic quant, weight-only | static quant, dynamic quant, weight-only |
| Quant Scheme | per-tensor, per-channel, per-group | per-tensor, per-channel |
| Symmetric | symmetric, asymmetric | symmetric, asymmetric |
| Calibration Method | MinMax, Percentile, MSE | MinMax, Percentile, MinMSE, Entropy, NonOverflow |
| Scale Type | float16, float32 | float16, float32 |
| KV-Cache Quant | FP8 KV-Cache Quant | N/A |
| Supported Ops. | nn.Linear, nn.Conv2d, nn.ConvTranspose2d, nn.Embedding, nn.EmbeddingBag, | Almost all ONNX ops, |
| | nn.BatchNorm2d, nn.BatchNorm3d, nn.LeakyReLU, nn.AvgPool2d, nn.AdaptiveAvgPool2d | see Full List |
| Pre-Quant Optimization | SmoothQuant | QuaRot, SmoothQuant, CLE |
| Quantization Algorithm | AWQ, GPTQ | AdaQuant, AdaRound, GPTQ, Bias Correction |
| Export Format | ONNX, JSON-Safetensors, GGUF(Q4_1) | N/A |
| Operating Systems | Linux {ROCm, CUDA, CPU}, Windows {CPU} | Linux {ROCm, CUDA, CPU}, Windows {CUDA, CPU} |
Model Support Table
| Quantization Technique | Supported Models | | ------------------------------------- | ------------------------------------------------------------------------------------------------- | | LLM Pruning | Model Support | | LLM Post Training Quantization (PTQ) | Model Support | | LLM Quantization Aware Training (QAT) | Model Support | | Vision Model Quantization | Model Support | | Quark for ONNX | Model Support
Installation
Official releases of AMD Quark are available on PyPI https://pypi.org/project/amd-quark/, and can be installed with pip:
shell
pip install amd-quark
[!NOTE]\ For full instructions to install AMD Quark from Python wheels or ZIP files, refer to our 🛠️Installation Guide. The Installation Guide also contains verification steps that apply to building from source.
Installing from Source
- Clone or download this repository.
- Follow the steps from the PyTorch website to install the appropriate PyTorch package for your system.
- You can then build and install AMD Quark, and its dependencies, which are detailed in requirements.txt, by running:
```shell git clone --recursive https://github.com/AMD/Quark cd Quark
[Optional] run git submodule if you are updating an existing Quark repository
git submodule sync git submodule update --init --recursive
pip install . ```
Resources
AMD Quark's documentation site contains Getting Started, API documentation for both PyTorch and ONNX backends, and other detailed information. The Installation Guide includes our Recommended First Time User Installation guide, to get set up with Quark quickly. Check out our Frequently Asked Questions for both PyTorch and ONNX for more details.
AMD Quark provides examples of Language Model and Image Classification model quantization, which can be found under examples/torch/ and examples/onnx/. These examples are documented here:
The examples folder also contain integrations of other quantizers under examples/torch/extensions/. You can read about those here:
Contributing
AMD Quark is not set up to accept community contributions (bug reports, feature requests, or Pull Requests) just yet. Please watch this space!
License and Copyright
Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: MIT. See LICENSE file for detail.
Owner
- Name: AMD
- Login: amd
- Kind: organization
- Email: dl.DevSecOps-Github-Admin@amd.com
- Website: http://www.amd.com
- Repositories: 56
- Profile: https://github.com/amd
GitHub Events
Total
- Issues event: 6
- Watch event: 43
- Issue comment event: 9
- Member event: 2
- Push event: 29
- Fork event: 4
- Create event: 4
Last Year
- Issues event: 6
- Watch event: 43
- Issue comment event: 9
- Member event: 2
- Push event: 29
- Fork event: 4
- Create event: 4
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Thiago Crepaldi | t****d@a****m | 3 |
| Spandan Tiwari | 1****d | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 5
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 4
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 5
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 4
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- inisis (2)
- ontheklaud (1)
- mpaulazamin (1)
- Zacchae (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 5,404 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 9
- Total maintainers: 1
pypi.org: amd-quark
AMD Quark is a comprehensive cross-platform toolkit designed to simplify and enhance the quantization of deep learning models. Supporting both PyTorch and ONNX models, AMD Quark empowers developers to optimize their models for deployment on a wide range of hardware backends, achieving significant performance gains without compromising accuracy.
- Documentation: https://amd-quark.readthedocs.io/
- License: MIT License Copyright (c) 2023 Advanced Micro Devices, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 0.8.2
published about 1 year ago