Error: {"error":"Warmup failed: [WinError 3] 系统找不到指定的路径。:
Error: {"error":"Warmup failed: [WinError 3] 系统找不到指定的路径。: 'C:\\Users\\Administrator\\.cache\\huggingface\\modules\\transformers_modules\\OpenMOSS_hyphen_Team\\MOSS_hyphen_TTS_hyphen_Nano\\44502f80dbf9743528fa921cc544d662c685ebec\\.cache\\huggingface\\models--OpenMOSS-Team--MOSS-TTS-Nano\\snapshots\\44502f80dbf9743528fa921cc544d662c685ebec'"}
您好, 麻烦能提供更详细的报错信息吗
哥们和我下的同一个吧,也是报这个错
..我也是这样的。。。AI说要禁用符号链接,正在尝试。。
2026-04-16 20:03:09,299 WARNING huggingface_hub.file_download: Xet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: pip install huggingface_hub[hf_xet] or pip install hf_xet
model-00001-of-00001.safetensors: 100%|████████████████████████████████████████████| 87.9M/87.9M [01:30<00:00, 976kB/s]
tokenizer_config.json: 1.14kB [00:00, ?B/s]
tokenization_moss_tts_nano.py: 3.56kB [00:00, ?B/s]
2026-04-16 20:04:42,119 WARNING root: discarding loaded Nano-TTS audio tokenizer state: inference failed; reloading audio tokenizer on next request
2026-04-16 20:04:42,119 WARNING root: discarding loaded Nano-TTS model state: inference failed; reloading checkpoint on next request
2026-04-16 20:04:42,119 ERROR root: Nano-TTS warmup failed
Traceback (most recent call last):
File "F:\ai\MOSS-TTS-Nano-main\MOSS-TTS-Nano-main\app.py", line 218, in _run
result = self.runtime.warmup()
^^^^^^^^^^^^^^^^^^^^^
File "F:\ai\MOSS-TTS-Nano-main\MOSS-TTS-Nano-main\moss_tts_nano_runtime.py", line 770, in warmup
return self.synthesize(
^^^^^^^^^^^^^^^^
File "F:\ai\MOSS-TTS-Nano-main\MOSS-TTS-Nano-main\moss_tts_nano_runtime.py", line 547, in synthesize
result = model.inference(
^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "F:\hf_cache\modules\transformers_modules\OpenMOSS_hyphen_Team\MOSS_hyphen_TTS_hyphen_Nano\44502f80dbf9743528fa921cc544d662c685ebec\modeling_moss_tts_nano.py", line 2290, in inference
text_tokenizer = self._load_text_tokenizer(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\hf_cache\modules\transformers_modules\OpenMOSS_hyphen_Team\MOSS_hyphen_TTS_hyphen_Nano\44502f80dbf9743528fa921cc544d662c685ebec\modeling_moss_tts_nano.py", line 1172, in _load_text_tokenizer
tokenizer = self._load_resolved_text_tokenizer(resolved_path=resolved_path, cache_dir=cache_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\hf_cache\modules\transformers_modules\OpenMOSS_hyphen_Team\MOSS_hyphen_TTS_hyphen_Nano\44502f80dbf9743528fa921cc544d662c685ebec\modeling_moss_tts_nano.py", line 1095, in _load_resolved_text_tokenizer
return AutoTokenizer.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\transformers\models\auto\tokenization_auto.py", line 1122, in from_pretrained
tokenizer_class = get_class_from_dynamic_module(class_ref, pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\transformers\dynamic_module_utils.py", line 604, in get_class_from_dynamic_module
final_module = get_cached_module_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\transformers\dynamic_module_utils.py", line 406, in get_cached_module_file
resolved_module_file = cached_file(
^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\transformers\utils\hub.py", line 322, in cached_file
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\transformers\utils\hub.py", line 567, in cached_files
raise e
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\transformers\utils\hub.py", line 479, in cached_files
hf_hub_download(
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\huggingface_hub\file_download.py", line 1014, in hf_hub_download
return _hf_hub_download_to_cache_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\huggingface_hub\file_download.py", line 1188, in _hf_hub_download_to_cache_dir
_create_symlink(blob_path, pointer_path, new_blob=True)
File "F:\AI\Anaconda3\envs\moss-tts-nano\Lib\site-packages\huggingface_hub\file_download.py", line 738, in _create_symlink
os.symlink(src_rel_or_abs, abs_dst)
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: '..\..\blobs\d0a5e1e1201934f9c71595eab33238b8b2307295' -> 'F:\hf_cache\modules\transformers_modules\OpenMOSS_hyphen_Team\MOSS_hyphen_TTS_hyphen_Nano\44502f80dbf9743528fa921cc544d662c685ebec\.cache\huggingface\models--OpenMOSS-Team--MOSS-TTS-Nano\snapshots\44502f80dbf9743528fa921cc544d662c685ebec\tokenization_moss_tts_nano.py'
您好, 麻烦能提供更详细的报错信息吗
看一下上面贴的,一样的问题,谢谢。
您好,可以直接把模型仓库下载到一个较短的本地路径,然后让 app.py 从本地目录加载,这样可以绕开默认 Hugging Face 缓存路径过深的问题。
例如在 Windows 下,可以先安装 Hugging Face CLI:
pip install -U huggingface_hub
然后把两个模型仓库直接下载到较短路径,例如:
hf download OpenMOSS-Team/MOSS-TTS-Nano --local-dir F:\hf\models\MOSS-TTS-Nano hf download OpenMOSS-Team/MOSS-Audio-Tokenizer-Nano --local-dir F:\hf\models\MOSS-Audio-Tokenizer-Nano
下载完成后,直接用本地目录启动:
python app.py --checkpoint-path F:\hf\models\MOSS-TTS-Nano --audio-tokenizer-path F:\hf\models\MOSS-Audio-Tokenizer-Nano
经过折腾修改一下地方可以顺利运行 1 在终端先设置短的环境变量
set HF_HOME=D:\hf
2 win10, win11 系统开启开发者模式 3 python app.py 运行下载模型跑完后报错, 终止程序 4 修改代码D:\hf\modules\transformers_modules\OpenMOSS_hyphen_Team\MOSS_hyphen_TTS_hyphen_Nano\44502f80dbf9743528fa921cc544d662c685ebec\modeling_moss_tts_nano.py
@staticmethod
def _resolve_hf_cache_dir() -> str:
#cache_dir = Path(__file__).resolve().parent / ".cache" / "huggingface"
#cache_dir.mkdir(parents=True, exist_ok=True)
#return str(cache_dir)
from huggingface_hub.constants import HF_HUB_CACHE
return HF_HUB_CACHE
@staticmethod
def _patch_hf_dynamic_module_cache_dir(cache_dir: str) -> None:
#import transformers.dynamic_module_utils as dynamic_module_utils
#modules_cache_dir = str(Path(cache_dir) / "modules")
#Path(modules_cache_dir).mkdir(parents=True, exist_ok=True)
#os.environ["HF_MODULES_CACHE"] = modules_cache_dir
#dynamic_module_utils.HF_MODULES_CACHE = modules_cache_dir
pass
5 再次运行 python app.py