LoRA adapter fine-tuned from Salesforce/Llama-xLAM-2-8b-fc-r for the ProjAtlas platform's neuron selection and brain visualization agents.
ProjAtlas is an AI-assisted multi-agent platform for interactive exploration of single-neuron projectomes across mouse and macaque brains. This adapter powers the function-calling component that translates natural-language instructions into structured tool calls (e.g. filtering neurons by soma location or projection target, adjusting the interactive 3D viewport).
Training code, dataset, and evaluation scripts are in the
function-calling/
directory of the ProjAtlas repository.
This is not a general-purpose function-calling model. It is fine-tuned specifically on
the ProjAtlas platform's own tool schema (three toolsets: Mouse, Macaque, and the shared
Neuroviz visualization toolset). It is intended to reproduce this paper's reported results
and is unlikely to perform well on function-calling tasks or tool schemas outside this
dataset. See the dataset
and data/train.json
for the exact tool definitions this adapter was trained on.
Held-out test set, 865 samples:
| Zero | Single | Parallel | Total | |
|---|---|---|---|---|
| Mouse | 15/16 (93.8%) | 81/82 (98.8%) | 33/34 (97.1%) | 129/132 (97.7%) |
| Macaque | 14/14 (100.0%) | 95/95 (100.0%) | 30/30 (100.0%) | 139/139 (100.0%) |
| Neuroviz | 64/65 (98.5%) | 279/284 (98.2%) | 236/245 (96.3%) | 579/594 (97.5%) |
| Total | 93/95 (97.9%) | 455/461 (98.7%) | 299/309 (96.8%) | 847/865 (97.9%) |
Compared with 34.0% for the unmodified base model and 81.0% for the strongest of five general-purpose baselines evaluated (Gemini 3 Pro Preview) on the same test set.
Requires peft and transformers. Load the base model and apply this adapter:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("Salesforce/Llama-xLAM-2-8b-fc-r")
tokenizer = AutoTokenizer.from_pretrained("Salesforce/Llama-xLAM-2-8b-fc-r")
model = PeftModel.from_pretrained(base_model, "zhang-manyi/ProjAtlas-xLAM2-8B-FunctionCalling-lora")
For merging the adapter into the base model and deploying with vLLM, see the "Merge LoRA Weights" and "Local Deployment with vLLM" sections of the repository README.
This adapter is derived from Salesforce/Llama-xLAM-2-8b-fc-r and is licensed under CC-BY-NC-4.0 (non-commercial, research use only), subject also to the Meta Llama Community License. This differs from the Apache-2.0 license covering the training/evaluation code in the ProjAtlas repository.
See the ProjAtlas GitHub repository for the current citation.
4 commits
LoRA adapter fine-tuned from Salesforce/Llama-xLAM-2-8b-fc-r for the ProjAtlas platform's neuron selection and brain visualization agents.
ProjAtlas is an AI-assisted multi-agent platform for interactive exploration of single-neuron projectomes across mouse and macaque brains. This adapter powers the function-calling component that translates natural-language instructions into structured tool calls (e.g. filtering neurons by soma location or projection target, adjusting the interactive 3D viewport).
Training code, dataset, and evaluation scripts are in the
function-calling/
directory of the ProjAtlas repository.
This is not a general-purpose function-calling model. It is fine-tuned specifically on
the ProjAtlas platform's own tool schema (three toolsets: Mouse, Macaque, and the shared
Neuroviz visualization toolset). It is intended to reproduce this paper's reported results
and is unlikely to perform well on function-calling tasks or tool schemas outside this
dataset. See the dataset
and data/train.json
for the exact tool definitions this adapter was trained on.
Held-out test set, 865 samples:
| Zero | Single | Parallel | Total | |
|---|---|---|---|---|
| Mouse | 15/16 (93.8%) | 81/82 (98.8%) | 33/34 (97.1%) | 129/132 (97.7%) |
| Macaque | 14/14 (100.0%) | 95/95 (100.0%) | 30/30 (100.0%) | 139/139 (100.0%) |
| Neuroviz | 64/65 (98.5%) | 279/284 (98.2%) | 236/245 (96.3%) | 579/594 (97.5%) |
| Total | 93/95 (97.9%) | 455/461 (98.7%) | 299/309 (96.8%) | 847/865 (97.9%) |
Compared with 34.0% for the unmodified base model and 81.0% for the strongest of five general-purpose baselines evaluated (Gemini 3 Pro Preview) on the same test set.
Requires peft and transformers. Load the base model and apply this adapter:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("Salesforce/Llama-xLAM-2-8b-fc-r")
tokenizer = AutoTokenizer.from_pretrained("Salesforce/Llama-xLAM-2-8b-fc-r")
model = PeftModel.from_pretrained(base_model, "zhang-manyi/ProjAtlas-xLAM2-8B-FunctionCalling-lora")
For merging the adapter into the base model and deploying with vLLM, see the "Merge LoRA Weights" and "Local Deployment with vLLM" sections of the repository README.
This adapter is derived from Salesforce/Llama-xLAM-2-8b-fc-r and is licensed under CC-BY-NC-4.0 (non-commercial, research use only), subject also to the Meta Llama Community License. This differs from the Apache-2.0 license covering the training/evaluation code in the ProjAtlas repository.
See the ProjAtlas GitHub repository for the current citation.
4 commits