# 为 DiscourseAI 自托管情感与情绪分析

**URL:** <https://meta.discourse.org/t/self-hosting-sentiment-and-emotion-for-discourseai/334451>\
**Category:** Self-Hosting\
**Tags:** ai, ai-sentiment\
**Created:** [2024年十一月4日 17:56 UTC](https://meta.discourse.org/t/self-hosting-sentiment-and-emotion-for-discourseai/334451 "2024-11-04T17:56:42Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![NotAnonymous](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@NotAnonymous](https://meta.discourse.org/u/NotAnonymous)\
**Post date:** [2026年五月12日 20:49 UTC](https://meta.discourse.org/t/self-hosting-sentiment-and-emotion-for-discourseai/334451/14 "2026-05-12T20:49:44Z")

</div>

我尝试设置自托管的情感分析服务，但在运行 Docker 镜像时遇到了错误：

```plaintext
0: request error: HTTP status client error (404 Not Found) for url (https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest/resolve/main/tokenizer.json)
1: HTTP status client error (404 Not Found) for url (https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest/resolve/main/tokenizer.json)

```

我使用的命令是：`docker run --rm --shm-size 1g -p 8083:80 -v /opt/tei-sentiment-cache:/data ghcr.io/huggingface/text-embeddings-inference:cpu-1.9 --model-id cardiffnlp/twitter-roberta-base-sentiment-latest`

这是否意味着该模型在没有 GPU 支持的情况下无法运行，还是设置方法发生了变化？

---

_[View the full topic](https://meta.discourse.org/t/self-hosting-sentiment-and-emotion-for-discourseai/334451)._
