Gorilla: Large Language Model Connected with APIs

gmays1 pts0 comments

Gorilla

Home<br>Blogs<br>BFCL Leaderboard<br>API Zoo Index -->

🦍 Gorilla: Large Language Model Connected with Massive APIs

Shishir G.<br>Patil*,<br>Tianjun Zhang*,<br>Xin Wang,<br>Joseph E. Gonzalez

UC Berkeley

sgp@berkeley.edu, tianjunz@berkeley.edu

Blogs<br>GitHub<br>HuggingFace<br>Discord

Gorilla Paper<br>RAFT Paper<br>GoEX Paper

Systems and Algorithms for Integrating LLMs with Applications,<br>Tools, and Services

Gorilla Used at

Gorilla OpenFunctions

Teach LLM tool use

🎁In OpenFunctions-v2, we natively train the model to support parallel functions<br>(generate multiple functions at a time) and multiple functions (select one or more<br>functions). Java/REST/Python APIs are also supported for the first time with extended<br>data typesπŸ“·

Read More: Blog

How well to other function-calling models perform: Berkeley Function<br>Calling<br>Leaderboard

Play with the model online: Gorilla<br>OpenFunctions-v2<br>Web Demo

Check out the project: GitHub<br>Code

Model (6.91B) on HuggingFace πŸ€—: gorilla-llm/gorilla-openfunctions-v2

BFCL

Benchmarking LLMs on function calling capabilities

πŸ† Berkeley Function-Calling Leaderboard (BFCL) πŸ“Š aims to provide a thorough study of<br>the function-calling capability of different LLMs. It consists of 2k πŸ“<br>question-function-answer pairs with multiple languages (🐍 Python, β˜• Java, 🟨<br>JavaScript, 🌐 REST API), diverse application domains, and complex use cases (multiple<br>and parallel function calls). We also investigate function relevance detection πŸ•΅οΈβ€β™‚οΈ,<br>to determine how the model will react when the provided function is not suitable to<br>answer the user's question.

Read More: Blog

Live Leaderboard: Website

BFCL Evaluation Dataset:<br>HuggingFace Dataset πŸ€—

Gradio Demo:<br>HuggingFace Space πŸ€—

Reproducibility: Github<br>Code

RAFT

Better way to do RAG

RAFT: Retriever-Aware FineTuning for domain-specific RAG πŸš€<br>Drawing parallels between LLMs and students in open-book (RAG) πŸ“” and closed-book exams<br>(SFT) 🧠, we present a better recipe for fine-tuning a base LLM for RAG-focused<br>challenges. Discover how RAFT prepares LLMs to excel with a specific document set,<br>mirroring students' prep for finals! πŸŽ“

Read More: Blog

Read More: MSFT-META<br>Blog

Paper: https://arxiv.org/abs/2403.10131

Reproducibility: Github Code

GoEX

Runtime for executing LLM-generated actions

Gorilla Execution Engine (GoEX) is a runtime for LLM-generated actions like code, API<br>calls,<br>and more. Featuring<br>"post-facto validation" for assessing LLM actions after execution πŸ” Key to our approach<br>is<br>"undo" πŸ”„ and "damage confinement" abstractions to manage unintended actions & risks.<br>This<br>paves the way for fully autonomous LLM agents, enhancing interaction between apps &<br>services<br>with human-out-of-loopπŸš€

Read More: Blog

Paper: https://arxiv.org/abs/2404.06921

Try it out: Web Demo

Reproducibility: GitHub Code

News

πŸš’ GoEx: A Runtime for executing LLM generated<br>actions like code & API calls GoEx presents β€œundo”<br>and β€œdamage confinement” abstractions for mitigating the risk of unintended actions taken in<br>LLM-powered systems. Release blog, Paper.

πŸŽ‰ Berkeley Function Calling<br>Leaderboard! How do models stack up for function calling? 🎯 Read more in our Release<br>Blog.

πŸ† Gorilla OpenFunctions<br>v2 Sets new SoTA for open-source LLMs πŸ’ͺ On-par with GPT-4 πŸ™Œ Supports more<br>languages πŸ‘Œ

πŸ₯‡ Gorilla OpenFunctions! Drop in replacement! Examples

πŸš€ Try<br>Gorilla in 60s! No sign-ups, no installs, just colab!

🀩 With Apache 2.0 licensed LLM models, you can use Gorilla commercially without any obligations!

πŸ“£ We are excited to hear your feedback and we welcome API contributions as we build this<br>open-source project.<br>Join us on Discord or feel free to email us!

Gorilla for your CLI and Spotlight Search

Gorilla powered CLI

Get started with pip install gorilla-cli

Gorilla Powered Spotlight Search

Gorilla-Spotlight<br>Signup

Vision

Rather have the user at the center, Gorilla enables users to interact with a wide<br>range of services through LLMs. Gorilla is an open-source, state-of-the-art<br>LLM that invokes API calls to interact with services!

Contact Us

Submit

Citation

@article{patil2024gorilla,<br>title={Gorilla: Large Language Model Connected with Massive APIs},<br>author={Patil, Shishir G. and Zhang, Tianjun and Wang, Xin and Gonzalez, Joseph E.},<br>booktitle = {Advances in Neural Information Processing Systems},<br>year={2024},

gorilla function model llms blog calling

Related Articles