Repository navigation
feat(fine_tuning): fine-tune a decision model on 100 rows and serve it with SIE; move to SIE v0.11.1 - #35
Merged
Conversation
…mpare it with zero-shot Banking77 (public) 67.3% to 93.3%, synthetic parsed-document quality checks (private) 30.0% to 86.7%, about 5 s of training on a laptop.
The recipe trains locally and is not an agent, so it gets its own fine_tuning/ folder and root README section. sie_models/ holds an SIE model config per fine-tuned model (weights_path instead of hf_id), and serve.py scores the test rows through SIE. Tested with v0.11.1-cpu-default in Docker: all 420 decisions match the local run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sie-sdk>=0.11.1 and relocked in every recipe (only sie-sdk changed), v0.11.1 image tags and Helm chart. No cookbook model changes image. Qwen3-Embedding-4B now has the cuda12-sglang-embedding image (not yet smoke-tested by SIE), and SELF_HOSTING.md notes that v0.11.1 serves gliner2-large-v1 with gliner2 2.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Serve the fine-tuned models multi-label, as recipe.py trains and scores, so SIE's scores match the local ones (within 0.0001) and a low top score means the same thing in both. - Check each data row against rules.yaml, and stop when a model returns no labels instead of counting the row as a miss. - Move scoring settings and the base model revision into rules.yaml; pin Banking77 to a commit (rebuilt data is byte-identical). - serve.py reuses recipe.py's scoring (per-label accuracy included) and saves results after each model. - Add selfcheck.py; fix README claims (SIE call count, configs, LoRA, timings, score scale) and a SELF_HOSTING.md contradiction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
Self-reviewSix passes: code, silent failures, test coverage, comments, types, security. Nothing Critical. All fixes are in 30cd7f8. Important (6, all fixed)
Suggestions (fixed)
Skipped
Verified: selfcheck, ruff and mypy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New recipe:
fine_tuning/fine_tune_a_decision_model. It fine-tunes GLiClass edge v3.0 on about 100 labelled rows on your own machine and compares it with the zero-shot model:Training takes about 5 s per dataset on a laptop. The recipe isn't an agent, so it gets a new
fine_tuning/folder and its own section in the root README.Serving your own weights with SIE.
sie_models/*.yamlholds an SIE model config for each fine-tuned model, withweights_pathin place ofhf_id. The README shows how to start SIE Local in Docker and ask it for a decision, with bothcurland the Python SDK.serve.pyscores the test rows through SIE.Cookbook moves to SIE v0.11.1. Every recipe now needs
sie-sdk>=0.11.1and is relocked; the relock changed onlysie-sdk. Image tags and the Helm chart move to v0.11.1.Tested
v0.11.1-cpu-default(emulated on Apple Silicon) with the fine-tuned weights mounted. The README'scurland Python examples ran as written.serve.pygave the same decision as the local run on all 420 rows, and the container used under 1 GB of memory.recipe.py --helpandselfcheck.pypass in all 48 recipes.check_tree.py,check_locks.py, ruff and mypy--strict(on the new recipe) pass.Notes on v0.11.1
SELF_HOSTING.mdsays so.Qwen/Qwen3-Embedding-4Bnow has an image,cuda12-sglang-embedding, first published in v0.11.1 and not yet smoke-tested. The docs name it and keep the 8B swap as the one-image option.fastino/gliner2-large-v1with gliner2 2.0.0 instead of 1.3.2, which changes its output according to SIE's own notes. I didn't re-run those 14 recipes.SELF_HOSTING.mdflags the change.🤖 Generated with Claude Code