Coverage for  / home / jenkins / .local / lib / python3.10 / site-packages / hyper_parallel / components / quantization / tensor / __init__.py: 100%

6 statements  

« 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"""Quantized tensor types for low-precision training. 

16 

17Re-exports the storage and tensor classes so that 

18``hyper_parallel.components.quantization`` can import them from a 

19single package entry point. 

20""" 

21 

22from hyper_parallel.components.quantization.tensor.base import QuantizedTensorStorage 

23from hyper_parallel.components.quantization.tensor.hifloat8_tensor import ( 

24 HiFloat8Tensor, 

25 HiFloat8TensorStorage, 

26) 

27from hyper_parallel.components.quantization.tensor.mxfp8_tensor import ( 

28 MXFP8Tensor, 

29 MXFP8TensorStorage, 

30) 

31from hyper_parallel.components.quantization.tensor.quantized_tensor import QuantizedTensor 

32from hyper_parallel.components.quantization.tensor.w4a8_tensor import ( 

33 W4A8Tensor, 

34 W4A8TensorStorage, 

35) 

36 

37__all__ = [ 

38 "HiFloat8Tensor", 

39 "HiFloat8TensorStorage", 

40 "MXFP8Tensor", 

41 "MXFP8TensorStorage", 

42 "QuantizedTensor", 

43 "QuantizedTensorStorage", 

44 "W4A8Tensor", 

45 "W4A8TensorStorage", 

46]