ErrLookup › Lightning-AI/pytorch-lightning
Lightning-AI/pytorch-lightning
Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes. · Python · 270 source files
Analyzed at 9fed5c27d2 on 2026-08-28. 476 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Trying to inject custom `Sampler` into the | exception | error | dataloader, distributed, sampler, misconfiguration, lightning-fabric |
| Using a compiled model is incompatible with the current… | validation | error | pytorch-lightning, torch-compile, strategy, distributed-training |
| The total number of parameters detected may be inaccurate… | console | warning | pytorch-lightning, model-summary, lazy-layers, uninitialized-parameter, parameter-counting |
| The hybrid sharding strategy requires you to pass at least… | exception | error | pytorch-lightning, fabric, fsdp, distributed, sharding |
| It is recommended to use `self.log | console | warning | pytorch-lightning, distributed, ddp, logging, sync-dist, metrics |
| Lightning can't inject a (distributed) sampler into your… | exception | error | pytorch-lightning, batch-sampler, distributed-training, typeerror |
| Trying to infer the `batch_size` from an ambiguous… | console | warning | pytorch-lightning, batch-size, logging, data-loading |
| At least one gpu type should be specified! | exception | error | gpu, device-configuration, lightning, cuda, mps |
| ` ` within local rank has zero length. Please make sure… | validation | error | pytorch-lightning, dataloader, distributed-training, empty-dataset |
| Could not find a XLAFSDP model in the provided checkpoint… | exception | error | xla, fsdp, checkpoint, save, model-wrapping, lightning-fabric |
| Redirecting import of | console | info | pytorch-lightning, migration, pickle, checkpoint, version-upgrade |
| Device should be CPU, got | validation | error | pytorch-lightning, self-log, duplicate-metric, misconfiguration |
| Expected `torch.nn.Module` or `torch.optim.Optimizer`, got | validation | error | lightning, type-error, setup |
| DeepSpeed was unable to load the checkpoint. Ensure you… | error_code | critical | deepspeed, checkpoint, load |
| Saving a checkpoint is only possible if a model is attached… | validation | error | trainer, checkpoint, save, no-model-attached, pytorch-lightning |
| The path does not point to valid sharded checkpoints. Make… | exception | error | xla, fsdp, checkpoint, load, sharded, file-not-found, lightning-fabric |
| Could not find a distributed model in the provided… | validation | error | lightning, fabric, model-parallel, checkpoint, dtensor |
| Remote (fsspec) distributed checkpoints require… | exception | error | distributed-checkpoint, fsspec, remote-storage, import-error, pytorch-version, lightning-fabric |
| ` .add_configure_optimizers_method_to_model` expects at… | exception | error | lightning-cli, configure-optimizers, multiple-optimizers, automatic-mode |
| ' ' object has no attribute | exception | error | lightning, lazy-loading, checkpoints |
| Trying to inject parameters into the | exception | error | pytorch-lightning, dataloader, distributed, kwargs, init-signature |
| You requested gpu: But your machine only has | exception | error | gpu, device-configuration, cuda, multi-node, lightning |
| Materialization requires that the | validation | error | lightning, meta-device, model-initialization |
| Cannot set the dtype explicitly. Please use… | exception | error | pytorch-lightning, dtype, module, property-setter |
| You are calling the method | exception | error | pytorch-lightning, fabric, ddp, gradient-sync, method-bypass |
| f"An invalid dataloader was returned from | validation | error | pytorch-lightning, dataloader, validation, typeerror |
| The implementation has an error where more than one… | exception | error | pytorch-lightning, kwargs, duplicate-argument, dataloader |
| The `XLAAccelerator` can only be used with a… | validation | error | lightning, tpu, xla, strategy, trainer-init, accelerator |
| `gradient_clip_algorithm='norm'` is currently not supported… | exception | error | pytorch-lightning, fsdp, gradient-clipping, clip-norm, distributed |
| The dataloader needs to subclass… | exception | error | dataloader, distributed, sampler, type-error, lightning-fabric |
| Unable to determine the source of the trainer. | exception | info | lightning, litmodels, inspect, dynamic-import, checkpointing |
| Precision is invalid. Allowed precision values | validation | error | lightning, fabric, precision, config-validation |
| Trying to inject a modified sampler into the batch sampler… | exception | error | pytorch-lightning, batch-sampler, distributed, ddp |
| `num_processes` should be >= 1, got | validation | error | lightning, multiprocessing, configuration |
| No ` ()` method defined to run `Trainer. `. | validation | error | pytorch-lightning, trainer, validation, missing-hook, configuration |
| Cannot re-initialize CUDA in forked subprocess. To use CUDA… | exception | critical | pytorch-lightning, cuda, multiprocessing, fork, spawn |
| Found a XLAFSDP model in the provided checkpoint state… | exception | error | xla, fsdp, checkpoint, load, full-checkpoint, model-wrapping, lightning-fabric |
| Lightning can't inject a (distributed) sampler into your… | exception | error | pytorch-lightning, batch-sampler, distributed-sampler, ddp |
| The optimizer does not seem to reference any FSDP… | exception | critical | fsdp, optimizer, empty-parameter-list, use-orig-params |
| You seem to have configured a sampler in your DataLoader… | validation | error | dataloader, sampler, infinite-iterator, distributed-training |
| f"Logging inside ` ` is not implemented." " Please, open an… | exception | error | pytorch-lightning, logging, internal-error, runtimeerror |
| DeepSpeed was unable to load the checkpoint. Ensure you… | exception | critical | deepspeed, load-checkpoint, resume, load-full-weights |
| Got `XLAFSDPStrategy.load_checkpoint | exception | error | xla, fsdp, checkpoint, load, state-required, lightning-fabric |
| Upgrade fsspec to enable cross-device local checkpoints… | exception | error | fsspec, checkpoint, cross-device, exdev, atomic-save, environment, lightning-fabric |
| f"An invalid dataloader was passed to `Trainer. | validation | error | lightning, dataloader, iterable, type-error, fit |
| The current optimizer | exception | error | pytorch-lightning, amp, fused-optimizer, gradient-clipping, adamw, gradscaler |
| The optimizer has references to the model's meta-device… | exception | error | pytorch-lightning, fabric, meta-device, fsdp, lazy-init |
| Unable to determine if the path belongs to a shared… | exception | error | distributed, filesystem, checkpointing, shared-storage |
| The path does not point to a valid full checkpoint. Make… | exception | error | xla, fsdp, checkpoint, load, full-checkpoint, file-not-found, lightning-fabric |
| Found multiple XLAFSDP modules in the given state. Saving… | exception | error | xla, fsdp, checkpoint, multiple-models, lightning-fabric |
| The ` ` does not use the `CheckpointIO` plugin interface. | exception | error | pytorch-lightning, model-parallel, checkpoint-io, not-implemented, api-contract |
| XLAFSDP only supports a single model instance with 'model'… | exception | error | xla, fsdp, checkpoint, load, full-checkpoint, not-implemented, lightning-fabric |
| Lightning attempted to launch new distributed processes… | exception | error | pytorch-lightning, local-rank, environment-variables, distributed, launcher |
| The closure hasn't been executed. HINT: did you call… | exception | error | pytorch-lightning, optimizer-step, closure, automatic-optimization |
| When using an IterableDataset for `train_dataloader`… | exception | error | pytorch-lightning, iterable-dataset, streaming, validation |
| Invalid value for every_n_train_steps= | validation | error | pytorch-lightning, modelcheckpoint, config-validation, argument-validation |
| You seem to have configured a sampler in your DataLoader… | validation | error | dataloader, sampler, distributed-training, lightning |
| Failed to determine the arguments that were used to compile… | exception | error | pytorch-lightning, torch-compile, import-order |
| Only one of `clip_val` or `max_norm` can be set as this… | validation | error | lightning, fabric, gradient-clipping, mutually-exclusive-args |
| Automatic gradient accumulation and the… | exception | error | lightning, gradient-accumulation, manual-optimization, incompatible-config |
| The start method ' ' is not available on this platform… | validation | error | pytorch-lightning, multiprocessing, platform, start-method, windows |
| Lightning can't inject a (distributed) sampler into your… | exception | error | pytorch-lightning, batch-sampler, distributed-training, typeerror |
| You requested to find | validation | error | pytorch-lightning, trainer, limit-batches, validation |
| Multihost setups do not have a shared filesystem, so the… | exception | error | xla, fsdp, tpu, multihost, checkpoint, consolidation, lightning-fabric |
| {_XLA_AVAILABLE} | exception | critical | xla, tpu, dependency-missing, pytorch-lightning |
| Gradient clipping is not implemented for optimizers… | exception | error | fsdp, grad-scaler, optimizer-incompatibility, pytorch-lightning |
| `val_check_interval` ( ) must be less than or equal to the… | exception | error | pytorch-lightning, validation, val-check-interval, scheduling |
| Currently model averaging cannot work with a distributed… | exception | error | pytorch, lightning, ddp, distributed-optimizer, incompatibility |
| Launching multiple processes with the 'spawn' start method… | exception | error | pytorch-lightning, multiprocessing, spawn, entry-point, guard |
| `return_predictions` should be set to `False` when using… | exception | error | pytorch-lightning, predict, ddp-spawn, return-predictions |
| You cannot set both `auto_wrapper_callable` and… | exception | error | xla, fsdp, activation-checkpointing, config-conflict, lightning-fabric |
| Loading a single module or optimizer object from a… | exception | error | xla, fsdp, checkpoint, load, not-implemented, lightning-fabric |
| Received multiple values for | validation | error | lightning, fabric, plugins, config-validation, duplicate-argument |
| m.format("on_step", on_step, fx_name… | validation | error | pytorch-lightning, logging, on-step, misconfiguration |
| The `PredictionWriterCallback` does not support using… | exception | error | pytorch-lightning, prediction-writer, dataloader-iter, unsupported-operation |
| The provided `pruning_fn | exception | error | pytorch-lightning, pruning, pruning-fn, argument-validation |
| torch.distributed is not available. Cannot initialize… | exception | critical | distributed, pytorch, environment, runtimeerror |
| Unknown configuration for model optimizers. Output from… | exception | critical | configure-optimizers, validation, lightning, misconfiguration |
| Expected samples ( ) to be greater or equal than batches ( ) | validation | error | lightning, throughput, validation |
| `precision= )` is not supported in DeepSpeed. `precision`… | validation | error | deepspeed, precision, config-validation, pytorch-lightning |
| Download model failed | exception | critical | model-registry, download, lightning, checkpoint |
| f"An invalid dataloader was passed to `Trainer. | validation | error | lightning, dataloader, iterable, lightning-module, hook-return |
| f"When using an `IterableDataset`, `Trainer | validation | error | pytorch-lightning, iterable-dataset, limit-batches, misconfiguration |
| f"You can't `self.log()` inside | validation | error | pytorch-lightning, logging, hook-validation, misconfiguration |
| Lightning can't create new processes if CUDA is already… | exception | critical | pytorch-lightning, cuda, multiprocessing, pytorch-version |
| To use Fabric with more than one device, you must call… | exception | critical | lightning, fabric, distributed, launch, ddp |
| "You cannot pass `train_dataloader` or `val_dataloaders` to… | validation | error | trainer, fit, datamodule, dataloader, misconfiguration, pytorch-lightning |
| f"` ` is not a shared hook within `LightningModule` and… | validation | error | lightning, internal-api, hooks, data-transfer, misuse |
| Only the "unstructured" PRUNING_TYPE is supported with… | exception | error | pytorch-lightning, pruning, global-unstructured, unsupported-operation |
| is not attached to a `Trainer`. | exception | error | pytorch-lightning, lightning-module, trainer, lifecycle, not-attached |
| The instantiator from the checkpoint is not in the… | exception | critical | lightning, checkpoint, security, arbitrary-code-execution, allowlist |
| Cannot add arguments from | exception | error | lightning-cli, add-arguments, type-validation, parser |
| ` ` is not a valid choice with `DeepSpeedStrategy` when… | exception | error | deepspeed, zero-stage-3, weight-initialization |
| The metric ` ` does not contain a single element, thus it… | exception | error | metrics, tensor, scalar, logging, value-error, lightning-fabric |
| Blocking backward sync is only possible if the module… | exception | error | xla, fsdp, gradient-accumulation, no-sync, type-error, lightning-fabric |
| The path does not point to a valid checkpoint. Make sure… | exception | error | fsdp, checkpoint, load-checkpoint, pytorch-lightning |
| The `swa_lrs` should a positive float, or a list of… | exception | error | swa, swa-lrs, validation, learning-rate |
| Was unable to infer precision type, received | exception | error | pytorch-lightning, fsdp, mixed-precision, dtype-mapping, config-validation |
| You provided only a single | exception | error | pytorch-lightning, dataloader-idx, hook-signature, single-dataloader |
| accelerator set through both strategy class and accelerator… | validation | error | lightning, fabric, strategy, accelerator, conflicting-arguments |