cellmap_flow.dashboard.routes.finetune.training
Training jobs: submitting one, restarting it, and following it.
Routes:
- POST /api/finetune/submit: a job for a model over a session’s corrections;
- POST /api/finetune/job/<job_id>/restart: the next iteration, with new settings;
- GET /api/finetune/jobs: every job, including those a dashboard before
this one started (they are looked for first);
GET
/api/finetune/job/<job_id>/statusand.../logs;GET
/api/finetune/job/<job_id>/logs/stream: the log as server-sent events;POST
/api/finetune/job/<job_id>/canceland.../stop-early.
Attributes
Functions
|
|
|
|
|
Server-sent log stream. |
|
|
|
|
|
Module Contents
- cellmap_flow.dashboard.routes.finetune.training.logger
- cellmap_flow.dashboard.routes.finetune.training.get_finetuning_jobs()
- cellmap_flow.dashboard.routes.finetune.training.get_job_status(job_id)
- cellmap_flow.dashboard.routes.finetune.training.get_job_logs(job_id)
- cellmap_flow.dashboard.routes.finetune.training.submit_finetuning()
- cellmap_flow.dashboard.routes.finetune.training.stream_job_logs(job_id)
Server-sent log stream.
Every block of lines carries
id: <byte offset>, the position in the log after it, and a (re)connection resumes from the client’s Last-Event-ID – which EventSource sends by itself when it reconnects – or from?offset=. The stream ends withevent: doneonce the job is finished. It used to send the whole log on every connection and just stop at the end, so the browser’s automatic reconnect replayed the whole log, plus “=== Training COMPLETED ===”, every few seconds for as long as the page stayed open.
- cellmap_flow.dashboard.routes.finetune.training.cancel_job(job_id)
- cellmap_flow.dashboard.routes.finetune.training.stop_training_early(job_id)
- cellmap_flow.dashboard.routes.finetune.training.restart_finetuning_job(job_id)