@huggingface/transformers
Version:
State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
51 lines (41 loc) • 1.71 kB
JavaScript
/**
* @file Entry point for the Transformers.js library. Only the exports from this file
* are available to the end user, and are grouped as follows:
*
* 1. [Pipelines](./pipelines)
* 2. [Environment variables](./env)
* 3. [Models](./models)
* 4. [Tokenizers](./tokenizers)
* 5. [Processors](./processors)
*
* @module transformers
*/
export { env } from './env.js';
export * from './pipelines.js';
export * from './models.js';
export * from './tokenizers.js';
export * from './configs.js';
export * from './utils/audio.js';
export * from './utils/image.js';
export * from './utils/video.js';
export * from './utils/tensor.js';
export * from './utils/maths.js';
export { FeatureExtractor } from './base/feature_extraction_utils.js';
export * from './models/feature_extractors.js';
export * from './models/auto/feature_extraction_auto.js';
export { ImageProcessor } from './base/image_processors_utils.js';
export * from './models/image_processors.js';
export * from './models/auto/image_processing_auto.js';
export { Processor } from './base/processing_utils.js';
export * from './models/processors.js';
export * from './models/auto/processing_auto.js';
export * from './generation/streamers.js';
export * from './generation/stopping_criteria.js';
export * from './generation/logits_process.js';
// Expose common types used across the library for developers to access
/**
* @typedef {import('./utils/hub.js').PretrainedModelOptions} PretrainedModelOptions
* @typedef {import('./base/processing_utils.js').PretrainedProcessorOptions} PretrainedProcessorOptions
* @typedef {import('./utils/dtypes.js').DataType} DataType
* @typedef {import('./utils/devices.js').DeviceType} DeviceType
*/