Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct objects from yaml by classmethod #19801

Open
Boltzmachine opened this issue Apr 22, 2024 · 0 comments
Open

Construct objects from yaml by classmethod #19801

Boltzmachine opened this issue Apr 22, 2024 · 0 comments
Labels
feature Is an improvement or enhancement needs triage Waiting to be triaged by maintainers

Comments

@Boltzmachine
Copy link

Boltzmachine commented Apr 22, 2024

Description & Motivation

Sometimes I want to construct an object from classmethods (e.g. from_pretrained) instead of __init__. But looks like currently lightning does not support it

Pitch

model:
    class_path: Model.from_pretrained
    init_args:
        ...

Alternatives

No response

Additional context

No response

cc @Borda

@Boltzmachine Boltzmachine added feature Is an improvement or enhancement needs triage Waiting to be triaged by maintainers labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement needs triage Waiting to be triaged by maintainers
Projects
None yet
Development

No branches or pull requests

1 participant