Views
No views yet
LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1EpochLiquidAI/LFM2.5-8B-A1BLfm2MoeForCausalLM, model_type=lfm2_moe52.304ca70e4065d10b171de0a434185a9c436cbe9893Q4_K_M (4.801 GiB): best first choice for a 16GB RAM CPU machine. Small enough for local use while preserving reasonable quality.Q5_K_M (5.616 GiB): better quality than Q4, still practical on many CPU machines with enough free RAM.Q6_K (6.482 GiB): higher-quality local option when RAM is comfortable.Q8_0 (8.391 GiB): high-fidelity quantization. Use when you have more RAM or want a quality-preserving GGUF.Q4_0 (4.512 GiB): simple 4-bit compatibility option. Prefer Q4_K_M when your runtime supports K-quants.BF16 (15.783 GiB): conversion master used to produce the quantized files. This is not the default recommendation for 16GB CPU usage.SHA256SUMS and checksums.json.1git clone https://github.com/ggml-org/llama.cpp
2cd llama.cpp
3cmake -B build -DGGML_CUDA=OFF
4cmake --build build --target llama-cli -j1pip install -U huggingface_hub
2huggingface-cli download \
3 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF \
4 --include "*Q4_K_M.gguf" \
5 --local-dir ./lfm-terminal-gguf1./llama.cpp/build/bin/llama-cli \
2 -m ./lfm-terminal-gguf/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.Q4_K_M.gguf \
3 -c 8192 \
4 -n 512 \
5 --temp 0 \
6 -p '<|startoftext|><|im_start|>system
7You are a terminal automation assistant. Return JSON only.<|im_end|>
8<|im_start|>user
9Inspect the current directory and list Python files.<|im_end|>
10<|im_start|>assistant
11'1{
2 "analysis": "brief reasoning about the next terminal action",
3 "plan": "short execution plan",
4 "commands": [
5 {"keystrokes": "ls -la\n", "duration": 0.1}
6 ],
7 "task_complete": false
8}pip install -U llama-cpp-python huggingface_hub1from llama_cpp import Llama
2
3llm = Llama(
4 model_path="./lfm-terminal-gguf/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.Q4_K_M.gguf",
5 n_ctx=8192,
6 n_threads=8,
7 verbose=False,
8)
9
10prompt = """<|startoftext|><|im_start|>system
11You are a terminal automation assistant. Return JSON only.<|im_end|>
12<|im_start|>user
13Inspect the current directory and list Python files.<|im_end|>
14<|im_start|>assistant
15"""
16
17out = llm(prompt, max_tokens=512, temperature=0.0, stop=["<|im_end|>"])
18print(out["choices"][0]["text"])Q4_K_M first.-c 4096 or -c 8192-n 256 to -n 1024--temp 0 for deterministic terminal JSON-t 8-c 4096 may fail at a much longer context.Lfm2MoeForCausalLM / MODEL_ARCH.LFM2MOE support. The source tokenizer uses the Liquid LFM2 BPE pre-tokenizer pattern, but this SFT model has a newer tokenizer hash:9e454714343b69b99b71795c1d27a68c2a1d15dab111f4d353109f966af29da7lfm2, matching the existing Liquid LFM2 tokenizer handling.1MODEL_ID=LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch \
2OUT_DIR=/home/work/.data/liquid_cli_sft/gguf/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF \
3LLAMA_CPP_DIR=/home/work/.cache/llama.cpp-mtp \
4QUANTS="Q4_K_M Q5_K_M Q8_0" \
5bash Liquid-CLI/scripts/convert_lfm25_terminal_gguf.shllama-cli generation smoke test with this specific cached llama.cpp build produced repeated prompt-marker output (>), so the uploaded model card does not claim a passing generation benchmark for GGUF runtime yet. Use a recent llama.cpp build with LFM2 MoE support and validate your target runtime locally. The original Transformers/vLLM source model remains the evaluated model for the reported TB2-lite score.LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch 모델의 GGUF 변환본입니다.Q4_K_M을 먼저 쓰는 것을 권장합니다. 품질을 조금 더 원하면 Q5_K_M, 원본 품질 보존에 가깝게 쓰고 싶으면 Q8_0을 쓰면 됩니다.