Windows PowerShell 版权所有(C) Microsoft Corporation。保...
Создано: 10 июля 2026 г.
Отвечено с использованием GPT-5.6 Thinking от Chat01
Создано: 10 июля 2026 г.
Отвечено с использованием GPT-5.6 Thinking от Chat01
Windows PowerShell
版权所有(C) Microsoft Corporation。保留所有权利。
安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows
PS C:\Users\玛儿跑呀\Desktop> hf download openai-community/gpt2-medium 自动下载到哪里啦
默认不会下载到当前桌面目录,而是进入 Hugging Face 的缓存文件夹:
textC:\Users\玛儿跑呀\.cache\huggingface\hub\models--openai-community--gpt2-medium\snapshots\<版本哈希>\
可以在 PowerShell 中直接打开:
powershellexplorer "$env:USERPROFILE\.cache\huggingface\hub\models--openai-community--gpt2-medium"
查看具体文件:
powershellGet-ChildItem "$env:USERPROFILE\.cache\huggingface\hub\models--openai-community--gpt2-medium\snapshots" -Recurse
Hugging Face 默认将模型仓库缓存到 ~/.cache/huggingface/hub;若设置过 HF_HOME 或 HF_HUB_CACHE,位置可能不同。(Hugging Face)
可以检查是否改过路径:
powershell$env:HF_HOME $env:HF_HUB_CACHE
下次想直接下载到桌面的普通文件夹,可用:
powershellhf download openai-community/gpt2-medium --local-dir "$PWD\gpt2-medium"
这样模型会位于:
textC:\Users\玛儿跑呀\Desktop\gpt2-medium