GithubHelp home page GithubHelp logo

Comments (4)

carsonwang avatar carsonwang commented on September 14, 2024 1

We can use mistral 7b to test this. It will also be useful to add a Langchain example that leverage this API.

from llm-on-ray.

carsonwang avatar carsonwang commented on September 14, 2024

@xuechendi is working on it.

from llm-on-ray.

xuechendi avatar xuechendi commented on September 14, 2024

@carsonwang, I've been working on this issue but a little lost on How to enable.
Observations:

  1. HuggingFace support for 'tools', 'tool_choice': no native parameter support in generate function for "tools", "tool_choice". Seems huggingface has their own way to support Tools: https://huggingface.co/docs/transformers/main/en/custom_tools

  2. RayLLM tools/tool_choice support. RayLLM supports these two keywords in client API, but after digging into inference codes, can't find how these two keywords passing to model.inference function either vLLMEngine or TRTEngine.
    Even though AnyScale blog mentioned their fully support for function_calls, it is not come to RayLLM codes yet. Anyscale Endpoints: JSON Mode and Function calling Features

  3. llama_cpp toos/tool_choice support. I find function_call implementation in llama_cpp_python for two models: functionary and chatML. But only functionary is accepting these two keywords natually, chatML is still convert it as plain text as Langchain.initialize_agent did. https://github.com/abetlen/llama-cpp-python/blob/main/llama_cpp/llama_chat_format.py#L2032

  4. vLLM / triton tensor-RT / huggingface issues research on tools/tool_chain support. Not found aligned conclusion.

Below is my branch for duplicating RayLLM supports for tools/tool_choice:
xuechendi@42d9613

from llm-on-ray.

xuechendi avatar xuechendi commented on September 14, 2024

pr: #134

from llm-on-ray.

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.