This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR | |
#define INPUT_BYTES_PER_SAMPLE sizeof(SInt16) | |
#define AU_IO_COMPONENT kAudioUnitSubType_RemoteIO | |
#define AU_DEFAULT_COMPONENT AU_IO_COMPONENT | |
#elif TARGET_OS_MAC | |
#define INPUT_BYTES_PER_SAMPLE sizeof(Float32) | |
#define AU_IO_COMPONENT kAudioUnitSubType_HALOutput | |
#define AU_DEFAULT_COMPONENT kAudioUnitSubType_DefaultOutput | |
#endif |
Considering the lack of multi-threaded download support in the official huggingface-cli
, and the inadequate error handling in hf_transfer
, this command-line tool smartly utilizes wget
or aria2
for LFS files and git clone
for the rest.
- ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
- 🚀 Multi-threaded Download: Utilize multiple threads to speed up the download process.
- 🚫 File Exclusion: Use
--exclude
or--include
to skip or specify files, save time for models with duplicate formats (e.g.,*.bin
or*.safetensors
). - 🔐 Auth Support: For gated models that require Huggingface login, use
--hf_username
and--hf_token
to authenticate. - 🪞 Mirror Site Support: Set up with
HF_ENDPOINT
environment variable.