package kaun

  1. Overview
  2. Docs

Module Kaun_huggingface.ConfigSource

Sourcetype t = {
  1. cache_dir : cache_dir;
    (*

    Directory to cache downloaded models. Default: ~/.cache/kaun/huggingface

    *)
  2. token : string option;
    (*

    Optional HuggingFace API token for private models

    *)
  3. offline_mode : bool;
    (*

    If true, only use cached models, don't download

    *)
  4. force_download : bool;
    (*

    If true, re-download even if cached

    *)
  5. show_progress : bool;
    (*

    If true, show download progress

    *)
}
Sourceval default : t

Default configuration with sensible defaults

Sourceval from_env : unit -> t

Load configuration from environment variables:

  • KAUN_HF_CACHE_DIR
  • KAUN_HF_TOKEN
  • KAUN_HF_OFFLINE_MODE