Gorilla LLM: Writes API Calls Better Than GPT-4o?

Ritesh Kanjee
4 min readJun 28, 2024

--

A new contender has emerged — Gorilla LLM. This finetuned LLaMA-based model has been making waves with its ability to write API calls better than GPT-4. In this article, we will explore the capabilities of Gorilla LLM and delve into its strengths and weaknesses.

The Challenge of Generating Accurate API Calls

State-of-the-art language models, such as GPT-4o, often struggle when it comes to generating accurate API calls. One of the main reasons behind this challenge is their tendency to hallucinate, leading to inaccurate outputs. Previous attempts to integrate APIs into language models have focused on a limited set of well-documented APIs, which restricts the model’s ability to handle a wide range of tools effectively.

Enter Gorilla LLM

Gorilla LLM marks a significant shift in the way language models utilize tools. Unlike its predecessors, Gorilla LLM leverages cloud-based APIs, opening up a vast space of possibilities. This model, trained by UC Berkeley and Microsoft, has the capacity to manage thousands of API calls, offering a broader coverage over a more extensive range of tools.

How Does Gorilla LLM Work?

Gorilla LLM’s approach can be broken down into three steps. First, it interprets the input provided in natural language and selects the domain closest to the prompt. It then calls the API closest to the selected domain, generating specific API calls. This process has proven to outperform GPT-4o in making accurate API calls.

However, it is important to note that Gorilla LLM has its limitations. It can only provide responses to single-domain prompts, which means it may struggle with prompts that belong to multiple domains. While it is possible to engineer the prompt to work around this issue, the results may not always be optimal. Additionally, Gorilla LLM currently provides output in the form of Python code, requiring users to run the code to obtain the desired output. This may pose a challenge for users with limited hardware specifications.

The Power of Collaboration

One of the strengths of Gorilla LLM lies in its ability to collaborate with other tools. While ToolFormer focuses on a select set of tools, Gorilla LLM can manage thousands of API calls, offering a more comprehensive solution. The collaboration between these tools enhances their strengths and capabilities, creating a powerful and versatile solution.

The Road Ahead

While Gorilla LLM shows great promise, there are areas that can be further improved. The limited number of APIs that it can call and the lack of streamlined support to add custom APIs or train/fine-tune custom models are some of the challenges that need to be addressed. However, with the active involvement of the AutoGPT community, Gorilla LLM has the potential to evolve and overcome these limitations.

Conclusion

Gorilla LLM has emerged as a formidable contender in the world of language models. Its ability to generate accurate API calls sets it apart from its predecessors. While it has its limitations, the collaboration between Gorilla LLM and other tools showcases the power of combining strengths. As the AutoGPT community continues to contribute and refine Gorilla LLM, we can expect to see further advancements in this field.

So, is Gorilla LLM the game-changer we’ve been waiting for? Only time will tell. But one thing is for sure — it has certainly raised the bar for generating API calls in language models.

If you found this article interesting and want to be on the cutting edge of AI, then ready yourself to level up your AI and Computer Vision skills with practical, industry-relevant knowledge. Join us at Augmented AI University and bridge the gap between academic learning and the skills you need in the workplace.

Don’t miss out on the opportunity to enhance your career with cutting-edge AI education. Enroll now and start building a foundation of practical AI skills to tackle tomorrow’s technological challenges!

Enroll in Augmented AI University Today!

References

--

--

Ritesh Kanjee
Ritesh Kanjee

Written by Ritesh Kanjee

We help you master AI so it does not master you! Director of Augmented AI

No responses yet