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-Llama3-8b-Function-Call-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-Llama3-8b-Function-Call-v0.2",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'Quick Links
LocalAI-Llama3-8b-Function-Call-v0.2
NEW!!!
Check the latest model series: https://huggingface.co/mudler/LocalAI-functioncall-phi-4-v0.3
OpenVINO: https://huggingface.co/fakezeta/LocalAI-Llama3-8b-Function-Call-v0.2-ov-int8
GGUF: https://huggingface.co/mudler/LocalAI-Llama3-8b-Function-Call-v0.2-GGUF
This model is a fine-tune on a custom dataset + glaive to work specifically and leverage all the LocalAI features of constrained grammar.
Specifically, the model once enters in tools mode will always reply with JSON.
To run on LocalAI:
local-ai run huggingface://mudler/LocalAI-Llama3-8b-Function-Call-v0.2-GGUF/localai.yaml
If you like my work, consider up donating so can get resources for my fine-tunes!
- Downloads last month
- 5


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-Llama3-8b-Function-Call-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-Llama3-8b-Function-Call-v0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'