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-llama3.2-1b-v0.4" \
    --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-llama3.2-1b-v0.4",
		"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-llama3.2-1b-v0.4" \
        --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-llama3.2-1b-v0.4",
		"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 llama3.2 (1B).

How to run

With LocalAI:

local-ai run LocalAI-functioncall-llama3.2-1b-v0.4

local-ai-banner.png

Updates

This is the 4th iteration based on llama3.2 1B

Downloads last month
9
Safetensors
Model size
1B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with LocalAI-io/LocalAI-functioncall-llama3.2-1b-v0.4.

Model tree for LocalAI-io/LocalAI-functioncall-llama3.2-1b-v0.4

Quantizations
1 model