vllm.model_executor.layers.quantization.inc.schemes.inc_wna16_linear ¶
Classes:
-
INCXPULinearBase– -
INCXPULinearMethod–XPU linear method for INC w4a16 quantization (symmetric only).
Functions:
-
get_ark_state–Return ARK availability, error details, cached module, and QuantLinear.
INCXPULinearBase ¶
Bases: INCLinearScheme
Source code in vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | |
_convert_awq_qweight_to_gptq(qw) ¶
Convert AWQ qweight [K, N // pf] to GPTQ qweight [K // pf, N].
AWQ packs along the output dim with a non-standard nibble order; GPTQ packs along the input dim with sequential nibble order. The conversion is lossless — it only reshuffles bits.
Source code in vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py
INCXPULinearMethod ¶
Bases: INCXPULinearBase
XPU linear method for INC w4a16 quantization (symmetric only).
Supports both GPTQ-packed (auto_round:auto_gptq) and AWQ-packed (auto_round:auto_awq) AutoRound checkpoints. AWQ-packed qweights are losslessly repacked into the GPTQ-style nibble layout during process_weights_after_loading, before the final oneDNN "NT" transpose that torch.ops._xpu_C.int4_gemm_w4a16 expects.
Source code in vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py
get_ark_state() cached ¶
Return ARK availability, error details, cached module, and QuantLinear.