fix: добавить доступ к ~/.cache для huggingface модели
- Добавить %HOME%/.cache в ReadWritePaths - Исправляет ошибку загрузки sentence-transformers модели - Модель уже загружена в кэше, теперь сервис сможет её использовать Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
caf9d70515
commit
359f6a66c1
|
|
@ -78,7 +78,7 @@ NoNewPrivileges=true
|
|||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
PrivateTmp=true
|
||||
ReadWritePaths=$BOT_DIR $NVM_DIR
|
||||
ReadWritePaths=$BOT_DIR $NVM_DIR /home/$BOT_USER/.cache
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ NoNewPrivileges=true
|
|||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
PrivateTmp=true
|
||||
ReadWritePaths=%WORKDIR% %HOME%/.npm-global %HOME%/.nvm %HOME%/.config/nvm
|
||||
ReadWritePaths=%WORKDIR% %HOME%/.npm-global %HOME%/.nvm %HOME%/.config/nvm %HOME%/.cache
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
Loading…
Reference in New Issue