Views
No views yet
GatherBlockQuantized int4,
quant_axes=("Gather", 1) — runs natively on the WebGPU EP (ORT ≥ 1.23);
plain int8 Gather has no WebGPU kernel and falls back to WASM.MatMulNBitsQuantizer
with op_types_to_quantize=("MatMul", "Gather"), opset 21.token_embeddings / sentence_embedding; use pooling: 'cls',
normalize: true (the model is CLS-pooled, symmetric — no query/doc prompts).1import { pipeline } from '@huggingface/transformers';
2const extractor = await pipeline('feature-extraction',
3 'tooape/granite-embedding-97m-multilingual-r2-GBQ4-ONNX',
4 { device: 'webgpu', dtype: 'q4' });
5const v = await extractor('search query', { pooling: 'cls', normalize: true });