├── .github ├── ISSUE_TEMPLATE │ ├── bug.md │ └── question.md └── workflows │ ├── build.yml │ ├── coverage.yml │ ├── documentation.yml │ ├── linter.yml │ └── tests.yml ├── .gitignore ├── .gitmodules ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.in ├── Makefile ├── README.md ├── bitpack.pyx ├── diffq ├── __init__.py ├── base.py ├── diffq.py ├── lsq.py ├── tests │ ├── __init__.py │ ├── base.py │ ├── test_diffq.py │ ├── test_lsq.py │ └── test_uniform.py ├── torch_pack.py ├── ts_export.py ├── uniform.py └── utils.py ├── examples ├── DEIT_README.md ├── FAIRSEQ_README.md ├── cifar │ ├── README.md │ ├── conf │ │ ├── config.yaml │ │ └── preset │ │ │ ├── default.yaml │ │ │ └── res20.yaml │ ├── requirements.txt │ ├── src │ │ ├── __init__.py │ │ ├── data.py │ │ ├── distrib.py │ │ ├── executor.py │ │ ├── mobilenet.py │ │ ├── resnet.py │ │ ├── resnet20.py │ │ ├── solver.py │ │ ├── utils.py │ │ ├── vit.py │ │ └── wide_resnet.py │ └── train.py ├── deit.ab5715372db8c6cad5740714b2216d55aeae052e.patch ├── fairseq.60d2da7055ad696ef037c98dacc931f79d4ce117.patch ├── reset_repo.sh ├── setup_repo.sh └── update_patch.sh ├── get_build.py ├── pyproject.toml ├── setup.cfg └── setup.py /.github/ISSUE_TEMPLATE/bug.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/ISSUE_TEMPLATE/bug.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/workflows/coverage.yml -------------------------------------------------------------------------------- /.github/workflows/documentation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/workflows/documentation.yml -------------------------------------------------------------------------------- /.github/workflows/linter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/workflows/linter.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/.gitmodules -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/README.md -------------------------------------------------------------------------------- /bitpack.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/bitpack.pyx -------------------------------------------------------------------------------- /diffq/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/__init__.py -------------------------------------------------------------------------------- /diffq/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/base.py -------------------------------------------------------------------------------- /diffq/diffq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/diffq.py -------------------------------------------------------------------------------- /diffq/lsq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/lsq.py -------------------------------------------------------------------------------- /diffq/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/tests/__init__.py -------------------------------------------------------------------------------- /diffq/tests/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/tests/base.py -------------------------------------------------------------------------------- /diffq/tests/test_diffq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/tests/test_diffq.py -------------------------------------------------------------------------------- /diffq/tests/test_lsq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/tests/test_lsq.py -------------------------------------------------------------------------------- /diffq/tests/test_uniform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/tests/test_uniform.py -------------------------------------------------------------------------------- /diffq/torch_pack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/torch_pack.py -------------------------------------------------------------------------------- /diffq/ts_export.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/ts_export.py -------------------------------------------------------------------------------- /diffq/uniform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/uniform.py -------------------------------------------------------------------------------- /diffq/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/diffq/utils.py -------------------------------------------------------------------------------- /examples/DEIT_README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/DEIT_README.md -------------------------------------------------------------------------------- /examples/FAIRSEQ_README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/FAIRSEQ_README.md -------------------------------------------------------------------------------- /examples/cifar/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/README.md -------------------------------------------------------------------------------- /examples/cifar/conf/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/conf/config.yaml -------------------------------------------------------------------------------- /examples/cifar/conf/preset/default.yaml: -------------------------------------------------------------------------------- 1 | # @package _global_ 2 | 3 | epochs: 200 -------------------------------------------------------------------------------- /examples/cifar/conf/preset/res20.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/conf/preset/res20.yaml -------------------------------------------------------------------------------- /examples/cifar/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/requirements.txt -------------------------------------------------------------------------------- /examples/cifar/src/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/__init__.py -------------------------------------------------------------------------------- /examples/cifar/src/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/data.py -------------------------------------------------------------------------------- /examples/cifar/src/distrib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/distrib.py -------------------------------------------------------------------------------- /examples/cifar/src/executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/executor.py -------------------------------------------------------------------------------- /examples/cifar/src/mobilenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/mobilenet.py -------------------------------------------------------------------------------- /examples/cifar/src/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/resnet.py -------------------------------------------------------------------------------- /examples/cifar/src/resnet20.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/resnet20.py -------------------------------------------------------------------------------- /examples/cifar/src/solver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/solver.py -------------------------------------------------------------------------------- /examples/cifar/src/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/utils.py -------------------------------------------------------------------------------- /examples/cifar/src/vit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/vit.py -------------------------------------------------------------------------------- /examples/cifar/src/wide_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/src/wide_resnet.py -------------------------------------------------------------------------------- /examples/cifar/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/cifar/train.py -------------------------------------------------------------------------------- /examples/deit.ab5715372db8c6cad5740714b2216d55aeae052e.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/deit.ab5715372db8c6cad5740714b2216d55aeae052e.patch -------------------------------------------------------------------------------- /examples/fairseq.60d2da7055ad696ef037c98dacc931f79d4ce117.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/fairseq.60d2da7055ad696ef037c98dacc931f79d4ce117.patch -------------------------------------------------------------------------------- /examples/reset_repo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/reset_repo.sh -------------------------------------------------------------------------------- /examples/setup_repo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/setup_repo.sh -------------------------------------------------------------------------------- /examples/update_patch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/examples/update_patch.sh -------------------------------------------------------------------------------- /get_build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/get_build.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/diffq/HEAD/setup.py --------------------------------------------------------------------------------