simon-momerged 3 commits intovllm-project:mainfromjoennlae:update-pydantic-to-v2 Jan 22, 2024 +26−22 Conversation5Commits3Checks2Files changed7 Contributor joennlaecommentedJan 21, 2024 Following this guide h
Hello, Since the V2 update, Pydantic V2 still includes the V1 models to make the migration easier : https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features Example : from pydantic.v1 import BaseModel Unfortunately...
File "D:\env\fbt\Lib\site-packages\pydantic\_migration.py", line 302, in wrapper raise PydanticImportError(f'`{import_path}` has been removed in V2.') pydantic.errors.PydanticImportError: `pydantic:compiled` has been removed in V2. For further information visit https://errors.pydantic.dev...
- Welcome to Pydantic: index.md - Why use Pydantic: why.md - Help with Pydantic: help_with_pydantic.md - Installation: install.md - Migration Guide: migration.md - Version Policy: version-policy.md - Contributing: contributing.md - Changelog: changelog.md - Concepts: - Models...
# Check https://docs.pydantic.dev/latest/migration/#defining-custom-types for more information. def __get_validators__(cls): yield from [] @classmethod # TODO[pydantic]: We couldn't refactor `__modify_schema__`, please create the `__get_pydantic_json_schema__` manually. # Check https...
Pydantic v2 has been out for some time now. We have been relying on using the v1 API available in v2 until now. This is a refresh of #3902 to bring proper v2 support to DeepSpeed. Corresponding DeepSpeed-MII PR here. @loadams ️ 3 mrwyattii added 2 commits February 20, 2024...
It seems that lightly is still using pydantic v1. However, v1 is likely no longer receiving updates. Is it possible to migrate to v2? Pydantic even provides a tool to automatically migrate: https://docs.pydantic.dev/latest/migration/.Activity...
amd-mi200.yml on: pull_request amd-tests 0s Oh hello! Nice to see you. Made with ️ by humans.txt Annotations 1 error amd-tests This request was automatically failed because there were no enabled runners online to process the request for more than 1 days....
Pydantic v2 introduced breaking changes that hinder its adoption: https://docs.pydantic.dev/latest/migration/. To provide deepspeed users the option to migrate to pydantic v2 on their own timeline, deepspeed uses this compatibility module as a pydantic-version-agnostic alias for pydantic's v1 API...
Where possible, we have retained the deprecated methods with their old names to help ease migration, but calling them will emit DeprecationWarnings. Pydantic V1Pydantic V2 __fields__ model_fields __private_attributes__ __pydantic_private__ __validators__ __pydantic_validator__ construct() ...