class

Speak::ModelManager

Inherits Reference / Object

Constants

CONFIG_PATH = "./speak/config.json"
MODELS_JSON = {{ (read_file("/tmp/tmp.fHIMlf/src/src/speak/models.json")).chomp }}

Constructors

new(use_case : String = "general")
Source

Instance methods

auto_select

Auto-select the best model based on hardware

Source
auto_setup

Quick setup: auto-select best model without user interaction

Source
get_compatible_models

Get models that fit in available RAM

Source
get_recommendations(limit : Int32 = 5) : Array(ModelRecommendation)

Get ranked recommendations

Source
interactive_selection

Display models to user and get selection

Source
setup

Full setup flow: detect hardware, let user pick model, write to config

Source
write_detected_to_config

Write detected hardware to config.json

Source
write_model_to_config(model : ModelInfo)

Write selected model to active section of config.json

Source