Skip to content

cookbook: sync latest Loom updates and use published SDK beta2 - #54

Open
Harshith Arun Kumar (harshith-arunkumar) wants to merge 7 commits into
mainfrom
haarunkumar/sync-loom-public-2026-11-11
Open

Harshith Arun Kumar (harshith-arunkumar) wants to merge 7 commits into
mainfrom
haarunkumar/sync-loom-public-2026-11-11

Conversation

@harshith-arunkumar

@harshith-arunkumar Harshith Arun Kumar (harshith-arunkumar) commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Released SDK beta2 bridge

This sync uses published azure-ai-finetuningsessions==1.0.0b2 while beta3 publication is pending. The non-yanked PyPI wheel was SHA-256 verified and used for the focused recovery, package and documentation checks. No SDK source, wheel, resolver override or alternate package index is added to the cookbook.

Beta2 detects polled engine_dead even with should_retry=true. Recovery remains best-effort: if closing the interrupted session returns HTTP 409 with engine_dead, beta2 raises a generic HTTP error. The cookbook preserves the original training failure and does not create a replacement. The integration test explicitly checks this outcome for beta2; successful checkpoint restart and fail-closed handling of unrelated conflicts remain covered. Runtime code and CI workflows are unchanged by this bridge.

Local validation against released beta2: 265 passed in the focused run; an unchanged deadline case hit a Windows file-replace access error and passed on isolated rerun (both deadline variants passed). Review the hosted training gates for this head before merging.

Latest source and integration

  • Latest fetched/rechecked Loom master: fdaeb41c7ecc834f3781522d2a69d774359f8d30 (2026-11-17).
  • Incremental shared source baseline: 91e981aee4a6b4db76a011741c62606ff0a4f7cb.
  • Merged current public main 0b8bcfe9519ed382a5bc202f0f1b2ce65c22a2c9 before the refresh; retained its independent README additions.
  • Loom refresh: 1675e55b326183b61a1c2063d20bdb50fe39fcbf; beta2 bridge: 90d982b8671e50d404720ffa36c04871db637101.
  • Three-way integration accounts for all 13 eligible shared cookbook-file changes. Loom-owned pipeline changes are excluded. There are no additional shared Managed Training or Sample_Datasets changes since the incremental baseline.

Latest additions

  • Immutable sampling checkpoints carry a validated optional successful-update policy_step, independent of batch/metrics indices; explicit resume state restores it without inventing legacy values.
  • Optional fixed-batch synchronous autonomous-rollout recovery hook, with configuration guards for unsupported dynamic/refill/async/streaming combinations.
  • Empty prepared minibatches retain the current sampling client and do not advance policy state.
  • Explicit SDK RequestRetryableError values enter bounded failed-slot recovery while retaining completed trajectories.
  • CISPO ratio-bound documentation and expanded rollout/checkpoint/progress regression tests.
  • Exact published beta2 dependency/setup/reference updates, including correction of a stale beta1 quickstart expectation.
  • Recovery fixture accepts both SDK checkpoint-list route spellings and rejects unrelated routes; focused regression cases cover both contracts.

Retained original sync and boundaries

The original shared recovery, Adam defaults, math grading isolation, LLM-judge/numerics recipes, tool/vision improvements, Managed Training safety contracts, canonical math-reference correction/hash manifest, and notebook/asset preservation remain included. Public-specific examples and MAI Code Repair remain. Model/region and GlobalStandard-only eligibility, SDK namespaces, logging contracts and opt-in paid smoke behavior are unchanged. No private recipes, backend/environment/telemetry adapters, SDK source/wheels or internal package indexes are exported.

Checkpoint docs describe service-side save/resume rather than generally available weight downloads; save/resume APIs and the documentation regression guard remain. Separate SDK README-only follow-up: Azure/azure-sdk-for-python#50014. Already-published PyPI description changes require the release owner's normal publication process.

Validation and release limitations

  • 2,952 passed, 17 skipped, 3,324 passing subtests: full Programmed Training suite plus root naming/import/navigation tests, Windows/Python 3.13.
  • 21 focused recovery/classification/fixture checks passed, including the former terminal-close failures.
  • Both commands used the exact selected Loom SDK source through PYTHONPATH, with --runxfail so old beta1-version expected-failure marks did not mask assertions. The existing environment's installed distribution metadata remains beta1. This is source compatibility evidence, not a beta1-runtime claim or published-beta3 qualification.
  • All 13 new shared files are accounted for; pre-existing public tier-test adaptations remain unchanged. All 14 changed Python modules parse; whitespace/package/export-boundary audits passed. No notebooks or SDK wheels changed in this incremental refresh.
  • Earlier managed/data offline validation remains recorded by the prior PR checks; no new shared managed/data code changed here. New-head hosted CI must be reviewed independently.

Upgrade to beta3 in a follow-up after publication and wheel-level recovery qualification; it is not a blocker for this beta2 sync. No SDK release, live training, deployment, paid sampling or merge was performed.

Harshith Arun Kumar and others added 3 commits November 11, 2026 20:57
Bring approved shared training recipes, recovery, grading, managed submission and dataset-validation fixes into the public cookbook. Preserve public-specific examples and eligibility, exclude private-only additions, and retain notebook state. Pin SDK 1.0.0b2 pending published-wheel qualification.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Declare Azure Core for the synced retry error classifiers in lightweight CI. Carry the canonical capstone ignore contract so credential-bearing runtime state and outputs cannot be accidentally tracked.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match the existing reviewed offline-test dependency set for the newly synced Azure Core, OpenAI and HTTP exception fixtures. The exact CI selection passes in a clean environment with only these declared test requirements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@harshith-arunkumar

Copy link
Copy Markdown
Contributor Author

Completed the full provisional Programmed Training run using published SDK 1.0.0b1: 2,882 passed, 17 skipped, 9 strict SDK-version expected failures, 7 passing subtests. Beta2 must run those assertions without the beta1 expected-failure marks.

The first hosted managed run exposed missing dependencies for the newly synced offline HTTP/SDK error fixtures. Follow-ups add the reviewed minimal test dependency set; the exact public CI selection now passes in a clean environment with only that requirements file installed, plus seven root checks and pip check. The broader managed/data run also exposed the missing canonical capstone output-ignore contract; it is restored and its focused regression passes. No assertions were relaxed.

The hosted Programmed Training installer failure is confirmed as No matching distribution found for azure-ai-finetuningsessions==1.0.0b2. The beta2 PyPI release remains the merge/qualification blocker. The PR stays draft; no local SDK fallback, CI exclusion, deployment or paid training was introduced.

@harshith-arunkumar

Copy link
Copy Markdown
Contributor Author

Verified all four hosted Managed documentation checks passed on final commit 2794b05 (Ubuntu/Windows, Python 3.11/3.13). The full Programmed Training tree is unchanged from the 2,882-pass provisional beta1 run. Programmed Training installation is still blocked by the unpublished PyPI beta2 release; the PR remains draft until the released artifact and complete CI are qualified.

@harshith-arunkumar

Copy link
Copy Markdown
Contributor Author

Rechecked the current failed gates on 2026-11-12: all 4 failures stop during dependency installation, before tests run, with:

ERROR: No matching distribution found for azure-ai-finetuningsessions==1.0.0b2

Official PyPI verification today:

  • Exact beta2 release JSON returns HTTP 404.
  • Both the release metadata and the actual simple package index list only 0.0.0b1 and 1.0.0b1; beta2 is absent.
  • The other 7 checks pass, including the complete Managed documentation matrix and CodeQL.

There is no cookbook or workflow patch that can satisfy this dependency while retaining the explicitly requested beta2 pin. I did not downgrade to beta1, substitute a private feed/local SDK wheel, skip tests, or repeatedly rerun installers against an absent release.

Required next step: publish the non-yanked azure-ai-finetuningsessions 1.0.0b2 wheel to PyPI, then rerun the failed workflows and qualify the complete tests against that released artifact. The PR remains draft until this succeeds. Both worktrees remain unchanged and clean.

Harshith Arun Kumar and others added 3 commits November 13, 2026 14:35
Remove weight-export handoff promotion and clarify that recipe checkpoints remain in the service. Add documentation regressions for download examples and ambiguous export claims, preserve all checkpoint save/resume APIs, and align session metadata guidance with released SDK beta2.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Three-way integrate the latest shared Loom changes, retain target-only behavior, fix SDK checkpoint route fixtures, and make unpublished beta3 release qualification explicit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@harshith-arunkumar Harshith Arun Kumar (harshith-arunkumar) changed the title cookbook: sync shared training updates and upgrade to SDK beta2 cookbook: sync latest Loom updates and target SDK beta3 Nov 17, 2026
@harshith-arunkumar
Harshith Arun Kumar (harshith-arunkumar) marked this pull request as ready for review November 17, 2026 23:00
Document best-effort recovery and verify that beta2 preserves the engine-loss failure without opening a replacement when session close returns HTTP 409.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@harshith-arunkumar Harshith Arun Kumar (harshith-arunkumar) changed the title cookbook: sync latest Loom updates and target SDK beta3 cookbook: sync latest Loom updates and use published SDK beta2 Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant