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},