Think of Experiments as a preview of what's to come. These projects are still under development, but we wanted to let the open-source community take them for spin! Use them, break them, and help us build what's next for Granite – we'll keep an eye out for feedback and questions in the Community section. Happy exploring!
Granite 3.2 8b Instruct - Requirement Checker is an Activated LoRA (aLoRA) adapter for ibm-granite/granite-3.2-8b-instruct, adding the capability to check if specified requirements were satisfied by the last model generation. Only one requirement is checked at a time (but can be checked in parallel).
This is an experimental aLoRA testing new functionality being developed for IBM's Granite LLM family. We are welcoming the community to test it out and give us feedback, but we are NOT recommending this model be used for real deployments at this time. Stay tuned for more updates on the Granite roadmap.
Usage steps Given a generation task and a set of requirements:
Use the base model to generate a response as normal (via the assistant role), with the prompt describing the task followed by "Requirements:"" and the list of active requirements.
Repeat the requirement to be checked.
The Requirement Checker model will respond with "Y" or "N", where "Y" means the requirement is satisfied. Note, any additional text after the "Y/N" can be ignored. You can curb additional generation by setting "max token length" = 1.
Note that two generation options are shown - one illustrating the KV cache reuse ability of aLoRA (faster), and another showing the simplest generation call (slower).
The Granite Requirement Checker 3.2 8b model is an aLoRA adapter finetuned to check whether the specified requirement was satisfied by the last assisstant turn generation.