Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phi3无法按照system prompt执行任务 #10

Open
Raymoi opened this issue May 7, 2024 · 2 comments · May be fixed by #15
Open

phi3无法按照system prompt执行任务 #10

Raymoi opened this issue May 7, 2024 · 2 comments · May be fixed by #15

Comments

@Raymoi
Copy link

Raymoi commented May 7, 2024

SCR-20240507-pixp

按照默认的工作流生成图片时,给出的文本只有中文

When generating images according to the default workflow, the text given is in Chinese only

image

如果将原提示词换为英文,会生成较长的无用的内容

If the original prompt is replaced with English, it generates longer and useless content

一开始部署时Phi3是正常运行的,输入中文也能给出英文的提示词,自从清除过一次.cache文件夹以后,再重新下载运行就变成这样的故障状态,请问有办法修复吗?尝试过重置节点和更新整个节点都没办法解决
Phi3 was running normally when deployed at the beginning, and could give English prompts when typing in Chinese, but after clearing the .cache folder once, and then re-downloading and running again, it becomes such a faulty state, is there any way to fix it? I've tried resetting the node and updating the whole node but it doesn't work.

@0filler
Copy link

0filler commented Jun 10, 2024

SCR-20240507-pixp 按照默认的工作流生成图片时,给出的文本只有中文

When generating images according to the default workflow, the text given is in Chinese only

image 如果将原提示词换为英文,会生成较长的无用的内容

If the original prompt is replaced with English, it generates longer and useless content

一开始部署时Phi3是正常运行的,输入中文也能给出英文的提示词,自从清除过一次.cache文件夹以后,再重新下载运行就变成这样的故障状态,请问有办法修复吗?尝试过重置节点和更新整个节点都没办法解决 Phi3 was running normally when deployed at the beginning, and could give English prompts when typing in Chinese, but after clearing the .cache folder once, and then re-downloading and running again, it becomes such a faulty state, is there any way to fix it? I've tried resetting the node and updating the whole node but it doesn't work.

system_instruction失效,暂时解决方法为直接在prompt处填写以下内容:

You are creating a prompt for Stable Diffusion to generate an image. First step: understand the input and generate a text prompt for the input. Second step: only respond in English with the prompt itself in phrase without quotes, but embellish it as needed but keep it under 200 tokens.

酷炫的兰博基尼飞驰在旷野上,风景优美,四季风光,专业镜头,广告片,夕阳

without quotes是我添加的,以免提示词带引号。经测试,phi3对这句话中的兰博基尼一词识别较差,改为lamborghini可正常出图。

@dishuostec dishuostec linked a pull request Jun 13, 2024 that will close this issue
@dishuostec
Copy link

I have created a pr #15.
image

Use this SYSTEM prompt:

You are creating a prompt for Stable Diffusion to generate an image. First step: understand the input and generate a text prompt for the input. Second step: only respond in English with the prompt itself in phrase without quotes, but embellish it as needed but keep it under 200 tokens.

酷炫的兰博基尼飞驰在旷野上,风景优美,四季风光,专业镜头,广告片,夕阳

without quotes是我添加的,以免提示词带引号。经测试,phi3对这句话中的兰博基尼一词识别较差,改为lamborghini可正常出图。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants