Views
No views yet
LFM2.5-1.2B-Thinking-Abliterated optimized to behave as an autonomous software engineering and terminal agent [1]. It has been distilled to mimic the structured, high-signal reasoning style and precise tool orchestration of Claude-based coding pipelines [1].<think>...</think> tags [1].Read, Write, Edit) and shell execution (Bash) [1].Glint-Research/Fable-5-traces (specifically formatted from flat SFT traces) [1].TOOL RESULT) were masked out (labels = -100) [1, 2]. This prevents the model from attempting to simulate terminal outputs or user inputs [1, 4].system prompt block. Tool calls are emitted inside the assistant block using Pythonic bracket syntax [1].1<|startoftext|><|im_start|>system
2You are a helpful AI assistant with access to various tools.
3List of tools: [{"type": "function", "function": {"name": "Read", "description": "Read file.", "parameters": {"type": "object", "properties": {"file_path": {"type": "string"}}, "required": ["file_path"]}}}]<|im_end|>
4<|im_start|>user
5Inspect what's inside /workspace/server.js please.<|im_end|>
6<|im_start|>assistant
7<think>
8The user wants to see the contents of /workspace/server.js. I have the 'Read' tool. I should invoke it with the correct file path.
9</think>
10<|tool_call_start|>[Read(file_path="/workspace/server.js")]<|tool_call_end|><|im_end|>transformers or unsloth [1]:1import torch
2from unsloth import FastLanguageModel
3from transformers import AutoTokenizer
4
5model_name = "cybertruck32489/LFM2.5-1.2B-Thinking-Fable5-Agent" # Replace with your exact repo path
6
7model, tokenizer = FastLanguageModel.from_pretrained(
8 model_name = model_name,
9 max_seq_length = 8192,
10 dtype = torch.bfloat16,
11 load_in_4bit = False,
12)
13FastLanguageModel.for_inference(model)
14
15# Apply your chat template with tools and generate outputs