Had this idea and discussed briefly with @andrewor14. Conceptually the current QAT + FSDP looks like this - sharded FP32 weight - all-gather in BF16 - fake quantize However, we can do low-bit all-gather, since the weight can be quantized before all-gather - sharded FP32 weight -…
We've come up with a training recipe for 2:4 activation sparsity, which is outlined in this paper: The gist of this approach is that: 1) we find high level of activation sparsity ( 85%) when training SquaredRELU based FFNs instead of SwiGLU FFNs. These Squared-RELU based FFNs…
in docs/ make html /data/users/jerryzh/ao/docs/source/api reference/api ref float8.rst:10: WARNING: Title underline too short. Main float8 training APIs ---------------------- /data/users/jerryzh/ao/docs/source/api reference/api ref qat.rst:10: ERROR: Unknown target name:…
We recently had to increase the timeout period for ROCM to 2.5 hours, up from 2 hours because we started timing out. I did an analysis of the top 100 longest tests, would be good for someone to go through and identify ones to cut. note: cases like test int8 dynamic quant…
Motivation torchao applies quantization through three different "carriers" — the object level at which a transform mutates the model — but they are not unified: Carrier Code shape Examples --- --- --- module swap module-replacement classes with paired from linear / to linear QAT…
Motivation Several workflow configs in torchao do not inherit from AOBaseConfig ("orphan" configs). As a result, they cannot use the mature capabilities provided by the AOBaseConfig ecosystem — config to dict / config from dict serialization, versioning, and dispatch through the…
[RFC] Extend KernelPreference: add a vendor-native kernel member ASCEND (case study: Ascend NPU / torch npu) Existing members of KernelPreference cannot run on Ascend NPU. We propose a new member ASCEND , named after the kernel source like MSLK / DEEPGEMM , pointing to torch npu…
Status: Proposed Updates: Author: Elena Zhelezina, Arm Ltd Summary This RFC proposes adding a TorchAO workflow for TFMOT-style 2:4 structured pruning of nn.Linear and nn.Conv2d . The user workflow is: text pretrained dense model v prepare 2:4 masks v fine-tune normally v remove…