//clika-runtime/io.clika.modelverse/Modelverse/snapshot
snapshot
[common]
fun snapshot(source: String, options: LoadOptions = LoadOptions(), listener: DownloadListener? = null): Snapshot
Download, or find in the cache, the model files of source (a hub repo id, a model-page URL, or a local directory, answered as it is) and say where they rest: the one resolve clikart-cli fetch runs. The checkpoint's planning verdict runs first, so an unservable checkpoint refuses before any weight byte moves; the files land in the hub cache (LoadOptions.cacheDir, else the hub's own) under options' hub knobs (the revision, the token, the offline switch), a GGUF repository's option through LoadOptions.weights (several options and no pick refuse naming them); the family's companions fetch too, each named in the answer with its outcome. listener hears each file's progress and may stop the download. A later load of Snapshot.loadPath with offline = true runs from the cache alone. Refuses with ModelverseException carrying the hub's own code name.