gui.model.local_label

gui.model.local_label(model)

The run-directory label of a local run: local-<model> made safe for a path.

Parameters

Name Type Description Default
model str The model identifier, which may hold slashes and colons. required

Returns

Name Type Description
str str "local-" and the model with every run of unsafe characters replaced by a hyphen, cut to 80 characters.

Examples

from spotregen.gui.model import local_label

print(local_label("qwen/qwen3-coder-30b"))
local-qwen-qwen3-coder-30b