Load and Serve Models Locally
Spice supports loading and serving LLMs from various sources for embeddings and inference, including local filesystems and Hugging Face.
Example: Loading a LLM from Hugging Face​
models:
- name: llama_3.2_1B
from: huggingface:huggingface.co/meta-llama/Llama-3.2-1B
params:
huggingface_token: ${ secrets:HF_TOKEN } # `huggingface_token` on v2.2.x; `hf_token` from v2.3.0
Filesystem​
Models can be hosted on a local filesystem and referenced directly in the configuration. For more details, see the Filesystem Model Component.
Hugging Face​
Spice integrates with Hugging Face, enabling you to use a wide range of pre-trained models. For more information, see the Hugging Face Model Component.
