LFM3-1.7B · Harbor · OpenCode (LoRA, GGUF)

The GGUF version of harness-hub/LFM3-1.7B-opencode, a LoRA adapter for LiquidAI/LFM3-1.7B trained with reinforcement learning inside the OpenCode coding agent, for llama.cpp.

In short, the adapter solves 15.3 points more tasks than the base model, with 43% fewer tool calls on the tasks both solve. The original adapter card describes the training and the evaluation.

LFM3-1.7B-harbor-opencode-lora-F16.gguf is the adapter only. It runs on top of a GGUF of the base model.

Run

1. Download and serve

hf download LiquidAI/LFM3-1.7B-GGUF LFM3-1.7B-Q8_0.gguf --local-dir .
hf download harness-hub/LFM3-1.7B-opencode-GGUF LFM3-1.7B-harbor-opencode-lora-F16.gguf --local-dir .

llama serve -m LFM3-1.7B-Q8_0.gguf --lora LFM3-1.7B-harbor-opencode-lora-F16.gguf \
    -c 65536 --port 8080 --alias lfm3-harbor-opencode

The adapter was trained on the BF16 weights. The closer the base is to them, the closer you get to the trained behavior. Q8_0 is a good default.

2. Point OpenCode at it

Install OpenCode (training and evaluation used 1.19.5):

npm install -g opencode-ai@1.19.5

Add the server to ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "local": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "http://localhost:8080/v1", "apiKey": "dummy" },
      "models": { "lfm3-harbor-opencode": {} }
    }
  }
}
opencode run -m local/lfm3-harbor-opencode "Which region had the highest revenue growth in sales.csv?"

Conversion

Converted from the PEFT adapter with llama.cpp's convert_lora_to_gguf.py, at F16:

python llama.cpp/convert_lora_to_gguf.py <adapter dir> --base <LiquidAI/LFM3-1.7B config dir> --outtype f16

Limitations

  • Not re-evaluated in GGUF. The scores on the original adapter card come from vLLM at BF16. This file has not been evaluated through llama.cpp, and a quantized base will move the results further.
Downloads last month
18
GGUF
Model size
32.9M params
Architecture
lfm3
Hardware compatibility
Log In to add your hardware

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for harness-hub/LFM3-1.7B-opencode-GGUF

Adapter
(1)
this model

Collection including harness-hub/LFM3-1.7B-opencode-GGUF