infon-reasoner / js /src /runtime /index.ts
cp500's picture
Upload js/src/runtime/index.ts with huggingface_hub
43ac6ac verified
Raw
History Blame Contribute Delete
766 Bytes
/**
* Shared runtime infrastructure for the model packages
* (``coref``, ``heads``, ``sheaf-gnn``).
*
* Importers usually don't need this directly — each model package
* re-exports the surface they care about. Surfaced here for power
* users who want to bring their own ORT session creation, custom
* Hub fetcher, or alternate tokenizer.
*/
export {
loadOrt, createSession, makeTensor,
} from './ort.js';
export type { OrtSession, OrtTensor } from './ort.js';
export {
hubUrl, fetchHubFile, fetchHubFileOptional, fetchHubJson,
} from './hub.js';
export type { HubFile } from './hub.js';
export { loadTokenizer } from './tokenizer.js';
export type { Tokenizer, Encoding, Token } from './tokenizer.js';
export { argmaxWithProb } from './softmax.js';