Skip to content

[BUG] can't pickle mappingproxy objects #668

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

Closed
anilravuri opened this issue Apr 9, 2025 · 2 comments
Closed

[BUG] can't pickle mappingproxy objects #668

anilravuri opened this issue Apr 9, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@anilravuri
Copy link

Describe the bug

Facing this issue: pydantic/pydantic#2192 when running lighteval in databricks

To Reproduce

Running any of the examples of lighteval in a databricks cluster will result in the above issue.

Expected behavior

Evaluation should execute.

@anilravuri anilravuri added the bug Something isn't working label Apr 9, 2025
@anilravuri
Copy link
Author

anilravuri commented Apr 9, 2025

The error happens when importing the class InferenceProvidersModelConfig. The generation_parameters attribute should be a pydantic Field() since the class is a pydantic model and not the field from dataclasses.

generation_parameters: GenerationParameters = field(default_factory=GenerationParameters)

@NathanHB
Copy link
Member

Hey ! Thanks for the report, this is fixed in #678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants