Where are the saved presets stored? #8773
|
When I save a preset (system prompt, sampling, tools) where is it stored? Please answer for Linux, Max, and Windows. |
Replies: 1 comment
|
Not as a file per preset — they're rows in Studio's SQLite database, and the path is the same shape on all three platforms because Studio doesn't use the OS-specific config directories.
def studio_db_path() -> Path:
return studio_root() / "studio.db"and """Unsloth install root.
Priority: UNSLOTH_STUDIO_HOME, then STUDIO_HOME alias, then sys.prefix
inference, then legacy ~/.unsloth/studio. UNSLOTH_STUDIO_HOME wins if
both are set (specific signal beats generic alias).
"""with the final fallback being: return Path.home() / ".unsloth" / "studio"So unless you've set an override or are running from a venv Studio can infer a home from:
No To find yours with certainty rather than guessing which branch applied, ask the code: python -c "import sys; sys.path.insert(0,'studio/backend'); from utils.paths.storage_roots import studio_db_path; print(studio_db_path())"If that prints something under On the presets themselves: they aren't a table of their own. They go through
|
Not as a file per preset — they're rows in Studio's SQLite database, and the path is the same shape on all three platforms because Studio doesn't use the OS-specific config directories.
studio/backend/utils/paths/storage_roots.py:and
studio_root()resolves in this order:with the final fallback being:
So unless you've set an override or are running from a ven…