conda remove --name extras --all and reinstall using the instructions below.A set of APIs for various SillyTavern extensions.
You need to run the latest version of SillyTavern. Grab it here: How to install, Git repository
All modules, except for Stable Diffusion, run on the CPU by default. However, they can alternatively be configured to use CUDA (with --cuda command line option). When running all modules simultaneously, you can expect a usage of approximately 6 GB of RAM. Loading Stable Diffusion adds an additional couple of GB to the memory usage.
Some modules can be configured to use CUDA separately from the rest (e.g. --talkinghead-gpu, --coqui-gpu command line options). This is useful in low-VRAM setups, such as on a gaming laptop.
Try on Colab (will give you a link to Extras API):
Colab link: https://colab.research.google.com/github/SillyTavern/SillyTavern/blob/release/colab/GPU.ipynb
Documentation: https://docs.sillytavern.app/
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects
Installing the chromadb package requires one of the following:
conda install -c conda-forge hnswlib:exclamation: IMPORTANT! The chromadb package is used only by the chromadb module for the old Smart Context extension, which is deprecated. You will likely not need it.
You must specify a list of module names to be run in the --enable-modules command (caption provided as an example). See Modules section.
### SillyTavern Extensions LINK ### titleenableExtensions to true in config.confThere are some folks in the community having success running Extras on their phones via Ubuntu on Termux. This project wasn't made with mobile support in mind, so this guide is provided strictly for your information only: https://rentry.org/STAI-Termux#downloading-and-running-tai-extras
We will NOT provide any support for running Extras on Android. Direct all your questions to the creator of the guide linked above.
PREREQUISITES * Install Miniconda: https://docs.conda.io/en/latest/miniconda.html * (Important!) Read how to use Conda: https://conda.io/projects/conda/en/latest/user-guide/getting-started.html * Install git: https://git-scm.com/downloads
EXECUTE THESE COMMANDS ONE BY ONE IN THE CONDA COMMAND PROMPT.
TYPE/PASTE EACH COMMAND INTO THE PROMPT, HIT ENTER AND WAIT FOR IT TO FINISH!
extras):conda create -n extras
conda activate extras
conda install python=3.11
conda install git
git clone https://github.com/SillyTavern/SillyTavern-extras
cd SillyTavern-extras
pip install -r requirements.txt
python server.py --enable-modules=caption,summarize,classify
http://localhost:5100.const enableExtensions". Make sure that line has "= true", and not "= false".conda activate extras
python server.py
Installation requirements for Talkinghead changed in January 2024. The live mode - i.e. the talkinghead module that powers the Talkinghead mode of Character Expressions - no longer needs any additional packages.
However, a manual poser app has been added, serving two purposes. First, it is a GUI editor for the Talkinghead emotion templates. Secondly, it can batch-generate static emotion sprites from a single Talkinghead image. The latter can be convenient if you want the convenience of AI-powered posing (e.g. if you make new characters often), but don't want to run the live mode.
The manual poser app, and only that app, still requires the installation of an additional package that is not installed automatically due to incompatibility with Colab. If you want to be able to use the manual poser app, then run this after you have installed other requirements:
conda activate extras
pip install wxpython==4.2.1
The installation of the wxpython package can easily take half an hour on a fast CPU, as it needs to compile a whole GUI toolkit.
More information about Talkinghead can be found in its full documentation.
git clone https://github.com/SillyTavern/SillyTavern-extras
cd SillyTavern-extras
python -m pip install -r requirements.txtpython server.py --enable-modules=caption,summarize,classifyhttp://localhost:5100 if you run locally.enableExtensions to true in config.conf| Name | Used by | Description |
|---|---|---|
caption |
Image captioning | |
chromadb |
Smart Context | Vector storage server |
classify |
Character Expressions | Text sentiment classification |
coqui-tts |
Coqui TTS server | |
edge-tts |
Microsoft Edge TTS client | |
embeddings |
Vector Storage | The Extras vectorization source |
rvc |
Real-time voice cloning | |
sd |
Stable Diffusion image generation (remote A1111 server by default) | |
silero-tts |
Silero TTS server | |
summarize |
Summarize | The Extras API backend |
talkinghead |
Character Expressions | AI-powered character animation (see full documentation) |
websearch |
Websearch | Google or DuckDuckGo search using Selenium headless browser |
classify and talkinghead.classify updates the expression of the AI character's avatar automatically based on text sentiment analysis.talkinghead provides AI-powered character animation. It also takes its expression from the Extras classify.classify must be enabled in Extras.embeddings module makes the ingestion performance comparable with ChromaDB, as it uses the same vectorization backend.summarize module is only used when you summarize with the Extras API. It uses a specialized BART summarization model, with a context size of 1024.| Flag | Description |
|---|---|
--enable-modules |
Required option. Which modules to enable. |
Expects a comma-separated list of module names. Ordering does not matter. See Modules
Example: --enable-modules=caption,sd |
| --port | Specify the port on which the application is hosted. Default: 5100 |
| --listen | Host the app on the local network |
| --share | Share the app on CloudFlare tunnel |
| --secure | Adds API key authentication requirements. Highly recommended when paired with share! |
| --cpu | Run the models on the CPU instead of CUDA. Enabled by default. |
| --mps or --m1 | Run the models on Apple Silicon. Only for M1 and M2 processors. |
| --cuda | Use CUDA (GPU+VRAM) to run modules if it is available. Otherwise, falls back to using CPU. |
| --cuda-device | Specifies a CUDA device to use. Defaults to cuda:0 (first available GPU). |
| --talkinghead-gpu | Use CUDA (GPU+VRAM) for Talkinghead. Highly recommended, 10-30x FPS increase in animation. |
| --talkinghead-model | Load a specific variant of the THA3 AI poser model for Talkinghead.
Default: auto (which is separable_half on GPU, separable_float on CPU). |
| --talkinghead-models | If the THA3 AI poser models are not yet installed, downloads and installs them.
Expects a HuggingFace model ID.
Default: OktayAlpk/talking-head-anime-3 | | `--coqui-gpu
$ claude mcp add SillyTavern-Extras \
-- python -m otcore.mcp_server <graph>