Forged from the essence of 🦙 Mistral 0.3, our unique, lightweight model is meticulously trained to elevate the art of git commit messages.

7B

498 Pulls Updated 6 weeks ago

6 weeks ago

4a9fd9faebb2 · 4.4GB

model
llama
·
7.25B
·
Q4_K_M
license
LICENSE ======= Permission is hereby granted, free of charge, to any person or entity (hereinafter referred to as the "User") obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or use the Software for assisting with daily tasks, provided the following conditions are met: 1. The Software shall be used for non-commercial purposes only. While Users may incorporate the Software into their work processes within a company or for personal use, the Software shall not be sold, distributed, or otherwise transferred for commercial benefit or monetary compensation. 2. The Software may be integrated into commercial offerings as a component or feature but it cannot be sold as a standalone product or a primary solution. Users interested in commercializing any solution or product that incorporates the Software in such a manner must contact the licensor at victortavernari@gmail.com to obtain a separate license agreement tailored for such purposes. 3. Redistributions of the Software must retain the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. DISCLAIMER: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This license is effective until terminated by either party. Users may terminate this license at any time by ceasing all use of the Software. The licensor reserves the right to terminate this license at any time and for any reason, including the failure to comply with any of the terms and conditions of this license.
template
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. {{ if .Prompt }} ### Input: {{ .Prompt }} {{ end }} {{ if .System }} ### Instruction: {{ .System }} {{ end }} ### Response:
params
{"num_ctx":32000,"num_predict":-1,"repeat_last_n":-1,"stop":["### Response:","### Instruction:","### Input:","Below is an instruction that describes a task, pairred with an input that provides further context. Write a response that appropratiely complete the request.","Below is an instruction that describes a task, pairred with an input that provides further context. Write a response that appropratiealy completes the request.","Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request."],"temperature":0.6,"tfs_z":2,"top_k":10,"top_p":0.5}
system
You are an expert developer, so you know how to read all kinds of code syntax. Read the git patch diff calmly from top to bottom, paying attention to each addition, deletion, and unchanged line carefully. Focus on changes, not only the last or first lines, and figure out the main idea of the input. If complex, break it down into smaller parts to organize your thoughts. Write a commit message based on the git diff provided. Read the diff below and write a commit message that accurately describes the changes made. Focus in write why instead of what on your description message. Your message is to add a kind of explanation for future consulting, so be clear and concise.

Readme

Git Commit Message Generator

Trained: 26/07/2024

demo

Welcome to the forefront of commit clarity—our GitCommitMessageModel is a singular, artisanal AI crafted on the foundations of Mistral 0.3. Personalized and perfected through dedicated training, this tool transforms code diffs into precise, understandable commit narratives. As the model learns and grows, so too will the finesse of your commit logs. Stay tuned for updates as we refine our model to be your ultimate coding companion.

Seamless Workflow Integration - macOS Shortcut

A Sip of Support for Continuous Learning!

🚀 Each commit message generated by GitCommitMessageModel is a testament to an ongoing journey of machine learning mastery, self-funded and sculpted by personal devotion. Donations fuel this journey, allowing the model to not only evolve but to excel, promising an ever-improving tool for developers everywhere.

💡 Your donation is more than a caffeine kick—it’s a vote of confidence in a future where AI aids and elevates our coding endeavors. It enables continual training, enhances model sophistication, and ensures that quality remains our collective priority.

🤝 Consider your donation an investment in the craft of code; it’s a partnership fostering innovation free from corporate confines. Your generosity sustains the momentum of this passion project, enabling the GitCommitMessageModel to advance and adapt.

Empower our project with your generosity—one coffee at a time. ☕️

Example

Given a diff:

diff --git forkSrcPrefix/src/cash_calculator.js forkDstPrefix/src/cash_calculator.js
index c9328e4c6ce69fa41d6510a81c266496ed929133..f98fb737032aceaffc56fb60ef7c26da83a3e970 100644
--- forkSrcPrefix/src/cash_calculator.js
+++ forkDstPrefix/src/cash_calculator.js
@@ -10,10 +10,18 @@ function subtract_cash(amount) {
     current_cash = math_operations.subtract(current_cash, amount);
 }
 
+function checkIfTransactionPossible(ammountToRemove) {
+    if (math_operations.subtract(current_cash, ammountToRemove) < 0) {
+        return false;
+    }
+    return true;
+}
+
 function get_cash() {
     return current_cash;
 }
 
 exports.add_cash = add_cash;
 exports.subtract_cash = subtract_cash;
+exports.checkIfTransactionPossible = checkIfTransactionPossible;
 exports.get_cash = get_cash;

The model could suggest:

Add check for transaction possibility before subtracting cash

Added a new function `checkIfTransactionPossible` to ensure that the amount to remove from current cash is valid. If the resulting cash value would be negative, the function returns false and prevents 
the transaction from proceeding. This helps prevent errors and ensures that only valid transactions are processed.

Model Evolution

Introducing our unique model configuration:

Current Release

Core: Independently trained on Mistral 0.3

ollama run tavernari/git-commit-message

Our model, like the best software, is in perpetual beta—improving iteratively. Designed for clarity and conciseness, it is becoming increasingly adept at crafting commit messages that illuminate the intention behind each change.

Optimizing Your Input

For peak performance, present your diffs with clear, annotated changes. This clarity enables the model to differentiate between modifications and constants, allowing for crisp, targeted commit descriptions.

Remember, brevity is the ally of understanding. To avoid diluting the model’s effectiveness, break down large diffs into smaller, digestible pieces, ensuring that each commit message reflects the precision of a coder’s thought.

Disclaimer

While GitCommitMessageModel is crafted with care and precision, it is, at its core, a lightweight model that’s still evolving. As with any automated tool, it’s possible for the unexpected to slip through. We recommend reviewing the suggested commit messages for accuracy before making them a part of your project’s history. Your diligence will ensure that our AI assistant remains a helpful ally in your development workflow.

Connect and Share Your Feedback!

Use this form to send your diff and commit message, you can put it incorrectly with 👎 or a nice commit message using 👍.

I’m always looking to improve and update the GitCommitMessageModel, and your feedback is crucial. Whether you have suggestions, encounter a bug, or just want to chat about AI and coding, feel free to reach out through any of the following channels:

Let’s keep pushing the boundaries of what AI can do for development!