Read our release blog here: Snorkel AI Blog
108
44 commits
2 linked in READMEs
updated May 13, 2024
Read our release blog here: Snorkel AI Blog
You can try our models on the Together AI playground: https://api.together.xyz/playground/chat/snorkelai/Snorkel-Mistral-PairRM-DPO. This model is optimized for chat purposes. Have fun!
Our model is also available through Together AI API with the following model API string: snorkelai/Snorkel-Mistral-PairRM-DPO.
Special thanks to the Together AI team for adding our model to their endpoints.
We also provide an HF inference endpoint for everyone to test the model. It may initially take a few minutes to activate, but will eventually operate at the standard speed of HF's 7B model text inference endpoint. The speed of inference depends on HF endpoint performance and is not related to Snorkel offerings. This endpoint is designed for initial trials, not for ongoing production use.
import requests
API_URL = "https://t1q6ks6fusyg1qq7.us-east-1.aws.endpoints.huggingface.cloud"
headers = {
"Accept" : "application/json",
"Content-Type": "application/json"
}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "[INST] Recommend me some Hollywood movies [/INST]",
"parameters": {}
})
Training dataset: snorkelai/Snorkel-Mistral-PairRM-DPO-Dataset
We utilize ONLY the prompts from UltraFeedback; no external LLM responses used.
This overview provides a high-level summary of our approach. We plan to release more detailed results and findings in the coming weeks on the Snorkel blog.
The prompt format follows the Mistral model:
[INST] {prompt} [/INST]
Unlike our customers, who have very specific use cases to align LLMs to, the AlpacaEval 2.0 leaderboard measures the ability of LLMS to follow user instructions. With this demonstration, we focus on the general approach to alignment. Thus, we use a general-purpose reward model - the performant PairRM model. We use the Mistral-7B-Instruct-v0.2 model as our base LLM.
For interest in building your specialized internal reward models that reflect your enterprises' needs, please contact the Snorkel AI team or consider attending our Enterprise LLM Summit: Building GenAI with Your Data on January 25, 2024 to learn more about "Programmatically scaling human preferences and alignment in GenAI".
On Alpaca-Eval 2.0:
After applying the above methodology:
We recognize that the Alpaca-Eval 2.0 benchmark does not entirely capture the full range of capabilities and performances of LLMs. However, in our current work, where the goal is to align with general "human preferences," Alpaca-Eval 2.0 serves as a suitable and representative benchmark. Moving forward, we anticipate further contributions from the community regarding new alignment axes, and conduct evaluations using other appropriate benchmarks.
The Alpaca-Eval 2.0 evaluator, "gpt-4-turbo," exhibits a bias towards longer responses. This tendency might also be present in our chosen reward model, resulting in our model producing lengthier responses after DPO iterations, which can be among the factors to our higher ranks on the leaderboard. Future work could include measures to control response length and other relevant metrics.
The model is a quick demonstration that the LLMs can be programmatically aligned using smaller specialized reward models. It does not have any moderation mechanisms. We look forward to continuing to engage with the research community and our customers exploring optimal methods for getting models to respect guardrails, allowing for deployment in environments requiring moderated outputs.
Snorkel-Mistral-PairRM-DPO GGUF model version: from andrew-cartwheel or brittlewis12. ExllamaV2 quants model version: from bartowski. Thanks to the mentioned community members for providing the GGUF model versions.
Hoang Tran, Chris Glaze, Braden Hancock
If you found this work useful, feel free to cite our work:
@techreport{viethoangtranduong,
author = {Tran, Hoang and Glaze, Chris, and Hancock, Braden},
title = {Iterative DPO Alignment},
institution = {Snorkel AI},
year = {2023},
}
Read our release blog here: Snorkel AI Blog
108
44 commits
2 linked in READMEs
updated May 13, 2024
Read our release blog here: Snorkel AI Blog
You can try our models on the Together AI playground: https://api.together.xyz/playground/chat/snorkelai/Snorkel-Mistral-PairRM-DPO. This model is optimized for chat purposes. Have fun!
Our model is also available through Together AI API with the following model API string: snorkelai/Snorkel-Mistral-PairRM-DPO.
Special thanks to the Together AI team for adding our model to their endpoints.
We also provide an HF inference endpoint for everyone to test the model. It may initially take a few minutes to activate, but will eventually operate at the standard speed of HF's 7B model text inference endpoint. The speed of inference depends on HF endpoint performance and is not related to Snorkel offerings. This endpoint is designed for initial trials, not for ongoing production use.
import requests
API_URL = "https://t1q6ks6fusyg1qq7.us-east-1.aws.endpoints.huggingface.cloud"
headers = {
"Accept" : "application/json",
"Content-Type": "application/json"
}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "[INST] Recommend me some Hollywood movies [/INST]",
"parameters": {}
})
Training dataset: snorkelai/Snorkel-Mistral-PairRM-DPO-Dataset
We utilize ONLY the prompts from UltraFeedback; no external LLM responses used.
This overview provides a high-level summary of our approach. We plan to release more detailed results and findings in the coming weeks on the Snorkel blog.
The prompt format follows the Mistral model:
[INST] {prompt} [/INST]
Unlike our customers, who have very specific use cases to align LLMs to, the AlpacaEval 2.0 leaderboard measures the ability of LLMS to follow user instructions. With this demonstration, we focus on the general approach to alignment. Thus, we use a general-purpose reward model - the performant PairRM model. We use the Mistral-7B-Instruct-v0.2 model as our base LLM.
For interest in building your specialized internal reward models that reflect your enterprises' needs, please contact the Snorkel AI team or consider attending our Enterprise LLM Summit: Building GenAI with Your Data on January 25, 2024 to learn more about "Programmatically scaling human preferences and alignment in GenAI".
On Alpaca-Eval 2.0:
After applying the above methodology:
We recognize that the Alpaca-Eval 2.0 benchmark does not entirely capture the full range of capabilities and performances of LLMs. However, in our current work, where the goal is to align with general "human preferences," Alpaca-Eval 2.0 serves as a suitable and representative benchmark. Moving forward, we anticipate further contributions from the community regarding new alignment axes, and conduct evaluations using other appropriate benchmarks.
The Alpaca-Eval 2.0 evaluator, "gpt-4-turbo," exhibits a bias towards longer responses. This tendency might also be present in our chosen reward model, resulting in our model producing lengthier responses after DPO iterations, which can be among the factors to our higher ranks on the leaderboard. Future work could include measures to control response length and other relevant metrics.
The model is a quick demonstration that the LLMs can be programmatically aligned using smaller specialized reward models. It does not have any moderation mechanisms. We look forward to continuing to engage with the research community and our customers exploring optimal methods for getting models to respect guardrails, allowing for deployment in environments requiring moderated outputs.
Snorkel-Mistral-PairRM-DPO GGUF model version: from andrew-cartwheel or brittlewis12. ExllamaV2 quants model version: from bartowski. Thanks to the mentioned community members for providing the GGUF model versions.
Hoang Tran, Chris Glaze, Braden Hancock
If you found this work useful, feel free to cite our work:
@techreport{viethoangtranduong,
author = {Tran, Hoang and Glaze, Chris, and Hancock, Braden},
title = {Iterative DPO Alignment},
institution = {Snorkel AI},
year = {2023},
}