Instructions to use kumarabd1996/agent-task-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use kumarabd1996/agent-task-classifier with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Add Serving section (HTTP image)
Browse files
README.md
CHANGED
|
@@ -68,6 +68,20 @@ Earlier request: What are my biggest categories?
|
|
| 68 |
New request: Continue the bulk update
|
| 69 |
```
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
## Training
|
| 72 |
|
| 73 |
- **Base**: `convaiinnovations/laya` (English checkpoint; ModernBERT-large + decision head), Apache-2.0.
|
|
|
|
| 68 |
New request: Continue the bulk update
|
| 69 |
```
|
| 70 |
|
| 71 |
+
## Serving
|
| 72 |
+
|
| 73 |
+
A ready-made HTTP image (CPU, weights baked in) is published from
|
| 74 |
+
[realnighthawk/classifier](https://github.com/realnighthawk/classifier):
|
| 75 |
+
|
| 76 |
+
```
|
| 77 |
+
docker run -p 8000:8000 ghcr.io/realnighthawk/classifier:latest
|
| 78 |
+
curl localhost:8000/classify -H 'content-type: application/json' \
|
| 79 |
+
-d '{"text":"book me a table for two at 8pm friday"}'
|
| 80 |
+
# {"label":"arrange","probabilities":{...}}
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
`POST /classify` takes `{text, earlier?}`; `earlier` is the request being continued.
|
| 84 |
+
|
| 85 |
## Training
|
| 86 |
|
| 87 |
- **Base**: `convaiinnovations/laya` (English checkpoint; ModernBERT-large + decision head), Apache-2.0.
|