guidellm.data.loaders
DataLoaderRegistry
Bases: Generic[DataT_co], RegistryMixin[type[DataLoader]]
Source code in src/guidellm/data/loaders/loader.py
create(config, datasets, preprocessors, finalizer, random_seed, **kwargs) classmethod
Factory method to create a DataLoader instance based on provided configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config | DataLoaderArgs | A DataEntrypointArgs object containing the configuration. | required |
Source code in src/guidellm/data/loaders/loader.py
TorchDataLoader
Bases: DataLoader[DataT], InfoMixin, DataLoader[DataT]
Source code in src/guidellm/data/loaders/torch.py
is_infinite()
Whether prefetching every request would run without end.
A positive sample cap ends generation. Otherwise the loader is infinite only when every dataset reports that it does not end.
Returns:
| Type | Description |
|---|---|
bool |
|