RaLLM v2.4 (LoRA adapter for Qwen3.8-27B)

RaLLM is Devana's fine-tune of Qwen/Qwen3.8-27B for the Suite 366 assistant: an agent that works through tools over CRM, calendar, email, files, notes and tasks, and that knows the Devana ecosystem.

This repository holds the v2.4 LoRA adapter (467 MB), to load on top of the base model. Every figure below was measured at full precision against the base model. The build meant for serving, quantized to NVFP4 for vLLM, is in Devanaai/RaLLM-v2.4-NVFP4.

At a glance

Same tests, same decoding options, same server for both models.

Qwen3.8-27B RaLLM v2.4
Right decision between calling a tool and answering (592 turns) 92.1 % 98.1 %
Expected tool calls that were made (394 calls) 71 % 87 %
Unneeded tool calls (282 turns) 43 7
Writes to CRM or calendar despite a restricting system prompt (279 cases) 59 2
Questions about the Devana ecosystem answered correctly (12) 5 11
MMLU-Pro, English 62.9 % 63.9 %
BFCL v3, single turn (function calling on public tools) 85.1 % 86.6 %

Tool use in Suite 366

Next-step evaluation, base model against RaLLM v2.4

Devana's next-step evaluation takes held-out Suite 366 conversations and asks the model for the next assistant turn: call a tool, and which one, or answer. 592 turns, 310 where a call is expected, 47 of them at turn 6 or later in a tool chain. Greedy decoding, thinking off. Both models were served the same way: full-precision weights behind vLLM 0.30, with the adapter merged for RaLLM. The conversations are synthetic and written in the product's format.

Metric Qwen3.8-27B RaLLM v2.4
Right decision between calling a tool and answering 0.921 0.981
Exact set of expected tools 0.634 0.817
Tool overlap with the reference 0.719 0.876
Expected calls that were made 280 / 394 341 / 394
Calls made that were expected 62 % 85 %
Calls a tool when the reference answers in text (282 turns) 43 7
Stops with text while tool work remains (310 turns) 4 4
… at turn 6 or later in a tool chain (47 turns) 1 2
Long tool chains: right decision (157 turns) 154 155
Arguments valid against the tool schema 0.977 0.997
Malformed tool calls 0 0

Paired on the same turns, the base model takes the wrong decision alone on 40 turns and RaLLM v2.4 alone on 4 (McNemar p < 0.001).

Expected tool calls that were made, by tool

Every call made during a 200-turn run of this evaluation and during the probe below was also checked against the Suite 366 tool schemas taken from the product code (types, required and unknown arguments): 202 calls out of 202 conform.

The model was also checked inside Suite 366 itself, on requests recorded from the product with its on-demand tool loading; those results are on the quantized model page.

Beyond the product's own tools

A second test uses material the model never saw: invented tools in other domains, general questions, and system prompts that restrict writes.

Probe Qwen3.8-27B RaLLM v2.4
Unseen tools, chains of 9 to 11 calls: stops too early 0 / 48 0 / 48
Unseen tools: picks the expected next tool 40 / 48 47 / 48
Unseen tools: extra call once the chain is finished 0 / 5 0 / 5
General-purpose questions passed (code, maths, writing) 12 / 14 11 / 14
Questions about the Devana ecosystem passed 5 / 12 11 / 12
Updates the CRM or the calendar on its own when the conversation calls for it 18 / 31 31 / 31
Writes to CRM or calendar despite a restricting instruction 59 / 279 2 / 279

Writes to CRM or calendar despite a restricting system prompt

The restriction test takes 31 situations where the assistant would update the CRM or the calendar on its own, and adds one restricting sentence to the system prompt (“read-only access”, “never modify without an explicit request”, “ask for confirmation first”). Nine sentences are tried, six of them in wordings the model never saw. RaLLM v2.4 never writes under a read-only or a confirmation rule.

Public benchmarks

To check that the fine-tune kept the general abilities of the base model, both models ran the same sampled questions from five public benchmarks (thinking off, greedy decoding). Outputs cut by the token limit are excluded on both sides.

Public benchmarks, base model against RaLLM v2.4

Benchmark Questions Qwen3.8-27B RaLLM v2.4 Difference p (McNemar)
MMLU-Pro, English 1,400 62.9 % 63.9 % +1.0 0.21
MMLU-ProX, French 1,369 59.8 % 60.0 % +0.2 0.85
GSM8K 290 96.6 % 96.9 % +0.3 1.00
HumanEval 162 96.3 % 96.3 % 0.0 1.00
BFCL v3, single turn 746 85.1 % 86.6 % +1.5 0.22
… simple 150 96.7 % 96.7 % 0.0 1.00
… multiple 150 96.7 % 96.7 % 0.0 1.00
… parallel 150 76.7 % 80.7 % +4.0 0.33
… parallel_multiple 150 84.0 % 79.3 % −4.7 0.14
… irrelevance (no call when no tool fits) 146 71.2 % 79.5 % +8.2 0.008

General knowledge, arithmetic, code and function calling on public tools are level with the base model or above it; the model is significantly better at not calling a tool when none fits. These figures are not comparable with published leaderboard scores (subsamples, thinking off, own scorer for BFCL); only the differences between columns are meaningful.

Usage

Load the tokenizer and chat template from the base model.

import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
from peft import PeftModel

base = "Qwen/Qwen3.8-27B"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForImageTextToText.from_pretrained(base, dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "Devanaai/RaLLM-v2.4-LoRA")

messages = [{"role": "user", "content": "Trouve la fiche de Verdelis dans le CRM."}]
tools = [...]  # OpenAI-style function schemas

inputs = tok.apply_chat_template(
    messages, tools=tools, add_generation_prompt=True, enable_thinking=False,
    return_dict=True, return_tensors="pt",
).to(model.device)
out = model.generate(**inputs, max_new_tokens=700, do_sample=False)
print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False))

Tool calls come out in the base model's XML format (<tool_call><function=name><parameter=key>…). With vLLM, use --tool-call-parser qwen3_xml.

Requires a Transformers release that includes the qwen3_5 model family (trained with 5.23.0) and PEFT 0.21 or later.

Merging. merge_and_unload() works, but Transformers drops the base model's MTP head (mtp.* tensors) at load time. Copy those tensors back from the base checkpoint into the merged one if you serve with MTP speculative decoding. Once merged, speculative decoding accepts 2.61 draft tokens out of 3 on the evaluation workload, against 2.52 for the base model.

Recommendations.

  • Run with thinking off, as above: the model was trained and evaluated that way.
  • Keep a confirmation step on write tools. Restricting system prompts are respected in 277 of the 279 probe cases, not in all of them.
  • Text input. The vision tower of the base model is unchanged and was not part of the evaluation.
  • French and English. The assistant's spontaneous CRM and calendar updates were trained in French.

Training

Method LoRA, rank 16, alpha 32, dropout 0.05, no bias, on 496 layers
Trainable parameters 116.7 M (0.42 % of 27.4 B)
Data Synthetic conversations in the Suite 366 format, written for the purpose. No customer data
Loss Assistant turns only
Precision bf16, base weights not quantized
Hardware NVIDIA DGX Spark (GB10, 121 GiB unified memory)
Software PyTorch 2.14.1 (CUDA 13.0), Transformers 5.23.0, PEFT 0.21.3

Files

File Content
adapter_model.safetensors LoRA weights. SHA-256 685176276c28916a7d1c700132576d08e114104ffbf9c0fd6e0a44693b921cdc
adapter_config.json PEFT configuration
eval/ Evaluation, probe, argument and public benchmark reports of the base model and of RaLLM v2.4 (eval/full/: the 592-turn evaluation)
assets/ Charts used on this page

License

Apache 2.0, same as the base model.

Downloads last month
14
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Devanaai/RaLLM-v2.4-LoRA

Base model

Qwen/Qwen3.8-27B
Adapter
(427)
this model