Coverage for / home / jenkins / .local / lib / python3.10 / site-packages / hyper_parallel / components / quantization / ops / __init__.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-10-25 05:45 +0800
« prev ^ index » next coverage.py v7.13.1, created at 2026-10-25 05:45 +0800
1# Copyright 2026 Huawei Technologies Co., Ltd
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ============================================================================
15"""NPU operator adapters for low-precision quantization."""
17from hyper_parallel.components.quantization.ops.npu_fake_w4a8 import (
18 FakeW4A8CapabilityError,
19 FakeW4A8NpuOps,
20 validate_fake_w4a8_gmm_runtime,
21)
22from hyper_parallel.components.quantization.ops.npu_hifloat8 import (
23 HiFloat8NpuOps,
24 hifloat8_grouped_matmul,
25 hifloat8_matmul,
26 validate_hifloat8_gmm_runtime,
27 validate_hifloat8_runtime,
28)
29from hyper_parallel.components.quantization.ops.npu_mxfp8 import (
30 LowPrecisionCapabilityError,
31 MXFP8NpuOps,
32 mxfp8_grouped_matmul,
33 mxfp8_matmul,
34 validate_npu_gmm_runtime,
35 validate_npu_runtime,
36)
37from hyper_parallel.components.quantization.ops.npu_w4a8 import (
38 W4A8CapabilityError,
39 W4A8NpuOps,
40 transform_grouped_scale,
41 validate_w4a8_gmm_runtime,
42)
44__all__ = [
45 "FakeW4A8CapabilityError",
46 "FakeW4A8NpuOps",
47 "HiFloat8NpuOps",
48 "LowPrecisionCapabilityError",
49 "MXFP8NpuOps",
50 "W4A8CapabilityError",
51 "W4A8NpuOps",
52 "hifloat8_grouped_matmul",
53 "hifloat8_matmul",
54 "mxfp8_grouped_matmul",
55 "mxfp8_matmul",
56 "transform_grouped_scale",
57 "validate_fake_w4a8_gmm_runtime",
58 "validate_hifloat8_gmm_runtime",
59 "validate_hifloat8_runtime",
60 "validate_npu_gmm_runtime",
61 "validate_npu_runtime",
62 "validate_w4a8_gmm_runtime",
63]