Giter Site home page Giter Site logo

Comments (3)

simon-mo avatar simon-mo commented on June 8, 2024

Hmm our current pin is

pydantic >= 2.0 # Required for OpenAI server.

Is there places where vLLM needs to be changed?

from vllm.

AbbottKilig avatar AbbottKilig commented on June 8, 2024

Hmm our current pin is

pydantic >= 2.0 # Required for OpenAI server.

Is there places where vLLM needs to be changed?

If I lower the version of pydantic to 1.9.0, the following error will occur again:
File /opt/conda/lib/python3.8/site-packages/vllm/model_executor/layers/quantization/schema.py:16
1 """
2 This file contains the Pydantic schemas for various quantization-related
3 parameters. When a relevant quantization technique is specified, these
(...)
11 scaling factors.
12 """
14 from typing import Dict, Optional
---> 16 from pydantic import BaseModel, ConfigDict, ValidationInfo, model_validator
19 class KVCacheQuantSchema(BaseModel):
20 dtype: str

ImportError: cannot import name 'ConfigDict' from 'pydantic' (/opt/conda/lib/python3.8/site-packages/pydantic/init.cpython-38-x86_64-linux-gnu.so)

from vllm.

DarkLight1337 avatar DarkLight1337 commented on June 8, 2024

I'm able to import transformers just fine using transformers==4.40.1, pydantic==2.7.1, and pydantic_core==2.18.2. Try updating your pydantic version.

from vllm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.