
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
本Docker镜像封装了succinctly/text2image-prompt-generator模型,是一款专注于生成文本到图像任务提示词的文本生成工具。它支持本地部署、GPU加速和参数自定义,帮助用户高效创建高质量提示词。
bashdocker pull docker.xuanyuan.run/bytez/succinctly_text2image-prompt-generator
bashdocker run -it \ -e KEY=你的Bytez API密钥 \ -e PORT=8000 \ -p 8000:8000 \ bytez/succinctly_text2image-prompt-generator
bashdocker run -it \ -e KEY=你的Bytez API密钥 \ -e PORT=80 \ -p 80:80 \ bytez/succinctly_text2image-prompt-generator
bashdocker run -it \ -v /本地缓存目录:/server/model \ -e HF_HOME=/server/model \ -e KEY=你的Bytez API密钥 \ -p 8000:8000 \ -e PORT=8000 \ bytez/succinctly_text2image-prompt-generator
bashdocker run -it \ --gpus all \ -e KEY=你的Bytez API密钥 \ -p 8000:8000 \ -e PORT=8000 \ bytez/succinctly_text2image-prompt-generator
bashdocker run -it \ --gpus all \ -v /本地缓存目录:/server/model \ -e HF_HOME=/server/model \ -e KEY=你的Bytez API密钥 \ -p 8000:8000 \ -e PORT=8000 \ bytez/succinctly_text2image-prompt-generator
发送POST请求获取提示词:
bashcurl --location 'http://0.0.0.0:8000/run' \ --header 'Content-Type: application/json' \ --data-raw '{ "text": "Once upon a time there was a ", "stream": false, "params": { "max_new_tokens": 50, "temperature": 1.3, "top_p": 1.2 } }'
设置"stream": true可接收流式响应。
DEVICE: 指定运行设备,可选值为auto(默认,自动选择GPU/CPU)、cuda(强制GPU)、cpu(强制CPU)。max_length: 生成序列的最大长度(默认20)。max_new_tokens: 新增tokens的最大数量(忽略提示词长度)。min_length: 生成序列的最小长度(默认0)。min_new_tokens: 新增tokens的最小数量(忽略提示词长度)。do_sample: 是否启用采样(默认False,使用贪心解码)。num_beams: Beam搜索的beam数量(默认1)。use_cache: 是否启用缓存加速解码(默认True)。温度、top_k、top_p等更多参数可参考https://github.com/huggingface/transformers/blob/v4.38.2/src/transformers/generation/configuration_utils.py。 ===END===
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务