llmtuner.config

Sets up basic configuration for LLMTuner

Attributes

default_configinfo

Classes

LLMTunerConfig

Class to hold configuration for the LLMTuner

DictToObj

Module Contents

class llmtuner.config.LLMTunerConfig(configfilepath='', initialize=True)[source]

Class to hold configuration for the LLMTuner

codedir[source]
_create_default_folder(filepath)[source]

Creating a default folder if the folder does not exist

_read_configfile()[source]

Get the right configuration file, default configs/tunerconfig.yml

_set_datapath(datapath='')[source]

Find or create data folder, default .llmdata in the working directory, or ‘datapath’ in configuration file

_initialize_db()[source]

Initialize or find the database

_initialize_parameters()[source]

Create attributes to configuration to store interface parameters

_update_parameters(parentkey, valuedict)[source]

Update setting of parameters for a given parentkey with a dictionary of values and write to file.

get_store()[source]
write_configs()[source]

Saving current setting in the configuration to the configuration file.

_set_talkerlist()[source]

Get the available talker classes for interfacing

write_local(content, filename='')[source]

Write the file to local storage

delete_local(filepath='')[source]

Delete a file from local storage

llmtuner.config.default_configinfo[source]
class llmtuner.config.DictToObj(dictionary)[source]
to_dict()[source]