Olala 1.0 Mini: a 1B-Active Hybrid Mamba Model for Chat and Tools
OVHai LLM's Apache-2.0 reasoning model has 6.8B parameters but ~1B active. How to serve it with vLLM, set reasoning effort, call tools and fine-tune it.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
Olala-v1.0-mini-7A1B is a small reasoning model for chat, instruction following and tool use from OVHai LLM, part of the OVHcloud group. It has 6.8B parameters in total but only about 1B are active per token, and the card says only 7 of its 36 layers keep a KV cache. It is released with open weights under Apache 2.0, trained on 12.8T tokens of public datasets and the team’s own synthetic data.
One practical caveat comes first: the card says Ollama, LM Studio and the official llama.cpp, vLLM and mlx-lm cannot load this model yet. Each local option uses one of OVHai’s forks.
Key specs
| Parameters | 6.8B total, about 1B active per token |
| Architecture | 36 layers: 29 Mamba-3 and 7 attention layers, each followed by a mixture-of-experts block with 256 routed experts (6 active) and 1 shared expert |
| Context length | 32K tokens (input + output); the card says a 128K version is coming soon |
| Vocabulary | 151,936 tokens |
| Modality | Text only |
| Languages | English plus 36 other languages in pre-training (38 in annealing), mostly European, plus Arabic, Chinese, Japanese and Korean |
| Post-training | SFT followed by reinforcement learning; the card says it was trained to call tools and search over many turns |
| License | Apache 2.0 |
On benchmarks, the card says the model averages 68.0 over twelve benchmarks, 15.2 points above its SFT checkpoint. It says the model is strongest on instruction following and weakest on competition mathematics. Two scores from the card’s table: IFBench 57.7 and Multi-IF 71.2. The comparison table covers 19 models, and the card’s bolding shows that some rivals score higher on those two benchmarks, so check the table for your own task before choosing.
Run it
The card gives several routes depending on what you have:
| You have | Use |
|---|---|
| A Mac with Apple Silicon (M2 or later, 16 GB) | MLX build, 5.4 GB |
| A Mac M1, a PC without GPU, or one NVIDIA GPU | llama.cpp with the GGUF build, 6 to 14 GB |
| An NVIDIA GPU server (24 GB or more) | vLLM with this repo |
| Python research code | Transformers with this repo |
vLLM
The card tested vLLM on Linux with an NVIDIA GPU of 24 GB or more and Python 3.12 (L4 and L40S). It uses a fork:
git clone https://github.com/OVHai-LLM/vllm.git vllm-forkVLLM_USE_PRECOMPILED=1 \VLLM_PRECOMPILED_WHEEL_COMMIT=4135590ffe0119dab806d78a7eee6dff3be2618e \VLLM_VERSION_OVERRIDE=0.33.0 \pip install ./vllm-fork
vllm serve OVHaiLLM/Olala-v1.0-mini-7A1B --trust-remote-code \ --mamba-ssm-cache-dtype float32 \ --reasoning-parser olala --tool-call-parser olala --enable-auto-tool-choice \ --max-model-len 32688 --port 8000Or use the pre-built Docker image of the same fork. The image needs an NVIDIA driver 580 or later on the host:
docker run --gpus all --ipc=host -p 8000:8000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ ovhaillm/olala-vllm:latest \ OVHaiLLM/Olala-v1.0-mini-7A1B --trust-remote-code \ --mamba-ssm-cache-dtype float32 \ --reasoning-parser olala --tool-call-parser olala --enable-auto-tool-choice \ --max-model-len 32688The card says the first start compiles GPU kernels and takes about 8 minutes. Then any OpenAI client works against http://localhost:8000/v1:
curl -s http://localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{ "model": "OVHaiLLM/Olala-v1.0-mini-7A1B", "messages": [{"role": "user", "content": "Explain how a heat pump works."}], "temperature": 0.8, "top_p": 0.9, "top_k": 40, "chat_template_kwargs": {"reasoning_effort": "medium"}}'The reply has the reasoning in reasoning_content, the answer in content and tool calls in tool_calls.
Transformers
pip install torch "transformers==5.8.*" accelerate einopsfrom transformers import AutoModelForCausalLM, AutoTokenizer
repo = "OVHaiLLM/Olala-v1.0-mini-7A1B"tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype="bfloat16", device_map="cuda") # or "cpu" without a GPU (slow)
inputs = tok.apply_chat_template( [{"role": "user", "content": "Explain how a heat pump works."}], add_generation_prompt=True, reasoning_effort="medium", return_tensors="pt", return_dict=True,).to(model.device)out = model.generate(**inputs, max_new_tokens=4096, use_cache=True, do_sample=True, temperature=0.8, top_p=0.9, top_k=40)print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False))Without extra kernels the Mamba-3 layers and experts run in plain PyTorch: correct but slow. The card reports about 6 tokens/s on a 64-core CPU server. The faster kernels (mamba_ssm from OVHai’s mamba fork, scattermoe and flash_attn) compile at install time, and the card says flash-attn alone can take an hour.
Reasoning effort
The model thinks before it answers. Set how long with reasoning_effort: disabled, low, medium (the default) or high (the card says best for math, slower). Pass it to apply_chat_template(), or in chat_template_kwargs in a vLLM request. With disabled, the template closes the reasoning channel empty and the model answers directly, which suits classification and routing.
The model writes in channels: reasoning in analysis, the answer in final and tool calls in tools. Reasoning from earlier assistant turns is dropped unless you pass preserve_thinking=True. The card’s sampling settings, used for all of its scores, are temperature=0.8, top_p=0.9, top_k=40.
Tool calling
Pass function schemas through tools=... to apply_chat_template(), or as tools in the OpenAI-compatible API with the vLLM tool parser. Generated calls are XML with JSON arguments:
<toolcalls><call id="call_0"><name>get_weather</name><arguments>{"city": "Paris"}</arguments></call></toolcalls>Several independent calls can share one <toolcalls> block. Run the calls in your own code, add the assistant message with its tool_calls to the history, then append each result as a tool message with its tool_call_id. Keep passing the tool schemas on later requests. The card points to two example repos: olala-mini-tools (SQL questions, connector selection, message classification) and choose-the-right-beam.
Fine-tune it
The card ships a Docker image that trains a LoRA adapter on one NVIDIA H100 and merges it into a full model, with no training code to write. Each line of data/train.jsonl is a conversation:
{"messages": [{"role": "system", "content": "You are the support assistant of an online shop. Classify the customer message into one of these categories: delivery, refund, product, account. Answer with the category only."}, {"role": "user", "content": "I still haven't received the order I placed last week."}, {"role": "assistant", "content": "delivery"}], "chat_template_kwargs": {"reasoning_effort": "disabled"}}Put a few thousand examples in data/train.jsonl and a few hundred others in data/eval.jsonl, then run:
mkdir -p model data out && chmod 0777 model data out # the image runs as UID 42420docker run --gpus all --rm \ -v "$PWD/model:/workspace/model" \ -v "$PWD/data:/workspace/data" \ -v "$PWD/out:/workspace/out" \ -e DOWNLOAD_DATA=0 \ -e TRAIN_FILE=/workspace/data/train.jsonl \ -e EVAL_FILE=/workspace/data/eval.jsonl \ -e SKIP_BENCH=1 \ ovhaillm/olala-ai-training:20261117The card says 1,000 examples trained in about 7 minutes on one H200, and that the first run downloads about 14 GB of model into model/. The merged model lands in out/merged/, next to the adapter in out/adapter/.
Gotchas
- Always serve with
--mamba-ssm-cache-dtype float32on vLLM. The card says vLLM’s default keeps Mamba state in bf16 and long generations then degrade into repetition loops. - Official engines can’t load it yet, so you depend on OVHai’s forks and images.
- Keep
use_cache=Truein Transformers (the config turns it off) and send one prompt at a time. - Context is 32K tokens including output, and
--max-model-lenis set to 32688 in the card’s commands. - The deploy menu on the model page (SageMaker, Foundry, Google Cloud) uses upstream serving images that the card says cannot load the
olalaarchitecture.
When to pick it
Pick Olala if you want a small, Apache-licensed model that reasons and calls tools, you are comfortable running a vendor fork of vLLM, and you may fine-tune it for a narrow job such as classification or routing. The card also lists a hosted, OpenAI-compatible option on OVHcloud AI Endpoints if you don’t want to run it yourself.
Skip it if you need long context today (the card promises 128K later), image input (it is text-only), or an install that works with stock Ollama, LM Studio or vLLM. If competition maths is your main task, note that the card calls it the model’s weakest area. Treat the code above as untested: it comes from the model card, not from a run.
Related
LFM2.5-24B-A2B: A 2B-Active Reasoning Model for Local Agents
Liquid AI's 24B MoE activates 2.45B parameters per token, always reasons first, and writes tool calls. Here's how to run it and where it fits.
LiquidAI/LFM2.5-24B-A2B
Kolibri 1: serving Aleph Alpha's 78B MoE with vLLM, reasoning and tool calls
Kolibri 1 is a German–English reasoning model with only 3.5B active parameters. How to serve it, control its thinking effort, and wire up tool calling.
Aleph-Alpha/Kolibri-1
Run MiniCPM5-2B Locally for Tool Calls and Long Documents
MiniCPM5-2B is a 2.5B Llama-architecture model with 131K context and tool calling. Here's how to serve it and what it's good for.
openbmb/MiniCPM5-2B