Skip to content

Pydantic v2 breaking FastAPI & Ray #423

Closed

Description

@anttttti

Pydantic v2 came out last week. It seems to be breaking some dependencies, including those used by VLLM.

Pydantic v2 throws an error on serializing Ray results, at least pydantic.fields.ModelField. Current VLLM requirements.txt doesn't specify the version of Pydantic, so v2 can get installed.

Until requirements.txt gets updated with version for Pydantic or depending libraries fix their compatibilities, you can do "pip install pydantic==1.10.11" to fix issues.

Activity

  1. jens-create commented on Oct 12, 2023

    @jens-create

    Any news on this issue?

  2. Changgeng-Wei commented on Mar 4, 2024

    @Changgeng-Wei

    Pydantic v2 came out last week. It seems to be breaking some dependencies, including those used by VLLM.

    Pydantic v2 throws an error on serializing Ray results, at least pydantic.fields.ModelField. Current VLLM requirements.txt doesn't specify the version of Pydantic, so v2 can get installed.

    Until requirements.txt gets updated with version for Pydantic or depending libraries fix their compatibilities, you can do "pip install pydantic==1.10.11" to fix issues.

    Current VLLM requirements.txt specify the version of Pydantic to "pydantic>=2.0", but thd issue still occur

  3. ruifengma commented on Mar 7, 2024

    @ruifengma

    Pydantic v2 came out last week. It seems to be breaking some dependencies, including those used by VLLM.
    Pydantic v2 throws an error on serializing Ray results, at least pydantic.fields.ModelField. Current VLLM requirements.txt doesn't specify the version of Pydantic, so v2 can get installed.
    Until requirements.txt gets updated with version for Pydantic or depending libraries fix their compatibilities, you can do "pip install pydantic==1.10.11" to fix issues.

    Current VLLM requirements.txt specify the version of Pydantic to "pydantic>=2.0", but thd issue still occur

    exactly the same issue here @jens-create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions