Repository navigation
feat: FineTuningPipeline added - #714
Merged
Merged
Conversation
3 tasks done
Collaborator
|
Thanks Abhay. This is a well-structured contribution — the separation across seven focused modules is clean, the orchestrator wires them together without leaking internal state, and the A/B router's deterministic SHA-256 bucketing is the right approach for sticky assignment without session storage. 162 tests covering rollout regression guards, cost projection, and the orchestrator lifecycle. Merged via #719. |
AmitoVrito
added a commit
that referenced
this pull request
May 20, 2026
…turedOutput, AgentFederation, FineTuningPipeline, benchmark harness Covers PRs #711 #712 #713 #718 #714 #717 merged via batch PR #719. Co-authored-by: Dhruv Garg <[email protected]> Co-authored-by: Abhay <[email protected]>
This was referenced Jun 25, 2026
Closed
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.
Summary
Implements a production-ready continuous fine-tuning and feedback learning pipeline for SynapseKit.
Closes #702
Type of change
Changes
synapsekit.trainingpackage — new module with six components:FeedbackCollector(non-blocking async queue with pluggableFeedbackBackend),TrainingDataGenerator(JSONL export, preference pairs),AnthropicFineTuneProvider/OpenAIFineTuneProvider(provider-agnostic fine-tune ABC),ABTestRouter(deterministic sticky hash routing, bounded result deque),AutoRolloutManager(staged rollout with per-stage sample gate, latency/cost/quality rollback), andCostBenefitAnalyzer(ROI, payback-day projection, multi-provider training rates)ContinuousTrainerorchestrator (training/orchestrator.py) — wires all components into a single lifecycle:record_feedback→maybe_trigger_training(watermark-gated, non-blocking file I/O viaasyncio.to_thread) →check_job_status→activate_ab_test(optional eval-score gate) →run_evaluation_cycle(advance or rollback rollout, optional cost report)FeedbackSamplegainslatency_msandcost_usdfields;RolloutStategainsstage_start_finetuned_countfor per-stage sample countingsystemturn (which caused OpenAI JSONL validation failures)pyproject.toml— addedtraining = ["openai>=1.0"]optional-dependency groupexamples/continuous_finetuning.py— end-to-end runnable walkthrough of the full pipelinetest_feedback,test_dataset,test_finetune,test_ab_testing,test_rollout,test_orchestrator, andtest_cost_analysisTesting
uv run pytest tests/ -q)