- _pclose
int _pclose(FILE* stream)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- _popen
FILE* _popen(char* cmd, char* mode)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- download
void download(string url, string fileName, string token)
Undocumented in source. Be warned that the author may not have intended to support it.
- downloadFile
int downloadFile(string repo, string filename, string outDir, string token)
Undocumented in source. Be warned that the author may not have intended to support it.
- envGet
string envGet(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- extractGgufFiles
GgufFile[] extractGgufFiles(string json)
Undocumented in source. Be warned that the author may not have intended to support it.
- extractJsonString
string extractJsonString(string json, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- fmtBytes
const(char)* fmtBytes(ulong n)
Undocumented in source. Be warned that the author may not have intended to support it.
- getenv
char* getenv(char* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- hasJsonKey
bool hasJsonKey(string json, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- httpGet
string httpGet(string url, string token)
Undocumented in source. Be warned that the author may not have intended to support it.
- humanBytes
string humanBytes(ulong n)
Undocumented in source. Be warned that the author may not have intended to support it.
- insertionSort
void insertionSort(GgufFile[] arr)
Undocumented in source. Be warned that the author may not have intended to support it.
- listGgufFiles
int listGgufFiles(string repo, string token)
Undocumented in source. Be warned that the author may not have intended to support it.
- main
int main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
- printFileList
void printFileList(GgufFile[] files, int maxLen)
Undocumented in source. Be warned that the author may not have intended to support it.
- printUsage
int printUsage(string prog)
Undocumented in source. Be warned that the author may not have intended to support it.
Download GGUF files from HuggingFace Hub.
Without -f, lists .gguf files with sizes. With -f, downloads with a progress bar. Auth: -t token or HF_TOKEN env var (private repos / higher rate limits).
Usage: hf-download -r owner/repo [-f file] [-o outdir] [-t token]