Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,15 +1,37 @@
|
|
| 1 |
---
|
| 2 |
-
title: Committed
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
python_version: '3.13'
|
| 9 |
-
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
-
license: mit
|
| 12 |
-
short_description: Demo on personal webiste via vercel + fastapi
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Committed API
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: gray
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
|
|
|
|
|
|
| 8 |
pinned: false
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Committed — Inference API
|
| 12 |
+
|
| 13 |
+
Headless FastAPI inference service for [Committed](https://github.com/marzoukbaig14/Committed):
|
| 14 |
+
a Qwen3-1.7B QLoRA fine-tune that generates Conventional Commits messages from code
|
| 15 |
+
diffs, served on CPU via llama.cpp with GBNF grammar-constrained decoding.
|
| 16 |
+
|
| 17 |
+
This Space exposes the HTTP contract; it has no UI. For the interactive demo, see the
|
| 18 |
+
Gradio Space.
|
| 19 |
+
|
| 20 |
+
## Endpoints
|
| 21 |
+
|
| 22 |
+
- `POST /generate` — body `{"diff": "<unified diff>"}` → `{"message": "<commit message>"}`
|
| 23 |
+
- `GET /health` — `{"status": "ok"}` once the model is loaded
|
| 24 |
+
- `GET /docs` — interactive Swagger UI (FastAPI default)
|
| 25 |
+
|
| 26 |
+
## Model
|
| 27 |
+
|
| 28 |
+
Serves the fine-tuned GGUF `marzoukbaig14/committed-gguf` /
|
| 29 |
+
`committed-finetuned-Q4_K_M.gguf` (the serving artifact of record, ADR 0048).
|
| 30 |
+
Overridable via the `COMMITTED_MODEL_REPO` / `COMMITTED_MODEL_FILE` Space Variables.
|
| 31 |
+
|
| 32 |
+
## Notes
|
| 33 |
+
|
| 34 |
+
The container builds by installing the `committed` package from GitHub (the single
|
| 35 |
+
source of truth). The model is pulled from the Hub at first startup and cached, so the
|
| 36 |
+
first boot is slower than subsequent ones. The Space may sleep after a period of
|
| 37 |
+
inactivity; the first request after a sleep incurs a cold start.
|