bhargavirengarajan21 commited on
Commit
3cefa9d
Β·
1 Parent(s): aca62bd

Add read me

Browse files
Files changed (1) hide show
  1. README.md +46 -3
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: Can I use a different AI model?**
234
- A: Yes! Edit the `MODEL` variable in `git-commit-at/index.js`.
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