onnx_light.onnx_core.vptq#
Exposes the versioned native GPTQModel VPTQ checkpoint contract.
Preserves packed vector indices and auxiliary tensors without requantization. This format is distinct from the portable AQLM and QuIP codebook profiles.
- onnx_light.onnx_core.vptq.import_vptq_weights(tensors, *, upstream_revision='c1976918cfe3703fbcf6d1ce2440a82b26394375', schema_version=1, max_bytes=1073741824, **config)#
Imports loaded native tensors with explicit VPTQ constructor metadata.
Requires
in_featuresandout_featuresinconfig. Other keys use the pinnedVPTQLineardefaults:bits=4,vector_lens=(8,8),num_centroids=(4096,4096),num_res_centroids=(-1,-1),npercent=0,group_size=-1,group_num=-1,enable_norm=False,norm_dim=0,enable_perm=False,kmeans_mode="",kmeans_iters=100,kmeans_tol=1e-5,kmeans_seed=0,block_size=128,percdamp=.01. No tensor shapes or backend names are used to infer missing configuration.- Returns:
Independent, losslessly encoded native checkpoint.
- Return type:
See Native GPTQModel VPTQ checkpoints for the pinned native format contract and support matrix.