Run this model with HF Jobs

Run FrontiersMind/Lumma-0.6B-Tool on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/FrontiersMind/Lumma-0.6B-Tool. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/FrontiersMind/Lumma-0.6B-Tool on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/FrontiersMind/Lumma-0.6B-Tool. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/FrontiersMind/Lumma-0.6B-Tool. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="FrontiersMind/Lumma-0.6B-Tool", trust_remote_code=True)
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("FrontiersMind/Lumma-0.6B-Tool", trust_remote_code=True, device_map="auto")
Quick Links

Lumma-0.6B-Tool

Based on Lumma-0.6B-Base, Lumma-0.6B-Tool is a lightweight, single-turn specialized model designed to accurately interpret user queries and generate precise tool calls in one step, enabling efficient and reliable function execution

This is a pre-DPO/RL checkpoint

The primary challenge was designing a non-thinking model that could match or exceed the tool-use performance of similarly sized thinking models, while delivering faster responses and greater efficiency.

Use cases:

  • Mobile and edge devices: Enable low-latency API calls, database queries, and system integrations without relying on cloud-based reasoning.
  • Real-time AI assistants: Power applications in vehicles, IoT devices, and customer support systems where fast response times are essential.
  • Resource-constrained environments: Support efficient tool execution on embedded systems, battery-powered devices, and other hardware with limited compute and memory resources.

πŸ“„ Model details

List of Tools in System prompt: The system prompt must provide all the available tools, our chat template handles that.

Tool use: It consists of four main steps:

  1. Function definition: Pass JSON tool definitions in the system prompt via tools_list= (inside <|im_start|><|system|>...<|endoftext|>).
  2. Function call: Lumma returns a Pythonic call as assistant text: [FuncName(param=value)] between <|im_start|><|assistant|> and <|endoftext|>.
  3. Function execution: Run the call and return the result as a tool message (usually JSON) between <|im_start|><|tool|> and <|endoftext|>.
  4. Final answer: Lumma reads the tool output and replies in plain text as assistant.

Results

Model Name Non-Live Live Average
Falcon3-1B-Instruct 9.02 2.89 5.96
Llama-3.2-1B-Instruct 38.38 11.77 25.08
Gemma-3-1B-It 20.21 11.84 16.03
Ministral-8B-Instruct 0.00 0.00 0.00
MiniCPM-0.5B 14.29 16.67 15.48
Lumma-0.6B-Tool 41.77 30.53 36.15

NOTE: We have taken all the results from the official website.

πŸš€ Usage

import torch
import json
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL_PATH = "FrontiersMind/Lumma-0.6B-Tool"


tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_PATH, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto"
)
model.eval()


def generate(max_new_tokens,messages):
    prompt = tokenizer.apply_chat_template(
        messages,
        tools_list=tools_list,   # pass every turn
        tokenize=False,
        add_generation_prompt=True,
    )
    inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
    with torch.no_grad():
        out = model.generate(
            **inputs, max_new_tokens=max_new_tokens, do_sample=False,
            eos_token_id=tokenizer.eos_token_id, pad_token_id=tokenizer.pad_token_id,
        )
    text = tokenizer.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False)
    return text.split("<|endoftext|>")[0].strip()


tools = [
    {
        "name": "Quotes by Keywords",
        "description": "Returns a list of quotes containing the specified keyword.",
        "parameters": {
            "type": "dict",
            "properties": {"word": {"description": "The keyword to search for in quotes.", "type": "string"}},
            "required": ["word"],
        },
        "required": None,
    },
    {
        "name": "Get Zip Code Information",
        "description": "Retrieve information about a specific zip code in the United States.",
        "parameters": {
            "type": "dict",
            "properties": {
                "country": {"description": "The country code (default: 'us')", "type": "string"},
                "postal_code": {"description": "The zip code (default: '90210')", "type": "string"},
            },
            "required": ["country", "postal_code"],
        },
        "required": None,
    },
]

tools_list = json.dumps(tools)
messages = []

# --- Turn 1: user β†’ tool call ---
messages.append({"role": "user", "content": 'Find quotes about "inspiration".'})
reply = generate(max_new_tokens=512,messages=messages)
messages.append({"role": "assistant", "content": reply})
print("Turn 1:", reply)

# --- Turn 2: tool result β†’ answer ---
tool_call_response = """[{"name": "Quotes by Keywords", "results": {"quotes": [{"text": "Keep going.", "author": "Sam Levenson"}]}}]"""
messages.append({"role": "tool", "content": tool_call_response})
reply = generate(max_new_tokens=512,messages=messages)
messages.append({"role": "assistant", "content": reply})
print("Turn 2:", reply)

πŸ“¬ Feedback & Suggestions

We’d love to hear your thoughts, feedback, and ideas!

Downloads last month
74
Safetensors
Model size
0.6B params
Tensor type
F32
Β·
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for FrontiersMind/Lumma-0.6B-Tool

Finetuned
(7)
this model

Space using FrontiersMind/Lumma-0.6B-Tool 1

Collection including FrontiersMind/Lumma-0.6B-Tool

Article mentioning FrontiersMind/Lumma-0.6B-Tool