Transformers
GGUF
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 cfahlgren1/natural-functions-GGUF:
# Run inference directly in the terminal:
llama-cli -hf cfahlgren1/natural-functions-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf cfahlgren1/natural-functions-GGUF:
# Run inference directly in the terminal:
llama-cli -hf cfahlgren1/natural-functions-GGUF:
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 cfahlgren1/natural-functions-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf cfahlgren1/natural-functions-GGUF:
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 cfahlgren1/natural-functions-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf cfahlgren1/natural-functions-GGUF:
Use Docker
docker model run hf.co/cfahlgren1/natural-functions-GGUF:
Quick Links

NaturalFunctions-7B

Mistral-7B finetuned for Function Calling

Try on Ollama

ollama run calebfahlgren/natural-functions

Examples

System Prompt

You are a helpful assistant with access to the following functions. Use them if required -

{
  "name": "create_event",
  "description": "Create a new event in the calendar",
  "parameters": {
    "type": "object",
    "properties": {
      "title": {
        "type": "string",
        "description": "The title of the event"
      },
      "date": {
        "type": "string",
        "format": "date",
        "description": "The date of the event"
      },
      "time": {
        "type": "string",
        "format": "time",
        "description": "The time of the event"
      },
      "location": {
        "type": "string",
        "description": "The location of the event (optional)"
      }
    },
    "required": [
      "title",
      "date",
      "time"
    ]
  }
}

image/png

System Prompt

You are a helpful assistant with access to the following functions. Use them if required

{
    "name": "calculate_shipping_cost",
    "description": "Calculate the shipping cost for a package",
    "parameters": {
        "type": "object",
        "properties": {
            "weight": {
                "type": "number",
                "description": "The weight of the package in kilograms"
            },
            "destination": {
                "type": "string",
                "description": "The destination address"
            }
        },
        "required": [
            "weight",
            "destination"
        ]
    }
}

image/png

Downloads last month
231
GGUF
Model size
7B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

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

Datasets used to train cfahlgren1/natural-functions-GGUF

Collection including cfahlgren1/natural-functions-GGUF