johnmai-dev / HuggingfaceHub

🚧[WIP] The Swift client for the Huggingface Hub.
MIT License
1 stars 0 forks source link

Swift HuggingfaceHub

The Swift client for the Huggingface Hub.

Swift Package to implement a huggingface_hub API in Swift.

Features [🚧 WIP]

huggingface_hub Documentation (Python): https://huggingface.co/docs/huggingface_hub

Swift Package Manager

let package = Package(
  dependencies: [
      .package(url: "https://github.com/johnmai-dev/HuggingfaceHub.git", from: "main")
  ],
  targets: [
      .target(name: "YourTarget", dependencies: ["HuggingfaceHub"])
  ]
)

Command Line Interface (CLI)

Build the CLI

swift build -c release

# Or Makefile command
# make build-release

cli executable will be located in .build/release/huggingface-cli

Usage

Scan Cache

huggingface-cli scan-cache