How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "LocalAI-io/LocalAI-functioncall-phi-4-v0.3" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "LocalAI-io/LocalAI-functioncall-phi-4-v0.3",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "LocalAI-io/LocalAI-functioncall-phi-4-v0.3" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "LocalAI-io/LocalAI-functioncall-phi-4-v0.3",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Description

A model tailored to be conversational and execute function calls with LocalAI. This model is based on phi-4.

How to run

With LocalAI:

local-ai run LocalAI-functioncall-phi-4-v0.3

local-ai-banner.png

Updates

This is the third iteration of https://huggingface.co/mudler/LocalAI-functioncall-phi-4-v0.1 with improved o1 capabilities from the Open-o1 dataset.

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

Model tree for LocalAI-io/LocalAI-functioncall-phi-4-v0.3

Base model

microsoft/phi-4
Finetuned
(346)
this model
Merges
4 models
Quantizations
4 models

Datasets used to train LocalAI-io/LocalAI-functioncall-phi-4-v0.3