Skip to content

Commit

Permalink
docs: Update label-studio-ml-backend docs
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelakaplan committed Feb 21, 2025
1 parent a368977 commit 8c48b81
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/source/tutorials/gliner.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,17 @@ The following common parameters are available:
- `WORKERS` - Specify the number of workers for the model server.
- `THREADS` - Specify the number of threads for the model server.
- `LABEL_STUDIO_URL` - Specify the URL of your Label Studio instance. Note that this might need to be `http://host.docker.internal:8080` if you are running Label Studio on another Docker container.
- `LABEL_STUDIO_API_KEY`- Specify the API key for authenticating your Label Studio instance. You can find this by logging into Label Studio and and [going to the **Account & Settings** page](https://labelstud.io/guide/user_account#Access-token).
- `LABEL_STUDIO_API_KEY`- Specify the API key for authenticating your Label Studio instance. You can find this by logging into Label Studio and and [going to the **Account & Settings** page](https://labelstud.io/guide/user_account#Access-token).

## A Note on Model Training

If you plan to use a webhook to train this model on "Start Training", note that you do
not need to configure a separate webhook. Instead, go to the three dots next to your model
on the Model tab in your project settings and click "start training".

Additionally, note that this container has been set for a **VERY SMALL** demo set, with only 1
non-eval sample (we expect the first 10 data samples to be for evaluation.)

If you're working with a larger dataset, be sure to:
1. update num_steps and batch size to the number of training steps you want and the batch size that works for your dataset.
2. change the uploaded model after training (line 239 of `model.py`) to the highest checkpoint that you have.

0 comments on commit 8c48b81

Please sign in to comment.