Text Generation
Transformers
PyTorch
English
llama
text-generation-inference
unsloth
trl
sft
conversational
How to use from
SGLangUse 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.2" \
--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.2",
"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.2
Updates
This is the second iteration of https://huggingface.co/mudler/LocalAI-functioncall-phi-4-v0.1 with added CoT (o1) capabilities from the marco-o1 dataset.
- Downloads last month
- 8
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.2" \ --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.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'