-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add model_prompt
config param for LLMBlock
#141
Conversation
I've added commit 2ff97ba to allow |
Our intiial pipeline configuration is version `1.0`. We haven't actually released anything yet, but I think it would be good to go ahead and get in the habit of managing this verison number as we make additions. Create a doc where we can keep a list of what changed at each version bump. Signed-off-by: Russell Bryant <[email protected]>
We previously always set the model prompt based on the model family. We have some cases where we'd like to override this default behavior explicitly as part of pipeline configuration. This parameter will do that. Signed-off-by: Russell Bryant <[email protected]>
Add a test case that ensures that passing `model_prompt` as an empty string results in `self.model_prompt` as empty. If this parameter is not specified (is None), `self.model_prompt` should be a non-empty string as a result of our default behavior of picking a prompt based on the model family. Signed-off-by: Russell Bryant <[email protected]>
An anticipated use case for model_prompt is simply to disable this additional prompt. Currently the pipeline author would need to specify model_prompt="{prompt}" to achieve this. Make this easier by allowing model_prompt="" to have this meaning Signed-off-by: Mark McLoughlin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes @markmc added lgtm
|
||
## Pipeline Configuration Schema | ||
|
||
A schema for validating pipeline configuration can be found in [`src/instructlab/sdg/pipelines/schema/v1.json`](../src//instructlab/sdg/pipelines/schema/v1.json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
double "/"'s in path name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
…sign-doc Add design doc for training to explain accelerate inclusion for FSDP
Closes #136
2363dfe docs: Add a doc to track pipeline config version history
87871d3 llmblock: add
model_prompt
config parameter4f042ae Add test case for LLMBlock model_prompt parameter
7045456 llmblock: allow model_prompt=""
commit 2363dfe
Author: Russell Bryant [email protected]
Date: Mon Jul 15 14:35:26 2024 -0400
commit 87871d3
Author: Russell Bryant [email protected]
Date: Mon Jul 15 14:40:18 2024 -0400
commit 4f042ae
Author: Russell Bryant [email protected]
Date: Mon Jul 15 14:57:32 2024 -0400
commit 7045456
Author: Mark McLoughlin [email protected]
Date: Mon Jul 15 23:56:10 2024 +0100