Views
No views yet
tokenizer.chat_template) is extended to
render the tool_calls field of assistant messages;general.sampling.* metadata (temp=0.1, min_p=0.15, penalty_repeat=1.05), so runtimes that read
sampler defaults from the model file use the vendor-recommended
configuration out of the box.mmproj file, see Getting Started)pip install nobodywho1from nobodywho import Chat
2
3chat = Chat("huggingface:NobodyWho/LFM2.5-VL-1.6B-GGUF/LFM2.5-VL-1.6B-Q8_0-vendor-sampling.gguf")
4response = chat.ask("What is the capital of Denmark?").completed()
5print(response) # Copenhagen!1from nobodywho import Chat, tool
2
3@tool(description="Gets the current weather for a city")
4def get_weather(city: str) -> str:
5 return f"It is sunny and 22°C in {city}."
6
7chat = Chat(
8 "huggingface:NobodyWho/LFM2.5-VL-1.6B-GGUF/LFM2.5-VL-1.6B-Q8_0-vendor-sampling.gguf",
9 tools=[get_weather],
10)
11print(chat.ask("What is the weather in Paris?").completed())[!NOTE] Tool calling with LFM models ships in the upcomingnobodywhorelease (PR #564). These files also work in any other llama.cpp-based runtime; the original unmodified GGUFs live in the upstream LiquidAI/LFM2.5-VL-1.6B-GGUF repo.
mmproj) — pass one as projection_model_path for image input.
Two precisions are available: mmproj-LFM2.5-VL-1.6b-F16.gguf and a smaller
mmproj-LFM2.5-VL-1.6b-Q8_0.gguf (either pairs with any model quant):1from nobodywho import Model, Chat, Prompt, Image, Text
2
3model = Model(
4 "huggingface:NobodyWho/LFM2.5-VL-1.6B-GGUF/LFM2.5-VL-1.6B-Q8_0-vendor-sampling.gguf",
5 projection_model_path="huggingface:NobodyWho/LFM2.5-VL-1.6B-GGUF/mmproj-LFM2.5-VL-1.6b-F16.gguf",
6)
7chat = Chat(model, system_prompt="You are a helpful assistant.")
8
9prompt = Prompt([
10 Text("What do you see in this image?"),
11 Image("./photo.png"),
12])
13response = chat.ask(prompt).completed()
14print(response)| File | Fix recipe | NobodyWho tool-suite score |
|---|---|---|
LFM2.5-VL-1.6B-Q8_0-vendor-sampling.gguf | template + vendor sampling | 14/14 |
LFM2.5-VL-1.6B-F16-vendor-sampling.gguf | template + vendor sampling | 14/14 |
LFM2.5-VL-1.6B-Q4_0-vendor-sampling.gguf | template + vendor sampling | 12-13/14 (test_python_tool fails; borderline at this quant) |
general.sampling.* metadata (temp 0.1, min_p 0.15, repetition_penalty 1.05);
runtimes that read sampler defaults from the file use them automatically.message.content. Runtimes that store tool
calls in the structured tool_calls field (the HF "unified tool use"
convention, used by NobodyWho and OpenAI-style APIs) re-render assistant
tool-call turns as empty turns, so the model never sees its own previous
calls — causing re-issued tool calls and degraded multi-turn tool use.<|tool_call_start|>[get_weather(city="Paris")]<|tool_call_end|>1{%- if message["role"] == "assistant" and message.tool_calls is defined and message.tool_calls -%}
2{%- set tcns = namespace(calls=[]) -%}
3{%- for tc in message.tool_calls -%}
4{%- set argns = namespace(parts=[]) -%}
5{%- for k, v in tc.function.arguments.items() -%}
6{%- set argns.parts = argns.parts + [k + "=" + (v | tojson)] -%}
7{%- endfor -%}
8{%- set tcns.calls = tcns.calls + [tc.function.name + "(" + (argns.parts | join(", ")) + ")"] -%}
9{%- endfor -%}
10{{- "<|tool_call_start|>[" + (tcns.calls | join(", ")) + "]<|tool_call_end|>" + content + "<|im_end|>\n" -}}
11{%- else -%}
12{{- content + "<|im_end|>\n" -}}
13{%- endif -%}tool_calls render through the else branch — identical to
the upstream template.| Property | Value |
|---|---|
| Parameters | 1.6B (1.17B language model + vision tower in the mmproj) |
| Context length | 128,000 tokens |
| License | LFM Open License v1.0 |
| Base model | LiquidAI/LFM2.5-VL-1.6B |