UNPKG

@huggingface/transformers

Version:

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!

20 lines • 609 B
export function isWebGpuFp16Supported(): Promise<boolean>; export const DATA_TYPES: Readonly<{ auto: "auto"; fp32: "fp32"; fp16: "fp16"; q8: "q8"; int8: "int8"; uint8: "uint8"; q4: "q4"; bnb4: "bnb4"; q4f16: "q4f16"; }>; /** @typedef {keyof typeof DATA_TYPES} DataType */ export const DEFAULT_DEVICE_DTYPE_MAPPING: Readonly<{ wasm: "q8"; }>; /** @type {Record<Exclude<DataType, "auto">, string>} */ export const DEFAULT_DTYPE_SUFFIX_MAPPING: Record<Exclude<DataType, "auto">, string>; export type DataType = keyof typeof DATA_TYPES; //# sourceMappingURL=dtypes.d.ts.map