how to create new LLM plugin using huggingface/tra...
# ask-ai
f
how to create new LLM plugin using huggingface/transformers library
t
Thanks for reaching out, Dmitry. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! Creating a new LLM plugin using the Hugging Face Transformers library isn’t directly documented within the LiveKit ecosystem just yet, but I’m happy to guide you through some general steps based on how existing plugins are structured: • Each plugin defines a
Plugin
subclass that registers itself using
Plugin.register_plugin()
. • Plugins usually export an LLM interface with options tailored to specific model configurations. • Some workflows combine Hugging Face models with tools like
llama.cpp
, including exporting and converting models to GGUF format. A great way to get started is by exploring existing plugin repositories such as
livekit-plugins-anthropic
or
livekit-plugins-baseten
to get a feel for their structure. Also, the LiveKit Agents documentation offers helpful insights on general plugin development practices. If you’d like, I’d be more than happy to walk you through adapting an existing plugin as a starting point for your needs—just let me know! Sources: Perplexity LLM plugin guide | LiveKit Docs | plugins/google/src/index.ts | Ollama LLM plugin guide | LiveKit Docs | README.md | livekit-plugins/livekit-plugins-baseten/livekit/plugins/baseten/__init__.py