transformers/tests/quantization
Yao Matrix a5a0c7b888
switch to device agnostic device calling for test cases (#38247)
* use device agnostic APIs in test cases

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* fix style

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* add one more

Signed-off-by: YAO Matrix <matrix.yao@intel.com>

* xpu now supports integer device id, aligning to CUDA behaviors

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* update to use device_properties

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* fix style

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* update comment

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* fix comments

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

* fix style

Signed-off-by: Matrix Yao <matrix.yao@intel.com>

---------

Signed-off-by: Matrix Yao <matrix.yao@intel.com>
Signed-off-by: YAO Matrix <matrix.yao@intel.com>
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-05-26 10:18:53 +02:00
..
aqlm_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
autoawq switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
autoround enable autoround cases on XPU (#38167) 2025-05-16 09:08:35 +00:00
bitnet_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
bnb switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
compressed_tensors_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
eetq_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
fbgemm_fp8 switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
finegrained_fp8 switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
ggml Fixing quantization tests (#37650) 2025-04-22 13:59:57 +02:00
gptq Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
higgs switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
hqq switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
quanto_integration Fixing quantization tests (#37650) 2025-04-22 13:59:57 +02:00
quark_integration Add tearDown method to Quark to solve OOM issues (#38234) 2025-05-21 14:26:44 +02:00
spqr_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
torchao_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00
vptq_integration switch to device agnostic device calling for test cases (#38247) 2025-05-26 10:18:53 +02:00