API Reference#
Binaries#
Training#
- t5x.trainer package
ActionMode
ArrayMapFuture
BaseAction
BaseTrainer
BaseTrainerConstructor
EarlyStoppingAction
LearningRateCallable
MetricValueMapFuture
MetricsManager
PartitionedEvalCallable
PartitionedTrainCallable
PreemptionError
SummarizeMetricsCallable
TerminateOnNanAction
TimeFuture
Trainer
WeightMetricsComputer
accumulate_grads_microbatched()
apply_grads()
eval_step()
train_with_lr()
- t5x.optimizers package
- t5x.interactive_model package
InferenceType
InteractiveModel
InteractiveModel.evaluate()
InteractiveModel.evaluate_with_preprocessors()
InteractiveModel.infer_with_preprocessors()
InteractiveModel.predict_with_aux()
InteractiveModel.save_checkpoint()
InteractiveModel.score()
InteractiveModel.train_loop()
InteractiveModel.train_step()
InteractiveModel.train_step_from_batch_iterator()
InteractiveModel.train_step_with_preprocessors()
T5XScriptType
get_batches_from_seqio()
get_dataset_from_natural_text_examples()
get_gin_config_from_interactive_model()
get_seqio_task_from_examples()
- t5x.train_state package
- t5x.state_utils package
- t5x.losses package
- t5x.metrics package
- t5x.utils package
CheckpointConfig
DatasetConfig
EvaluatorConstructor
GetDatasetCallable
GetEvalDatasetCallable
InferFnCallable
InferStepWithRngCallable
InferStepWithoutRngCallable
InitFnCallable
LearningRateCallable
LegacyCheckpointManager
LegacyCheckpointer
RestoreCheckpointConfig
SaveCheckpointConfig
ShardedDatasetIterator
TrainStateInitializer
create_checkpoint_manager_and_restore()
create_learning_rate_scheduler()
create_orbax_checkpoint_manager()
find_first_checkpoint_step()
find_next_checkpoint_step()
flatten_dict_string_keys()
get_dataset()
get_dataset_inner()
get_fallback_state()
get_first_valid_restore_config_and_paths()
get_infer_fn()
get_training_eval_datasets()
get_vocabulary()
get_zeros_batch_like_dataset()
import_module()
log_model_info()
multihost_assert_equal()
override_params_axes_names()
prepare_train_iter()
restore()
round_vocab_size_to_multiple()
sync_global_devices()
verify_matching_vocabs()
- t5x.adafactor package
Inference#
Models#
Checkpointing#
- t5x.checkpoints package
CheckpointManagerConstructor
Checkpointer
Checkpointer.checkpoints_dir
Checkpointer.keep
Checkpointer.restore_dtype
Checkpointer.save_dtype
Checkpointer.keep_dataset_checkpoints
Checkpointer.all_dataset_checkpoint_steps()
Checkpointer.all_steps()
Checkpointer.convert_from_tf_checkpoint()
Checkpointer.latest_step()
Checkpointer.restore()
Checkpointer.restore_from_tf_checkpoint()
Checkpointer.save()
CheckpointerConstructor
DatasetCheckpointHandler
OrbaxCheckpointManagerInterface
RestoreStateTransformationFn
SaveBestCheckpointer
SaveBestCheckpointer.checkpoints_dir
SaveBestCheckpointer.keep
SaveBestCheckpointer.restore_dtype
SaveBestCheckpointer.save_dtype
SaveBestCheckpointer.metric_name_to_monitor
SaveBestCheckpointer.metric_mode
SaveBestCheckpointer.keep_checkpoints_without_metrics
SaveBestCheckpointer.force_keep_period
SaveBestCheckpointer.keep_dataset_checkpoints
SaveStateTransformationFn
all_dataset_checkpoint_steps()
all_steps()
fake_param_info()
find_checkpoint()
get_checkpoint_dir()
get_local_data()
get_step_from_checkpoint_dir()
latest_step()
load_t5x_checkpoint()
populate_metrics_for_steps()
- t5x.checkpoint_utils package
- t5x.checkpoint_importer package
Paritioning#
- t5x.partitioning package
AxisNames
BasePartitioner
BasePartitioner.compile()
BasePartitioner.data_mesh_size
BasePartitioner.data_shard_id
BasePartitioner.data_shards
BasePartitioner.get_data_layout()
BasePartitioner.get_local_chunk_info()
BasePartitioner.get_logical_axes()
BasePartitioner.get_mesh_axes()
BasePartitioner.move_params_to_devices()
BasePartitioner.partition()
BasePjitPartitioner
DataLayout
LocalChunkInfo
LocalChunker
PjitPartitioner
PjittedFnWithContext
bounds_from_last_device()
default_mesh()
get_coords()
get_cpu_mesh()
get_gpu_mesh()
get_mesh()
global_mesh_defined()
standard_logical_axis_rules()
with_sharding_constraint()