OZ
oceanz.site
HomeArticlesCheatsheetToolsExploreAbout
🇨🇳Chinese Simplified🇺🇸English
CheatsheetHugging Face

Hugging Face

Hugging Face is an open platform for AI models, datasets, and applications, serving as key distribution and collaboration infrastructure for the open-source AI ecosystem, with model discovery, downloading, and integration available through the web, APIs, and command-line tools.

1 items

hf CLI

hf is the official Hugging Face command-line tool, provided by huggingface_hub. It interacts with the Hugging Face Hub for logging in, managing repositories, and downloading models and datasets. This article covers installation, updates, hf download usage, and the difference between the default cache directory and --local-dir local directory mode.

  • Without --local-dir, files go into the HF cache directory ($HF_HOME/hub), organized as hash-named blobs plus a symlinked snapshot structure — good for deduplicating multiple versions, but not convenient to use directly;
  • With --local-dir, files are downloaded to the specified path as real files, following the original directory structure of the repository, ready to use and move around;
  • --local-dir does not create an org/name subdirectory automatically — files land directly in the given path. It is best to use a path like ~/MyFiles/models/<org>/<name>, so each model gets its own directory.
About·
Contact·
Privacy Policy·
Usage & copyright

Explore curiosity. Collect ideas. Share the value.

Created with a blend of OceanZ insight and AI assistance, including CursorChatGPTChatGPTGeminiGrokClaudeCodexCodexClaude CodeClaude CodeDeepSeek etc.

Powered by curiosity. © 2026 oceanz.site. All rights reserved.