--- base_model: - microsoft/Phi-3.5-mini-instruct language: - en license: apache-2.0 tags: - text-generation-inference - mircosoft - phi-3.5-mini-instruct - law - contracts - mergers&acquisitions - unsloth - trl - sft --- # Phi-3.5-Law ## Model Summary **Model Name:** Phi-3.5-Law **Model Type:** Text Generation **Hugging Face Model ID:** DanielShaw98/phi-3.5-law **Phi-3.5-Law** is a specialised model for processing merger and acquisition (M&A) contracts. It is fine-tuned from the `microsoft/Phi-3.5-mini-instruct` model and designed to assist lawyers in identifying specific clauses within contracts. The model is built on the Phi-3 architecture, which focuses on high-quality, reasoning-dense data. **Developed by:** DanielShaw98 **License:** Apache-2.0 **Finetuned from model:** `microsoft/Phi-3.5-mini-instruct` ## Intended Uses ### Primary Use Cases The Phi-3.5-Law model is intended for use in legal and contract analysis applications, where it helps in: - Identifying specific clauses in M&A contracts - Providing explanations and details about these clauses The model is useful for legal professionals who need to quickly locate and understand relevant contract clauses. ### Use Case Considerations While the model aims to provide accurate results, it may occasionally produce inaccuracies. The AI tool should not be considered legal advice or a substitute for professional judgement. Users should carefully review and verify the results before making any legal decisions or actions. ## Usage Instructions ### Environment: Google Colab This model is designed to run in a **Google Colab environment**. Due to the significant hardware requirements and configurations necessary for optimal performance, it is **not recommended** to run the model locally. Google Colab's powerful infrastructure is well-suited to handle the resource demands of the model, ensuring accurate and reliable results. Attempting to run the model in a local environment could result in suboptimal performance, including possible errors or incomplete outputs, due to hardware limitations. ### Work in Progress Please note that this model is still a **work in progress**, and ongoing improvements are being made. While it performs well in Google Colab, further refinements and updates will be released to enhance the model's capabilities. Be sure to check back for updates or follow the repository for any changes. ## Disclaimer This AI tool is designed to assist lawyers in identifying specific clauses within contracts. While the AI strives to provide accurate and relevant results, it may occasionally make mistakes or produce inaccuracies. The information provided by this tool should not be considered legal advice or a substitute for professional judgment. Users are strongly encouraged to carefully review and verify the results before relying on them for any legal decisions or actions. The responsibility for the interpretation and application of the contract clauses remains solely with the user. ## Repository For creating datasets and further details, please visit the [repository for creating datasets](https://github.com/DanielShaw98/data-prep).