ZHO-ZHO-ZHO / ComfyUI-Phi-3-mini

Using Phi-3-mini in ComfyUI
GNU General Public License v3.0
197 stars 16 forks source link

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

Open Raymoi opened 5 months ago

Raymoi commented 5 months ago
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 commented 4 months ago
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 commented 4 months ago

I have created a pr https://github.com/ZHO-ZHO-ZHO/ComfyUI-Phi-3-mini/pull/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可正常出图。