AGILLM-3 v21 MeshDirect adapter - tool use and function calling adapter
2 min readupdated
This release from the ScAGI developers adds a trainable tool selector and argument extractor to the original AGILLM-3 v21 chat model. The transformer weights remain frozen, while a bidirectional GRU module analyzes features, predicts intents, and extracts required parameters for structured queries. The model efficiently handles external function calling, status returns, and JSON generation according to a given schema. This solution will be useful for developers building local pipelines for language model interaction with tools and APIs.
Key features
- Structured selection: precise tool name identification and required argument extraction
- Combined approach: using a trained router for commands and a free-form adapter for regular chat
- Frozen base layer: efficient fine-tuning without changing the main weights of the large model
- Ready examples: launch scripts to test operation with fixed menus and synthetic scenarios
What you can do
- Function calling testing: run a local script to process requests like the current time or task status
- Pipeline integration: use router components to build local systems with structured output support
- Experiment replication: review evaluation results on test datasets from the repository
Example
python run_sft.py --source base --structured --menu sg --infer 'What is the time now?'
python run_sft.py --source base --structured --menu fixture --infer 'Read the note on basalt-42.'Read more
DetailsBenchmarks: the structured system scored an overall 42/63 (66.7%), including 18/24 precise calls with arguments
Training parameters: the free-form adapter contains 828,916 trainable parameters (750 AdamW steps), while the structured one has 329,253 parameters (480 steps)
Limitations: tests were conducted in English on synthetic datasets; real external action execution and credentials are not supported
Base model: OpenTransformer/AGILLM-3-large-v2










Comments