Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

ValueError: Expected a parent #535

@starxa2

Description

@starxa2

How to resolve the following error

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Traceback (most recent call last):
File "/workspace/kundeshwar_pundalik/Abhishek_Shinde/DPO/frameworks/NeMo-Aligner/examples/nlp/gpt/train_gpt_knowledge_distillation.py", line 196, in main
init_using_ptl(trainer, ptl_model, train_dataloader, train_ds)
File "/workspace/kundeshwar_pundalik/Abhishek_Shinde/DPO/frameworks/NeMo-Aligner/nemo_aligner/utils/train_script_utils.py", line 111, in init_using_ptl
call._call_configure_model(ptl_trainer)
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/trainer/call.py", line 111, in _call_configure_model
if is_overridden("configure_sharded_model", trainer.lightning_module):
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/utilities/model_helpers.py", line 42, in is_overridden
raise ValueError("Expected a parent")
ValueError: Expected a parent

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions