Skip to content

🚧[WIP] The Swift client for the Huggingface Hub.

License

Notifications You must be signed in to change notification settings

johnmai-dev/HuggingfaceHub

Repository files navigation

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

  • Download files from the Hub
  • Upload files to the Hub
  • Command Line Interface (CLI)
    • download
    • upload
    • repo-files
    • env
    • login
    • auth
    • repo
    • lfs-enable-largefiles
    • scan-cache
    • delete-cache
    • tag
    • version
    • upload-large-folder
  • Interact with the Hub through the Filesystem API
  • Create and manage a repository
  • Search the Hub
  • Run Inference on servers
  • Inference Endpoints
  • Interact with Discussions and Pull Requests
  • Collections
  • Manage huggingface_hub cache-system
  • Create and share Model Cards
  • Manage your Space
  • Integrate any ML framework with the Hub
  • Webhooks

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

About

🚧[WIP] The Swift client for the Huggingface Hub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published