How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf frameprotocol/frame-intent-english
# Run inference directly in the terminal:
llama-cli -hf frameprotocol/frame-intent-english
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf frameprotocol/frame-intent-english
# Run inference directly in the terminal:
llama-cli -hf frameprotocol/frame-intent-english
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf frameprotocol/frame-intent-english
# Run inference directly in the terminal:
./llama-cli -hf frameprotocol/frame-intent-english
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf frameprotocol/frame-intent-english
# Run inference directly in the terminal:
./build/bin/llama-cli -hf frameprotocol/frame-intent-english
Use Docker
docker model run hf.co/frameprotocol/frame-intent-english
Quick Links

FRAME NL β†’ Intent Compiler (English)

This model converts natural language into structured intent JSON:

{ "intent": "string", "params": { "key": "value" } }

Important:

  • The model is NOT trusted for correctness
  • Runtime MUST enforce substring validation
  • Runtime MUST compute missing params

Example:

Input: send bob hello

Output: { "intent": "message.send", "params": { "to": "bob", "text": "hello" } }

Note: this is not perfect for a reason, frames runtime will fix it entirely over time


Run locally (llama.cpp)

Requirements: llama.cpp built (llama-cli binary available)

Example:

git clone https://huggingface.co/frameprotocol/frame-intent-english

/path/to/llama-cli \
  -m model.gguf \
  -p "send bob 5 dollars" \
  -n 100 \
  --temp 0.0

Expected output (approx):

{"intent":"payment.send","params":{"to":"bob","text":"5"}}

Run with validation (this repo):

python infer.py "send bob 5 dollars"

Expected output:

{"intent":"payment.send","params":{"to":"bob"}}

Notes:

  • Output is strict JSON only
  • Params not present in input are removed by validation

How it works

flowchart LR
    A[Natural language input] --> B[GGUF model\nllama-cli]
    B --> C[Raw JSON output]
    C --> D[Validation\ninfer.py]
    D --> E[Cleaned intent JSON]
Downloads last month
2
GGUF
Model size
0.2B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support