WeSearch

Code mode can help smaller LLM models

Manish· ·2 min read · 0 reactions · 0 comments · 9 views
#llm#ai#machinelearning
Code mode can help smaller LLM models
TL;DR · WeSearch summary

Researchers have found that smaller LLM models can be improved by using a code mode to call tools, rather than relying on the model to generate a signature of the tool call. This approach has been shown to be effective, especially when multiple tool calls are involved, and can help reduce token spends. The code mode concept was likely introduced by Cloudfare, and is now being used by companies such as Anthropic to improve the performance of their LLM models.

Key facts
About this source

Hacker News (AI / LLM) files mainly under ai. We currently carry 2,239 of its stories.

Original article
InstaVM · Manish
Read full at InstaVM →
Opening excerpt (first ~120 words) tap to expand

It's been clear that LLMs alone are not as powerful as "LLMs with tools". How does LLM call tools? It can generate a signature of the tool call, somewhat like a function call search_web("query") or bash("ls -l") etc. This usually calls a function written to either call the google API, exa, or execute a bash command locally. This is kind of fine as long as tool calls are properly formatted — some slightly less powerful models often make mistakes in generating those signatures. The training was so tedious that lot of models were released without the "tool calling" ability. We had to include training data involving special tokens, for example - |tool_call|.

Excerpt limited to ~120 words for fair-use compliance. The full article is at InstaVM.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from InstaVM