Skip to content

Commit 9234960

Browse files
Sync release/0.10
1 parent 0574b22 commit 9234960

File tree

1,091 files changed

+100371
-50033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,091 files changed

+100371
-50033
lines changed

.flake8

Lines changed: 0 additions & 30 deletions
This file was deleted.

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
d79b1330908fd434aaf9b8c09eb75304f0939c78
2+
eb278eb60707fb252364fe6aeb70c09eff227895
3+
2eb60e3485de9a876216a723f4763b5d65a26b12

.gitignore

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,42 @@ MANIFEST
3838
pip-log.txt
3939
pip-delete-this-directory.txt
4040

41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.nox/
45+
.coverage*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
4177
# Jupyter Notebook
4278
.ipynb_checkpoints
4379

@@ -48,9 +84,23 @@ ipython_config.py
4884
# pyenv
4985
.python-version
5086

87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
5194
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
5295
__pypackages__/
5396

97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
54104
# Environments
55105
.env
56106
.venv
@@ -60,12 +110,40 @@ ENV/
60110
env.bak/
61111
venv.bak/
62112

113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# vscode project settings
121+
.vscode/
122+
63123
# mkdocs documentation
64124
/site
65125

66-
# model files
126+
# mypy
127+
.mypy_cache/
128+
.dmypy.json
129+
dmypy.json
130+
131+
# Pyre type checker
132+
.pyre/
133+
134+
# version.py
135+
quark/version.py
136+
137+
# pre-commit
138+
.pre-commit-cache
139+
140+
# test
141+
test/smoke_test_output/
142+
143+
# generated and fetched files
67144
*.onnx
68-
*.pth
145+
quantized_info.csv
146+
*.jpg
69147

70148
# document generation
71149
_docs_build

.readthedocs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ build:
2828
- mkdir -p $READTHEDOCS_OUTPUT/html
2929
- bash -c "export QUARK_SPHINX_BUILD_SKIP_TUTORIALS=1; cd docs && ./build_docs.sh"
3030
- bash -c "cp -rv _docs_build/html/* $READTHEDOCS_OUTPUT/html/"
31-

.style.yapf

Lines changed: 0 additions & 3 deletions
This file was deleted.

CONTRIBUTORS.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

LICENSE

100644100755
File mode changed.

MANIFEST.in

100644100755
File mode changed.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
| Supported Ops. | `nn.Linear`, `nn.Conv2d`, `nn.ConvTranspose2d`, `nn.Embedding`, `nn.EmbeddingBag`, | Almost all ONNX ops, |
3434
| | `nn.BatchNorm2d`, `nn.BatchNorm3d`, `nn.LeakyReLU`, `nn.AvgPool2d`, `nn.AdaptiveAvgPool2d` | see [Full List](https://quark.docs.amd.com/latest/onnx/user_guide_supported_optype_datatype.html) |
3535
| Pre-Quant Optimization | SmoothQuant | QuaRot, SmoothQuant, CLE |
36-
| Quantization Algorithm | AWQ, GPTQ | AdaQuant, AdaRound, GPTQ, Bias Correction |
36+
| Quantization Algorithm | AWQ, GPTQ, Qronos | AdaQuant, AdaRound, GPTQ, Bias Correction |
3737
| Export Format | ONNX, JSON-Safetensors, GGUF(Q4_1) | N/A |
3838
| Operating Systems | Linux {ROCm, CUDA, CPU}, Windows {CPU} | Linux {ROCm, CUDA, CPU}, Windows {CUDA, CPU} |
3939

@@ -45,7 +45,7 @@
4545
| LLM Post Training Quantization (PTQ) | [Model Support](examples/torch/language_modeling/llm_ptq/example_quark_torch_llm_ptq.rst) |
4646
| LLM Quantization Aware Training (QAT) | [Model Support](examples/torch/language_modeling/llm_qat/example_quark_torch_llm_qat.rst) |
4747
| Vision Model Quantization | [Model Support](examples/torch/vision/model_support.md) |
48-
| Quark for ONNX | [Model Support](examples/onnx/model_support.md)
48+
| Quark for ONNX | [Model Support](examples/onnx/model_support.md) |
4949

5050
## Installation
5151

docs/README.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
# Quark documentation
1+
# AMD Quark Documentation
22

3-
Quark (new quantizer) documentation.
3+
Quark quantizer documentation.
44

5-
## How to build document
5+
Included in documentation:
66

7-
.. code-block:: sh
7+
* Introductory articles.
8+
* Code API documentation.
9+
* Notebook tutorials.
10+
* Guides accompanying Quark examples package.
11+
* Release notes.
812

9-
sh install_requirements.sh
10-
sh build_docs.sh
13+
## How to build documentation
1114

12-
Access the HTML documentation at ``quark/_docs_build/html/index.html``.
15+
```sh
16+
sh install_requirements.sh
17+
sh build_docs.sh
18+
```
1319

14-
.. raw:: html
20+
Then access the generated HTML documentation at `quark/_docs_build/html/index.html`.
1521

16-
<!--
17-
## License
18-
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: MIT
19-
-->
22+
See `CONTRIBUTING.md` for information on how the tutorial documentation is built, run for tests, and converted to HTML.
23+
24+
<!--
25+
## License
26+
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: MIT
27+
-->

0 commit comments

Comments
 (0)