You could use llmstudio or ollama for that.
Viewing post in Support for small LLM/AI
i tested some python libs in cave like numpy, pandas, json and worked on my computer but you need to place the libs on the cave lib folder and they need to match the python version built in cave engine. It´s not a simple task because these libs have other libs as reference and these libs need to match the cave python version.