bhargavirengarajan21 commited on
Commit Β·
3cefa9d
1
Parent(s): aca62bd
Add read me
Browse files
README.md
CHANGED
|
@@ -6,6 +6,8 @@ colorTo: indigo
|
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.18.0
|
| 8 |
app_file: app.py
|
|
|
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
@@ -45,6 +47,7 @@ git commit-at
|
|
| 45 |
- β
Ticket number integration
|
| 46 |
- β
Live branch graph visualization
|
| 47 |
- β
Commit history tracking
|
|
|
|
| 48 |
|
| 49 |
## Directory Structure
|
| 50 |
|
|
@@ -95,6 +98,46 @@ git commit-at
|
|
| 95 |
# - Confirm and commit
|
| 96 |
```
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
## Architecture
|
| 99 |
|
| 100 |
```
|
|
@@ -230,8 +273,8 @@ node wrapper.js
|
|
| 230 |
**Q: Do I need Ollama installed locally?**
|
| 231 |
A: No! Ollama runs in a Docker container. Just ensure Docker is running.
|
| 232 |
|
| 233 |
-
**Q:
|
| 234 |
-
A:
|
| 235 |
|
| 236 |
**Q: Does this work offline?**
|
| 237 |
A: After the first run (which downloads the AI model), yes!
|
|
@@ -249,7 +292,7 @@ MIT β See [LICENSE](LICENSE) for details
|
|
| 249 |
## Links
|
| 250 |
|
| 251 |
- π³ Docker Hub: [git-commit-at](https://hub.docker.com)
|
| 252 |
-
- π€ Hugging Face: [Spaces](https://huggingface.co/spaces/build-small-hackathon/git-commit-a)
|
| 253 |
- π¦ NPM: [git-commit-at](https://npmjs.com/package/git-commit-at)
|
| 254 |
|
| 255 |
## Support
|
|
|
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.18.0
|
| 8 |
app_file: app.py
|
| 9 |
+
tags:
|
| 10 |
+
- build-small-hackathon
|
| 11 |
pinned: false
|
| 12 |
---
|
| 13 |
|
|
|
|
| 47 |
- β
Ticket number integration
|
| 48 |
- β
Live branch graph visualization
|
| 49 |
- β
Commit history tracking
|
| 50 |
+
- π§ Fine-tuned model integration (see below)
|
| 51 |
|
| 52 |
## Directory Structure
|
| 53 |
|
|
|
|
| 98 |
# - Confirm and commit
|
| 99 |
```
|
| 100 |
|
| 101 |
+
## Fine-Tuned Model Integration
|
| 102 |
+
|
| 103 |
+
`git-commit-at` now uses a **custom fine-tuned model** as its primary AI, with automatic fallback to a general model.
|
| 104 |
+
|
| 105 |
+
### Model
|
| 106 |
+
|
| 107 |
+
**[Bhargavi5q1/git-commit-messages](https://huggingface.co/Bhargavi5q1/git-commit-messages)** β Fine-tuned on 2,179 real git diffs using Unsloth + QLoRA on a Qwen2.5-Coder 1.5B base model. Trained to output conventional commit messages in one line with no explanation.
|
| 108 |
+
|
| 109 |
+
### How it works
|
| 110 |
+
|
| 111 |
+
```
|
| 112 |
+
git diff (staged changes)
|
| 113 |
+
β
|
| 114 |
+
βΌ
|
| 115 |
+
βββββββββββββββββββββββββββββββββββ
|
| 116 |
+
β Fine-tuned model (primary) β hf.co/Bhargavi5q1/git-commit-messages
|
| 117 |
+
β via Ollama β
|
| 118 |
+
ββββββββββββββ¬βββββββββββββββββββββ
|
| 119 |
+
β fails?
|
| 120 |
+
βΌ
|
| 121 |
+
βββββββββββββββββββββββββββββββββββ
|
| 122 |
+
β qwen2.5-coder:1.5b (fallback) β general-purpose model
|
| 123 |
+
βββββββββββββββββββββββββββββββββββ
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
- Primary model is pulled automatically on first run (~986 MB)
|
| 127 |
+
- If unavailable, falls back silently to `qwen2.5-coder:1.5b`
|
| 128 |
+
- Terminal shows which model was used on each run
|
| 129 |
+
|
| 130 |
+
### Training details
|
| 131 |
+
|
| 132 |
+
| | |
|
| 133 |
+
|---|---|
|
| 134 |
+
| Base model | Qwen2.5-Coder 1.5B |
|
| 135 |
+
| Method | QLoRA (Unsloth) |
|
| 136 |
+
| Dataset | 2,179 git diff β commit message pairs |
|
| 137 |
+
| Epochs | 3 |
|
| 138 |
+
| Format | Conventional Commits |
|
| 139 |
+
| Export | GGUF Q4_K_M (~986 MB) |
|
| 140 |
+
|
| 141 |
## Architecture
|
| 142 |
|
| 143 |
```
|
|
|
|
| 273 |
**Q: Do I need Ollama installed locally?**
|
| 274 |
A: No! Ollama runs in a Docker container. Just ensure Docker is running.
|
| 275 |
|
| 276 |
+
**Q: Which AI model does this use? (Inprogress)**
|
| 277 |
+
A: A custom fine-tuned model ([Bhargavi5q1/git-commit-messages](https://huggingface.co/Bhargavi5q1/git-commit-messages)) trained specifically for git commit messages. Falls back to `qwen2.5-coder:1.5b` if unavailable.
|
| 278 |
|
| 279 |
**Q: Does this work offline?**
|
| 280 |
A: After the first run (which downloads the AI model), yes!
|
|
|
|
| 292 |
## Links
|
| 293 |
|
| 294 |
- π³ Docker Hub: [git-commit-at](https://hub.docker.com)
|
| 295 |
+
- π€ Hugging Face: [Fine-tuned model](https://huggingface.co/Bhargavi5q1/git-commit-messages) Β· [Spaces](https://huggingface.co/spaces/build-small-hackathon/git-commit-a)
|
| 296 |
- π¦ NPM: [git-commit-at](https://npmjs.com/package/git-commit-at)
|
| 297 |
|
| 298 |
## Support
|