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

Replace depreciated pydantic functions #221

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kylesayrs
Copy link
Contributor

@kylesayrs kylesayrs commented Dec 5, 2024

Purpose

  • Squelch pydantic depreciation warnings

Changes

  • Replace all instances of dict with model_dump
  • Replace all instances of parse_obj with model_validate

Testing

  • Added test in tests/test_quantization/test_quant_config.py
grep -r '\.dict' src tests examples/
grep -r '\.parse_obj' src tests examples/

@kylesayrs kylesayrs changed the title replace depreciated pydantic functions Replace depreciated pydantic functions Dec 5, 2024
@kylesayrs kylesayrs self-assigned this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant