Closed riedgar-ms closed 3 weeks ago
The bug
Trying to use with system(): with lm set to a Phi3 model, I got an UnsupportedRoleException. We have copied the template supplied by Phi3: https://github.com/guidance-ai/guidance/blob/325b2c87531e91993af2a3b99957cfa7fe4b5fdf/guidance/chat.py#L165 This indeed does not mention system. However: https://github.com/microsoft/Phi-3CookBook/blob/main/md/02.QuickStart/Huggingface_QuickStart.md#2-learn-about-phi-3-prompt-template
with system():
lm
system
To Reproduce
See above
System info (please complete the following information):
guidance.__version__
The phi-3 cookbook is out of date, they initially started with a system role but removed it later because the model wasn't trained for it. Latest official recommendation is to not use system prompts.
The bug
Trying to use
with system():
withlm
set to a Phi3 model, I got an UnsupportedRoleException. We have copied the template supplied by Phi3: https://github.com/guidance-ai/guidance/blob/325b2c87531e91993af2a3b99957cfa7fe4b5fdf/guidance/chat.py#L165 This indeed does not mentionsystem
. However: https://github.com/microsoft/Phi-3CookBook/blob/main/md/02.QuickStart/Huggingface_QuickStart.md#2-learn-about-phi-3-prompt-templateTo Reproduce
See above
System info (please complete the following information):
guidance.__version__
): Working from synced fork