Opsmo.HF (opsmo v0.3.7)

Summary

Functions

download!(model_name, opts \\ [])

Downloads model files from HuggingFace.

Parameters

  • name: The model name on HuggingFace (e.g., "crpm")
  • opts: Keyword list of options
    • :branch - The branch to download from (default: "main")

Example

# Download from main branch
Opsmo.HF.download!("crpm")

# Download from specific branch
Opsmo.HF.download!("crpm", branch: "dev")

download_file(filename, model_name, dest_path, branch)