Giter Club home page Giter Club logo

Comments (4)

daniellok-db avatar daniellok-db commented on September 23, 2024

it looks like the completions route is hardcoded in the deployments code to point to chat/completions, as it's the new standard set by OpenAI:

https://github.com/mlflow/mlflow/blob/master/mlflow/gateway/providers/openai.py#L266

given that the text-davinci-003 model will be deprecated and unavailable in a couple months, i'm not sure if we can prioritize a fix for this. as a workaround, gpt-35-turbo should work!

from mlflow.

awolf0 avatar awolf0 commented on September 23, 2024

Thanks for the answer. I know this for OpenAI models, and text-davinci-003 is indeed close to retirement. But have all completion models really disappeared, e.g. open source/huggingface, and every LLM supports chat/completions now and in the future?
This is not a big problem for us. As you said, we can switch to gpt-35-turbo (which is cheaper, anyway). However, this decision may affect the ability of the MLFlow deployment server to be fully generic.

from mlflow.

daniellok-db avatar daniellok-db commented on September 23, 2024

This issue only affects OpenAI endpoints!

If you want to deploy an open source model completions model using MLflow (there's a guide for doing that here), you shouldn't run into this issue. Other providers (e.g. Anthropic) also shouldn't have this issue, as the chat/completions code is specific to the OpenAI provider.

from mlflow.

awolf0 avatar awolf0 commented on September 23, 2024

Understood. Thank you for the clarification. Since it no longer seems relevant after your explanations, I'll close this issue.

from mlflow.

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.