RA-FT-Optix-Food-Beverage
Version: 1
The Food & Beverage Industrial Model is a 3.8B parameters, lightweight, state-of-the-art model trained using synthetic Food & Beverage domain specific datasets that focuses on the assets, manufacturing process, troubleshooting, etc. and fine-tuned on the Phi-3-Mini-128K-instruct model used as the base model. The training dataset includes both synthetic data and filtered publicly available data, with an emphasis on high-quality and reasoning-dense properties.
The model underwent a post-training process that incorporates both supervised fine-tuning and direct preference optimization for the instruction following and safety measures. When assessed against benchmarks testing common sense, language understanding, math, code, long context and logical reasoning, this fine-tuned model did not degrade compared to its baseline performance.
Please contact Rockwell Automation for more information and to discuss your specific requirements. Contact info: microsoft@rockwellautomation.com
Model Architecture
Food & Beverage Industrial Model has 3.8B parameters and is a dense decoder-only Transformer model. The model is fine-tuned with Supervised fine-tuning (SFT) and Direct Preference Optimization (DPO) to ensure alignment with human preferences and safety guidelines.Training Datasets
The training dataset includes a wide range of books and materials:- Mixing process specific books and manuals that are processed to create Q&A pairs using GPT-4o
- Fundamentals of Mixing including flow control, hardware, chemical process, etc.
- Additional safety dataset for making the model robust against provocative questions
License
Please contact your Rockwell Automation representative to discuss options that fit your specific requirements.Tranparency/Usage Guidance
Intended Uses
Primary use cases
The model is intended to be used as a broad Food & Beverage Asset troubleshooting advisor that can answer questions related to the mixing process, fundamentals, hardware, etc. The model can also be used for training and guiding factory personnel in the Baking domain.Out-of-scope use cases
The model is not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case, particularly for high-risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case. Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines . Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.Responsible AI Considerations
Like other language models, the Phi series models can potentially behave in ways that are unfair, unreliable, or offensive. Some of the limiting behaviors to be aware of include:- Quality of Service: The Phi models are trained primarily on English text and some additional multilingual text. Languages other than English will experience worse performance as well as performance disparities across non-English. English language varieties with less representation in the training data might experience worse performance than standard American English.
- Multilingual performance and safety gaps: We believe it is important to make language models more widely available across different languages, but the Phi 3 models still exhibit challenges common across multilingual releases. As with any deployment of LLMs, developers will be better positioned to test for performance or safety gaps for their linguistic and cultural context and customize the model with additional fine-tuning and appropriate safeguards.
- Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups, cultural contexts, or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.
- Inappropriate or Offensive Content: These models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.
- Information Reliability: Language models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.
- Limited Scope for Code: Majority of Phi-3 training data is based in Python and use common packages such as "typing, math, random, collections, datetime, itertools". If the model generates Python scripts that utilize other packages or scripts in other languages, we strongly recommend users manually verify all API uses.
- Long Conversation: Phi-3 models, like other models, can in some cases generate responses that are repetitive, unhelpful, or inconsistent in very long chat sessions in both English and non-English languages. Developers are encouraged to place appropriate mitigations, like limiting conversation turns to account for the possible conversational drift
- Allocation: Models may not be suitable for scenarios that could have consequential impact on legal status or the allocation of resources or life opportunities (ex: housing, employment, credit, etc.) without further assessments and additional debiasing techniques.
- High-Risk Scenarios: Developers should assess the suitability of using models in high-risk scenarios where unfair, unreliable or offensive outputs might be extremely costly or lead to harm. This includes providing advice in sensitive or expert domains where accuracy and reliability are critical (ex: legal or health advice). Additional safeguards should be implemented at the application level according to the deployment context.
- Misinformation: Models may produce inaccurate information. Developers should follow transparency best practices and inform end-users they are interacting with an AI system. At the application level, developers can build feedback mechanisms and pipelines to ground responses in use-case specific, contextual information, a technique known as Retrieval Augmented Generation (RAG).
- Generation of Harmful Content: Developers should assess outputs for their context and use available safety classifiers or custom solutions appropriate for their use case.
- Misuse: Other forms of misuse such as fraud, spam, or malware production may be possible, and developers should ensure that their applications do not violate applicable laws and regulations.
Hardware
Note that by default, the Phi-3 Mini-128K-Instruct model uses flash attention, which requires certain types of GPU hardware to run. We have tested on the following GPU types:• NVIDIA A100
• NVIDIA A6000
• NVIDIA H100
If you want to run the model on:
• NVIDIA V100 or earlier generation GPUs: call AutoModelForCausalLM.from_pretrained() with attn_implementation="eager"
• CPU: use the GGUF quantized models 4K
• Optimized inference on GPU, CPU, and Mobile: use the ONNX models 4K
F&B domain specific benchmarking
Category | Model | Accuracy |
---|---|---|
Multiple-Choice Questions | Phi-3-mini-128K-Ins | 83.8 |
Food & Beverage Industrial Model | 88.3 | |
GPT-4o-mini | 86.4 | |
GPT-4o | 90.9 |
General benchmarking
Category | Benchmark | Phi-3-mini-128K-Ins | Food & Beverage Industrial Model |
---|---|---|---|
Popular aggregated benchmark | AGI Eval | 39.5 | 35.3 |
MMLU | 69.7 | 68.0 | |
Language Understanding | ANLI | 52.3 | 45.2 |
HellaSwag | 70.5 | 57.6 | |
Reasoning | ARC Challenge | 85.5 | 61.4 |
PIQA | 80.1 | 80.1 | |
WinoGrande | 71.0 | 73.5 | |
Math | GSM-8K | 85.3 | 73.6 |
Model Specifications
LicenseCustom
Training DataOct 2023
Last UpdatedNovember 2024
Input TypeText
Output TypeText
PublisherRockwell Automation
Languages1 Language