klyn.genai.hub.HubClient.resolveFormat
method
public static resolveFormat(repository as String, format as ModelFormat = ModelFormat.AUTO, revision as String = "main", offline as Boolean = false, token as String = "") as ModelFormat
Description

Resolves a physical container, not an architecture or execution capability. Complete local snapshots avoid a network call; offline mode never connects. Without a complete cached snapshot, AUTO prefers published Safetensors.

Parameters
ParameterDescription
repositoryHF owner/name. @param format Explicit container or AUTO.
revisionBranch/tag/commit. @param offline Use existing complete cache.
tokenOptional Hub token. @return Available selected container.
Throws
  • IOException for missing offline assets/network errors; NotSupportedException if neither supported container is published.
Example

format = HubClient.resolveFormat("Qwen/Qwen3-ASR-0.6B")