xlstm_jax.dataset.synthetic_dataloading#

Copyright 2023 Google LLC

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This file is a modified version of the file input_pipeline_interface.py from the maxtext project, see AI-Hypercomputer/maxtext.

Synthetic Data Iterator

Classes#

SyntheticDataIterator

Creates a synthetic data iterator for performance testing work.

Module Contents#

class xlstm_jax.dataset.synthetic_dataloading.SyntheticDataIterator(config, mesh)#

Creates a synthetic data iterator for performance testing work.

Parameters:
config#
mesh#
num_batches#
data_generator#
_step_counter = 0#
property dataset_size: int#
Return type:

int

static raw_generate_synthetic_data(config)#

Generates a single batch of synthetic data

Parameters:

config (xlstm_jax.dataset.configs.SyntheticDataConfig)

Return type:

xlstm_jax.dataset.batch.LLMBatch