Getting started
Configuration
In order to set up LLMTuner, call the LLMTuner configuration class:
from llmtuner.config import LLMTunerConfig
configs = LLMTunerConfig(filepath)
Per default, this creates a hidden folder /.llmtuner in the local working directory, or you can pass an existing folder as filepath
argument. If the folder already exists, it is loaded.
A default configuration file tunerconfig.yml
is placed in the folder to hold relevant paths, URLs and access keys. You can either manually edit this file or change configuration values by directly setting them in the configuration class, and also store them again to file.
configs = LLMTunerConfig()
configs.anyllm_api_key = "YOUR-API-KEY"
configs.anyllm_api_url = "http://your-anythingllm-instance.com/api/v1/"
configs.write_configs()