Lightning-AI/pytorch-lightning
Documented errors, page 3 of 5. Back to Lightning-AI/pytorch-lightning
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| When using the learning rate finder, either `model` or… | validation | error | lr-finder, tuner, learning-rate, hyperparameters, pytorch-lightning |
| The filter keys are not present in the state keys . | validation | error | lightning, fabric, checkpointing, key-mismatch |
| When using the , you are required to override the… | exception | error | model-parallel, fsdp2, configure-model, hook-required |
| CPU parallel_devices set through | validation | error | lightning, fabric, strategy, accelerator, device-mismatch, cpu |
| `devices` selected with `CPUAccelerator` should be an int >… | validation | error | pytorch-lightning, torchmetrics, compute, type-mismatch |
| `max_epochs` must be a non-negative integer or -1. You… | exception | error | pytorch-lightning, trainer, max-epochs, configuration, validation |
| {str(_XLA_AVAILABLE)} | exception | error | pytorch-lightning, xla, tpu, missing-dependency, torch-xla |
| An optimizer should be passed only once to the… | validation | error | pytorch-lightning, fabric, optimizer, double-setup |
| Path does not exist or is not a file. | exception | error | lightning, checkpoints, file-not-found |
| The ` ` does not support `accumulate_grad_batches` changing… | exception | error | lightning, deepspeed, gradient-accumulation, strategy-incompatible |
| Trying to restore optimizer state but checkpoint contains… | validation | error | lightning, resume, optimizer-state, weights-only, checkpoint |
| Early stopping conditioned on metric | exception | error | lightning, early-stopping, metric-not-found, monitor |
| {_JSONARGPARSE_SIGNATURES_AVAILABLE} | exception | error | lightning-cli, jsonargparse, dependency-version, module-not-found |
| Primitives are not allowed. | exception | error | pytorch-lightning, hparams, save-hyperparameters, type-validation |
| str(_BITSANDBYTES_AVAILABLE) | exception | error | bitsandbytes, dependency, quantization, pytorch-lightning |
| You requested to find | error_code | error | pytorch-lightning, trainer, val-check-interval, time-format |
| Could not find the `LightningModule` attribute for the… | exception | error | pytorch-lightning, self-log, torchmetrics, metric-registration |
| Error while merging hparams: the keys | exception | error | lightning, hparams, merge-conflict, datamodule |
| GPUs requested but none are available. | exception | critical | pytorch-lightning, cuda, gpu, environment, device-availability |
| The LightningModule should have a nn.Module `backbone`… | validation | error | lightning, finetuning, backbone, attribute-missing |
| The path does not point to a valid checkpoint. Make sure… | validation | error | lightning, fabric, checkpoint, invalid-path |
| Trainer was configured with `enable_progress_bar=False` but… | validation | error | lightning, progress-bar, trainer-init, config-conflict, callbacks |
| Tuning the batch size is currently not supported with… | validation | error | batch-size-finder, distributed, ddp, tuner |
| You restored a checkpoint with current_epoch= | validation | error | lightning, resume, max-epochs, epoch, trainer-state |
| You set `.load_from_checkpoint | exception | error | lightning, checkpoint, strict-loading, config-conflict |
| Device ID's (GPU) must be unique. | exception | error | gpu, duplicate-ids, device-configuration, validation |
| error | validation | error | pytorch-lightning, logging, reduce-fx, misconfiguration |
| Found invalid table_kwargs key | exception | error | profiler, invalid-argument, kwargs, pytorch-lightning |
| No precision set | exception | error | pytorch-lightning, precision, config-validation |
| The provided lr scheduler | exception | error | lr-scheduler, custom-scheduler, hook, lightning |
| To use DeepSpeed you must pass in a DeepSpeed config dict… | exception | critical | deepspeed, missing-config, zero-optimization |
| To use the `plot` method, you must have Matplotlib… | validation | warning | lr-finder, plot, matplotlib, missing-dependency, optional-install, pytorch-lightning |
| Overriding `Fabric.run()` and launching from the CLI is not… | validation | error | lightning, fabric, cli, subclass, method-override |
| The provided `parameters_to_prune` should either be list of… | exception | error | pytorch-lightning, pruning, parameters-to-prune, argument-validation |
| You called `self.log | console | warning | logging, dtype, metrics, lightning |
| .csv, .yml or .yaml is required for `hparams_file` | exception | error | lightning, checkpoint, hparams, file-extension |
| Got DeepSpeedStrategy.load_checkpoint | validation | error | deepspeed, checkpointing, resume, state-validation, pytorch-lightning |
| The ` ` does not support setting up the module and… | validation | error | deepspeed, api-misuse, optimizer-setup, pytorch-lightning |
| You added multiple progress bar callbacks to the Trainer… | validation | error | lightning, progress-bar, callbacks, trainer-init, duplicate-callbacks |
| The `configure_serialization` method needs to be overridden. | exception | error | lightning, serving, serialization, not-implemented |
| The Finetuning callback does not support running with the… | exception | error | lightning, finetuning, deepspeed, strategy-incompatible |
| `RichModelSummary` requires `rich` to be installed. Install… | exception | error | rich, optional-dependency, model-summary, callback |
| You called `self.log` with the key | exception | error | pytorch-lightning, self-log, multi-dataloader, key-validation |
| Couldn't infer the batch indices fetched from your… | console | warning | prediction, dataloader, batch-indices, lightning |
| to use , please disable automatic optimization: set model… | exception | error | pytorch-lightning, manual-optimization, manual-backward, misconfiguration |
| Trying to restore learning rate scheduler state but… | validation | error | lightning, resume, lr-scheduler, weights-only, checkpoint |
| Expected the value to increase, last | validation | error | pytorch-lightning, throughput, monotonic, timing |
| `Fabric.launch(function= )` needs to take at least one… | validation | error | lightning, fabric, launch, signature |
| Failed to load checkpoint directly into the model. The… | validation | error | lightning, fabric, checkpoint, full-checkpoint, shards |
| No models were set up for backward. Did you forget to call… | exception | critical | lightning, fabric, deepspeed, backward, setup-order |
| Could not find a DeepSpeed model in the provided checkpoint… | validation | error | deepspeed, checkpointing, state-validation, pytorch-lightning |
| Could not find a FSDP model in the provided checkpoint… | validation | error | fsdp, checkpoint, load, setup, pytorch-lightning |
| Expected `fabric.save(filter=...)` for key | validation | error | lightning, fabric, checkpointing, type-validation |
| `gradient_clip_val` should be an int or a float. Got | exception | error | pytorch-lightning, gradient-clipping, type-error, validation |
| Gradient clipping with FSDP is only possible if the module… | validation | error | fsdp, gradient-clipping, type-error, wrapping |
| Accessing the XLA device before processes have spawned is… | exception | error | xla, root-device, lifecycle |
| Could not find the `LightningModule` attribute for the… | exception | error | pytorch-lightning, self-log, torchmetrics, metric-attribute |
| `precision= )` is not supported in FSDP. `precision` must… | exception | error | pytorch-lightning, fsdp, precision, config-validation, distributed |
| "You cannot pass both `trainer.validate(dataloaders=...… | validation | error | trainer, validate, datamodule, dataloader, misconfiguration, pytorch-lightning |
| `gradient_clip_algorithm | exception | error | pytorch-lightning, gradient-clipping, invalid-argument, enum-validation |
| Only PyTorch DataLoader are currently supported in… | validation | error | pytorch-lightning, fabric, dataloader, type-validation |
| `Passed ` (precision= )`. Precision must be '16-mixed' or… | exception | error | pytorch-lightning, precision, amp, mixed-precision, version-migration |
| `RichProgressBar` requires `rich` >= 10.2.2. Install it by… | exception | error | pytorch-lightning, rich, missing-dependency, progress-bar |
| Skipping the `training_step` by returning None in… | exception | critical | pytorch-lightning, distributed, ddp, training-step, sync |
| The lr scheduler dict must have the key "scheduler" with… | exception | critical | lr-scheduler, configure-optimizers, validation, lightning |
| ` .to_onnx()` requires `onnx` to be installed. | exception | error | onnx, export, missing-dependency, lightning |
| You set ` (use_orig_params=False)` but this is not… | validation | error | fsdp, use-orig-params, optimizer, setup |
| GPU parallel_devices set through | validation | error | lightning, fabric, strategy, accelerator, device-mismatch, gpu |
| Calling `trainer.fit()` twice on the same Trainer instance… | exception | error | trainer, spawn, fit-twice, pytorch-lightning |
| Please, return your outputs as a dictionary. Found | exception | error | lightning, serving, return-type, contract |
| `precision= ` does not use a scaler, found . | exception | error | pytorch-lightning, fsdp, shardedgradscaler, mixed-precision, bf16 |
| The ` ` requires the model and optimizer(s) to be set up… | exception | error | lightning, fabric, deepspeed, xla, setup, joint-setup |
| Training with multiple optimizers is only supported with… | exception | critical | optimizer, manual-optimization, migration, lightning |
| you tried to log which is currently not supported. Try a… | validation | error | pytorch-lightning, tensorboard, logging, type-validation |
| `FSDPStrategy.save_checkpoint(..., storage_options=...)` is… | exception | error | fsdp, save-checkpoint, storage-options |
| You cannot mark the forward method itself as a forward… | validation | error | pytorch-lightning, fabric, invalid-argument |
| You cannot pass both `trainer.predict(dataloaders=...… | validation | error | trainer, predict, datamodule, dataloader, misconfiguration, pytorch-lightning |
| `ModelCheckpoint(save_last='link')` is only supported for… | validation | error | lightning, model-checkpoint, remote-storage, symlink |
| The attribute name for the learning rate was set to | validation | error | lr-finder, tuner, attr-name, hyperparameters, pytorch-lightning |
| You have set `accumulate_grad_batches` and are using the… | validation | error | lightning, gradient-accumulation, config-conflict, trainer-options |
| logging_interval should be `step` or `epoch` or `None`. | validation | error | lightning, lr-monitor, invalid-argument, callback-config |
| ` ` should have been `setup` with a `CombinedLoader`. | exception | error | lightning, loops, fetchers, setup-order, internal-api |
| "`self.log(on_step=False, on_epoch=False)` is not useful." | validation | error | pytorch-lightning, logging, aggregation, misconfiguration |
| When requesting `structured` pruning, the `pruning_dim`… | exception | error | pytorch-lightning, pruning, structured-pruning, missing-argument |
| Could not find a FSDP model in the provided checkpoint… | validation | error | fsdp, checkpoint, state, save |
| Missing folder: . | exception | error | lightning, hparams, yaml, missing-directory, fsspec |
| `mode` can be , got | validation | error | lightning, early-stopping, callback-config, invalid-argument |
| You cannot pass both `trainer.test(dataloaders=...… | validation | error | trainer, test, datamodule, dataloader, misconfiguration, pytorch-lightning |
| The filename cannot be empty | exception | error | pytorch-lightning, on-exception-checkpoint, filename, argument-validation |
| There is no `frame` available while being required. | exception | error | hyperparameters, introspection, lightning, attributeerror |
| When using multiple models + deepspeed, please provide the… | validation | error | lightning, fabric, deepspeed, multi-model, backward |
| is not in bounds, numpy accepts from to | validation | error | lightning, seeding, validation |
| With `def training_step(self, dataloader_iter)`… | exception | error | pytorch-lightning, self-log, dataloader-iter, batch-size, training-step |
| `synchronous` requires mlflow>=2.8.0 | exception | error | mlflow, lightning, logger, version-mismatch, dependency |
| Some schedulers are attached with an optimizer that wasn't… | exception | critical | lr-scheduler, optimizer, validation, lightning |
| The `avg_fn` should be callable. | exception | error | swa, avg-fn, validation, callback |
| "`Trainer.validate()` requires a `LightningModule` when it… | validation | error | trainer, validate, missing-model, pytorch-lightning |
| DeepSpeed does not support clipping gradients by value. | exception | error | deepspeed, gradient-clipping, trainer-flags |
| Found invalid table_kwargs key | exception | error | profiler, invalid-argument, kwargs, version-compat |
| `precision= )` is not supported in XLA. `precision` must be… | exception | error | xla, precision, invalid-argument, pytorch-lightning |