Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
This branch has not been deployed
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.
Adds
examples/train-a-router, a standalone walkthrough for lowering answer-model spending while measuring the correct answers lost versus always using the stronger model. Learners establish baselines, adapt Laya with LoRA, train small classifiers on fixed Qwen embeddings, compare teacher-generated training labels, and route new requests through SIE Cloud or their own server. The original request-routing example stays separate.The main study uses 2,000 training questions, 1,000 calibration questions, and 3,000 separate test questions, grouped by detected question families. Training chooses model settings; calibration chooses routing cutoffs; saved decisions are evaluated on the test answers. At the primary one-point calibration setting:
LoRA first preserves more answer quality; embeddings then improve both measured cost and quality. Teacher labels are an alternative source of training supervision, checked against a same-question reference-label control. The separately declared secondary embedding rule saves 33.8% with a 0.83-point test gap, reducing the estimate from $9.51 to $6.30 per 10,000 questions. Its gap interval is 0.33–1.30 points; the primary result remains unchanged.
An optional Sol/Luna case study reuses all three frozen routers on the same 3,000 questions without retraining or changing cutoffs. The embedding rules save 29.8% with a 0.27-point gap at the original primary setting and 46.2% with a 0.43-point gap at the secondary setting. The latter costs $3.99 versus $7.41 per 10,000; its gap interval is 0.10–0.77 points. The case study includes always-Luna's roughly 93% saving / 1.25-point gap and the uncertain advantage over random routing at equal Luna shares. One interrupted Luna response affects neither primary nor secondary router result; its unknown answer and cost remain explicit in the baseline.
The README starts with the dataset, metrics, and a six-step overview, then gives commands and an explicit purpose for each stage. Every command block starts with a comment. The quickstart covers the same process; serving guidance explains GPU/CPU requirements, latency, model size, and router overhead. Large datasets and optional weights are pinned on Hugging Face.
Validation:
The model components and live routed SDK request passed validation. The complete three-GPU Docker Compose deployment has not been run as one stack. Native router hosting is unpriced; all stated savings distinguish that from measured embedding charges.
Walkthrough · Quickstart · Pinned Qwen evidence · Pinned Sol/Luna evidence