Instructions to use Duckets/lfm3-vl-2b-hemp-agri with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Duckets/lfm3-vl-2b-hemp-agri with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0 # Run inference directly in the terminal: llama cli -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0 # Run inference directly in the terminal: llama cli -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Use Docker
docker model run hf.co/Duckets/lfm3-vl-2b-hemp-agri:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use Duckets/lfm3-vl-2b-hemp-agri with Ollama:
ollama run hf.co/Duckets/lfm3-vl-2b-hemp-agri:Q8_0
- Unsloth Desktop
- Pi
How to use Duckets/lfm3-vl-2b-hemp-agri with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Duckets/lfm3-vl-2b-hemp-agri:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Duckets/lfm3-vl-2b-hemp-agri with Docker Model Runner:
docker model run hf.co/Duckets/lfm3-vl-2b-hemp-agri:Q8_0
- Lemonade
How to use Duckets/lfm3-vl-2b-hemp-agri with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Run and chat with the model
lemonade run user.lfm3-vl-2b-hemp-agri-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use Duckets/lfm3-vl-2b-hemp-agri with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Duckets/lfm3-vl-2b-hemp-agri with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Duckets/lfm3-vl-2b-hemp-agri:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Duckets/lfm3-vl-2b-hemp-agri:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
LFM3-VL-2B โ Hemp-Agri v3 + v4
This repo holds TWO versions side by side (the author's choice โ v4 did not replace v3 because it scored lower on knowledge; it is kept for its thinking-mode fix and its stronger hemp-production leg).
A text-trained knowledge tune of LiquidAI/LFM3-VL-2B for cannabis/hemp production and general agriculture Q&A and plant-photo interpretation. v3 remains the recommended download for knowledge and diagnosis; v4 is the build whose training fixed the thinking-mode trap described below.
Training: LoRA (r=32, alpha=64) on the language model only โ vision tower frozen โ in Unsloth Studio, on the main hemp-agri dataset (15,241 text rows) plus 56 authored fix rows written against the previous version's judged bench failures (diagnosis differentials, droop/watering checks, nutrient mobility, hemp seed facts, seeding-rate units). No image training: the model's eyes are the base model's; what was taught is the knowledge to interpret what it sees.
Files:
lfm3vl-unsloth-v3-q8_0.ggufโ Q8_0 GGUF of the tuned modelmmproj-LFM3-VL-2B-Q8_0.ggufโ the official LiquidAI mmproj (vision tower was frozen in training, so the stock projector is the correct one)lfm3vl-unsloth-v4-q8_0.ggufโ the v4 build (below), sha256 afdda3bed24d619c00d5b32218bddb24bc3ed8e4e76a4ae21b40d9f63f69f276
v4 โ the thinking fix (2026-12-02)
v3 had a structural flaw in LM Studio chat with thinking ON: the whole answer could land inside the Thought block and stop, leaving an empty response. Root cause: this family's chat template opens a block in its generation prompt, and v3's training pairs taught answers inside that open block. v4 retrained with completions that CLOSE the think block first, plus 300 authored reasoning traces. Judged bench: v4 scored 14.0/28 (v3: 17.0) โ the think trap is cured structurally, hemp production rose 25% โ 50% and AgXQA 22 โ 23/30, but knowledge (75% โ 55%), diagnosis (66.7% โ 50%) and fresh-photo reads (3.5 โ 1.0/5) regressed. Both versions are published so the trade is inspectable; the full per-item record lives in the training-system case study.
Bench results (2026-12-02)
28-question judged bench (pass = 1, partial = 0.5), plus AgXQA-30 and a held-out 5-photo vision set (photos verified absent from all training data):
| Model | Weighted /28 | General ag | Diagnosis | Knowledge | Hemp production | AgXQA /30 | Fresh photos /5 |
|---|---|---|---|---|---|---|---|
| MiniCPM5-2B hemp-agri v5 (reference) | 20.5 | 71.4% | 72.2% | 85.0% | 25.0% | 29 | โ (text-only) |
| LFM3-VL-2B hemp-agri v3 (this model) | 17.0 | 42.9% | 66.7% | 75.0% | 25.0% | 22 raw | 3.5 |
| LFM3-VL-2B hemp-agri run 1 | 16.0 | 57.1% | 50.0% | 65.0% | 50.0% | 22 raw (โฅ26 substantive) | 1.5 |
| LFM3-VL-2B base | 15.5 | 57.1% | 66.7% | 55.0% | 0.0% | 30 | 0.5 |
| LFM3-VL-2B MLX tune (same data) | 14.5 | 28.6% | 50.0% | 75.0% | 25.0% | 23 | 1.5 |
What the fix run fixed: diagnosis rose 50.0 โ 66.7 (the interveinal-chlorosis hard fail became a partial with the correct call; the nitrogen-lead and check-before-watering items now pass), knowledge rose 65 โ 75, and photo interpretation on the held-out set jumped 1.5 โ 3.5/5 โ the best of the vision family โ from text-only differential training, with no image training at all.
Known shortcomings, on the record: general ag regressed (57.1 โ 42.9) and hemp production slipped (50 โ 25) โ a small fix batch taxes what it doesn't target. Persistent failures: fertilizer-product math (the nutrient total given as the product amount), one flat pest ID against the described signs, a white-specks item flat-called instead of worked as a differential, a seed-treatment dose, and a VPD whose conversion step is now right but whose formula still breaks. A v4 run targeting exactly these โ with a larger authored batch plus general-ag replay rows against the regression โ is in training; the bar is the reference model's 20.5.
Methodology: The Failure-Driven Training Loop โ every bench failure, shortcoming, and improvement is written up in detail and becomes the next iteration's training data.
- Downloads last month
- 826
8-bit