BRK252 · Breakout

Turn your data into AI advantage with Training in Microsoft Foundry

  • Thursday 19 November
  • 47 min
  • Catalogue level: (200) Intermediate
  • Our depth rating: 300
  • Worth watching: 2/3

Speakers: Vijay Aski, Meng Tang, Shengtao Ma, Simon Zhao

Watch on Microsoft’s site from 05:43

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

The session positions training in Microsoft Foundry as the way to turn business data into cheaper, better specialised models, and explains when to use SFT, DPO or reinforcement learning. It covers managed vs programmed training, reinforcement learning environments (RLE), observability, managed compute (stated as GA) and expanded fine-tuning choice with Qwen, Nemotron and Microsoft MAI models. DocuSign details teacher-student distillation with SFT/LoRA and RFT/GRPO on an MAI Flash model, with F1 gains of 3–18% on reasoning-heavy fields. A 400-level demo trains a small Qwen code-review model from real PR traces via RLE, SFT and RL, ending about 24x cheaper than a frontier model. Heidi Health describes training an open model for clinical evidence answers with the Tinker API, cutting inference cost roughly 10x.

Best for: ML engineers and AI platform architects who want to fine-tune or apply RL to open or MAI models in Foundry to cut agent inference cost.

Session timeline by chapter

New material starts at 05:43. The first five minutes frame why and when to train and recap SFT/DPO/RL basics; at 05:43 the technical walkthrough of managed vs programmed training and RL environments begins.

Where to skip: Skip to 05:43 for the training architecture and 09:10 for model announcements; watch 13:51–23:34 (DocuSign SFT/RFT details and the post-training stack) and the demo 26:02–37:53 as the core; 44:22–46:31 adds Heidi Health's Tinker API architecture. The DocuSign product intro (10:06), demo setup (23:34) and closing can be skipped.

Chapters (15)

  1. 00:05 Recap Depth 100 · Novelty 1/3

    Why train models: Foundry positioning and three customer results

    The speaker frames training as the way to turn business data into a competitive advantage and positions Microsoft Foundry as a platform combining models, agent services, context, tools and safety, used by 100,000 customers. Three anonymised customers are described: an A/B testing company, a building supplier preparing bids and a telco doing 5G root-cause analysis. Each started on a frontier model and used Foundry training to raise quality while cutting cost (93% saving, 1/5 of the cost and 50x saving respectively).

  2. 04:11 Recap Depth 200 · Novelty 0/3

    When to use training and which technique: SFT, DPO or reinforcement learning

    Training yields a specialised model built on the customer's IP that performs better and costs less, but it should not be the first step. Teams should first prove agent value with the best model, prompt tuning, context and tools, and only then train to push quality or reduce inference cost at scale. Supervised fine-tuning suits good example data, DPO suits human-judged answer pairs, and reinforcement learning suits complex tasks with measurable outcomes.

  3. 05:43 Deep dive Depth 300 · Novelty 2/3

    Training in Foundry: managed vs programmed training, RL environments, observability

    Foundry addresses three hard parts of training: data and tasks, the training recipe, and GPU capacity. Managed training takes data, a model and a predefined recipe (SFT, DPO, RL) and runs the workflow; programmed training lets the user define data, scoring, evaluation and checkpointing while Foundry manages the GPUs. Reinforcement learning environments act as a 'flight simulator' with realistic tools, rules and an isolated sandbox, work with both managed and programmed training, and are complemented by observability that links metrics with rollouts and traces.

  4. 09:10 New Depth 200 · Novelty 3/3

    Expanded fine-tuning model choice: open-weight families and Microsoft MAI models

    Foundry training previously focused on OpenAI model fine-tuning. The speaker announces an expanded model choice with open-weight model families, including Qwen and Nemotron (plus a family captioned as 'Muse Glamour'). For the first time Microsoft MAI models come to training, starting with a model captioned as 'MAI code to Flash', described as specialised and cost-efficient and used in several of the earlier customer examples.

  5. 10:06 Customer story Depth 200 · Novelty 1/3

    DocuSign: Agreement Manager requirements and the AI extraction pipeline

    DocuSign introduces its IAM platform and Agreement Manager, a central agreement repository powered by its Iris AI engine that extracts key attributes for search, filtering and reporting. The workload targets millions of documents per day with bulk and near real-time traffic, so throughput, cost, latency and enterprise-grade accuracy all matter. The production pipeline runs OCR/PDF parsing, agreement classification to select the schema, RAG-like snippet selection and finally LLM-based extraction.

  6. 13:51 Customer story Depth 300 · Novelty 2/3

    DocuSign: teacher-student distillation, SFT with LoRA, RFT with GRPO, MAI results

    DocuSign uses a teacher-student approach: expert-curated eval data, a large training corpus labelled by a frontier teacher model, then SFT and reinforcement fine-tuning of lighter models on Foundry until accuracy matches the teacher. SFT with LoRA adapters and cross-entropy loss on non-reasoning models is stable and efficient but needs high-quality data, generalises poorly and is unavailable for some newer reasoning models. RFT with GRPO and customised reward functions (e.g. discrete rewards for classification) helps multi-hop tasks such as total contract value but costs more time. With the MAI code 1.1 Flash model, RFT needed roughly 20% of the training data versus SFT, used more GPU hours and improved F1 by 3–18% on reasoning-heavy fields.

  7. 19:28 New Depth 300 · Novelty 3/3

    Post-training stack: programmed training, RL environments, GA managed compute

    Vijay outlines the Foundry post-training stack: managed and programmed training, reinforcement learning environments (RLE) and managed compute, which he says went GA and lets customers own GPUs and serve both base and LoRA models. Programmed training lets users control every part of the training loop from their laptop while Foundry provides serverless GPUs; partners named are Fireworks, Baseten, Fal and a partner captioned as 'Whitney'. RLEs package organisational knowledge into tasks, evals and graders, support task set formats (Harbor, OpenEnv, JSONL) and gym or bring-your-own harnesses, and return traces and verifiable rewards for hill-climbing.

  8. 23:34 Deep dive Depth 200 · Novelty 1/3

    Demo scenario: code review as a bottleneck and the training dataset design

    The demo is based on a partner's published work (captioned 'Whitney') showing business value from Foundry RL and RLE. With commit volumes to GitHub growing exponentially, code review becomes a bottleneck, and a frontier reviewer model lacks the context of principal engineers. The setup uses 150 real PRs from a real repo with accepted and rejected review comments for practice, plus frontier-model reviews, and a 120-PR holdout set for testing.

  9. 26:02 Demo Depth 400 · Novelty 2/3

    Demo: hosted code-review agent, traces to RLE task sets, graders and SFT/RL loops

    A PR is opened and a listener forwards it to a GPT-Sol-powered code review agent running as a Foundry hosted agent, whose traces, tool calls and graph view are inspected. Traces of real PRs are converted into RLE task sets (about 150), and an LLM grader assigns rewards based on how many review comments the author accepted. The RLE combines tasks, graders, the model, the agent harness and training parameters; SFT handles the cold-start alignment of the small model, and programmed SFT and RL loops expose granular configuration such as samplers and rewards while code runs on CPU and offloads to remote GPUs.

  10. 31:54 Demo Depth 300 · Novelty 2/3

    Demo: training UI, loss curves, azd RLE runs and LoRA deployment on managed compute

    The RLE eval shows the base model scoring poorly and GPT-Sol scoring well. The managed training UI offers SFT, DPO and reinforcement fine-tuning over a model list, with new MAI 2 models described as coming. Training observability shows SFT loss curves and RL reward metrics; RLE runs are listed and launched via azd commands or notebooks and monitored remotely. LoRA checkpoints from SFT and RL are deployed together with a same-family base model on managed compute, and the trained Qwen model outperforms the base, SFT-only and GPT-Sol models on code review.

  11. 35:07 Demo Depth 300 · Novelty 2/3

    Demo: comparing tool calls and tokens across models and the live PR review result

    Foundry's comparison view shows four models (Qwen base, Qwen SFT, Qwen SFT+RL, GPT-Sol); the SFT+RL model makes significantly fewer tool calls and uses fewer tokens, with a much shorter call stack. On reward, both GPT-Sol and the SFT+RL model reach one, but the small model is faster and cheaper. MAI 2 was not available when the partner ran this, and the speaker expects it to perform better than Qwen. In the live PR, GPT-Sol and the Qwen base model left no comments, while the SFT+RL model left meaningful review comments.

  12. 37:53 Deep dive Depth 200 · Novelty 1/3

    Demo outcome: 24x cheaper code review and applying the method to coding agents

    The speaker summarises that the trained model completed more tasks and was about 24x cheaper and faster. He argues the same technique applies to other verifiable tasks, including coding, where large frontier models can cost thousands of dollars per developer. Traces from large models and harnesses can be used to train a capable model such as an MAI model on Foundry to reach similar results at lower cost.

  13. 39:26 Customer story Depth 200 · Novelty 2/3

    Heidi Health: training an open model for clinical evidence answers with SFT and RL

    Simon Zhao (Head of Research, Heidi Health) describes a medical scribe company handling 2.7 million consultations per week with a 12-person research team. Its Evidence product answers doctors' questions by searching, reading and synthesising sources, and the team works backwards from evaluation (accuracy, faithfulness, latency, cost, completeness, certainty). A small open model starting at 7.5 on the internal benchmark gained about 3 points with SFT and then surpassed a frontier model after reinforcement learning on Foundry. The result is roughly 10x lower inference cost, several million dollars saved per month, lower latency and, most importantly for them, model ownership for patient privacy and compliance.

  14. 44:22 Customer story Depth 300 · Novelty 2/3

    Heidi Health: Tinker API architecture, effort and training lessons

    Heidi owns the tools, sandbox, RL environment, evaluation, loss computation and reward gathering, while the Tinker API abstracts Foundry GPUs for sampling, backpropagation and weight updates from trainer to sampler. Simon says an agent did much of the work and the whole task took less than 40 hours. Lessons: synthetic data for training but evaluation on real cases, SFT first to learn trajectory shape followed by RL, and renting GPU compute while owning everything else.

  15. 46:31 Closing Depth 100 · Novelty 1/3

    Wrap-up: path to production for trained models and RLE registration

    The closing restates that Foundry provides a path to production for fine-tuned OpenAI, MAI and open-weight models. Attendees interested in reinforcement learning environments, described as a new thing, are pointed to a QR code to register.

Announcements (7)

  • 09:37 not stated Microsoft Foundry

    Qwen family fine-tuning in Foundry

    Adds the Qwen open-weight model family to the models that can be fine-tuned in Foundry.

    Speaker’s quote (at 09:37)
    „We are bringing a new set of the open source, open weight models, including Muse Glamour family, Queen family, Namatron family.“
  • 09:37 not stated Microsoft Foundry

    Nemotron family fine-tuning in Foundry

    Adds the Nemotron open-weight model family to the models that can be fine-tuned in Foundry.

    Speaker’s quote (at 09:37)
    „We are bringing a new set of the open source, open weight models, including Muse Glamour family, Queen family, Namatron family.“
  • 09:37 not stated Microsoft Foundry

    Microsoft MAI model fine-tuning in Foundry

    Brings Microsoft MAI models into Foundry training for the first time, starting with a specialised, cost-efficient code model (captioned 'MAI code to Flash').

    Speaker’s quote (at 09:37)
    „for the very first time, we bring Microsoft MAI model into the training, starting from MAI code to Flash, a highly specialized, cost-efficient model for fine-tuning.“
  • 20:25 GA Microsoft Foundry

    Managed compute in Foundry

    A deployment option where customers own their GPUs and can optimise serving for both base models and LoRA models.

    Speaker’s quote (at 20:25)
    „And we also introduce a new way of deploying models. It went GA into what we call managed compute and foundry.“
  • 20:25 not stated Microsoft Foundry

    Reinforcement learning environments (RLE)

    Package domain knowledge as tasks, evals and graders with supported task-set formats and harnesses to train agents with verifiable rewards.

    Speaker’s quote (at 20:25)
    „We talked about RLE. This is 1 new concept, which is very different than reinforcement learning.“
  • 20:51 not stated Microsoft Foundry

    Programmed training

    Lets users control every part of the training loop from their own machine while Foundry manages serverless GPUs.

    Speaker’s quote (at 20:51)
    „So in terms of program training, what this basically means is unlike managed training where you basically take a data set, pick a method, fire and forget“
  • 32:23 roadmap Microsoft Foundry

    MAI 2 models in Foundry managed training

    New MAI 2 models will be selectable for supervised and reinforcement fine-tuning in managed training.

    Speaker’s quote (at 32:23)
    „We also have basically coming in new MAI 2 models as well that you can use. Same thing with reinforcement fine tuning.“

Demos (3)

  • 26:02 Not stated Microsoft Foundry

    Train a small open model to perform code review using an organisation's real PR history, for engineering teams facing review bottlenecks.

    Steps (8)
    1. Open a pull request on GitHub (here: block npm publishing if the Docker image build fails).
    2. Run a listener that forwards new PRs to a code review agent deployed as a Foundry hosted agent.
    3. Inspect the hosted agent's traces, tool calls and graph view in Foundry.
    4. Kick off a supervised fine-tuning job.
    5. Convert hosted-agent traces of real PRs into task sets, one per PR (about 150), and define a holdout set.
    6. Define a grader with an LLM that rewards review comments according to how many the PR author accepted.
    7. Assemble the RLE from tasks, graders, the model to train, the agent harness and training parameters.
    8. Configure programmed SFT and RL loops (gradient/weight optimisation, samplers, rewards) running locally while training runs on remote GPUs.

    Prerequisites: A GitHub repository with historical PRs and review comments, a code review agent deployed as a Foundry hosted agent, and access to Foundry training.

  • 31:54 Not stated Microsoft Foundry

    Monitor SFT and RL training of the code review model and deploy the resulting LoRA adapters for comparison.

    Steps (8)
    1. Open the RLE in the Foundry UI and review eval scores of the base model and GPT-Sol.
    2. Open managed training and choose a method (SFT, DPO or reinforcement fine-tuning) and a model.
    3. Monitor the running SFT job's loss curve and the RL run's metrics in training observability.
    4. List environments and launch RLE training with azd commands (or from a notebook).
    5. Track the remote monitor showing the reward score rising.
    6. Select LoRA checkpoints from the SFT and RL runs.
    7. Create a managed compute deployment, name it, choose a same-family base model and deploy the base model plus SFT and RFT LoRA weights.
    8. Compare code review performance of the base, SFT, SFT+RL and GPT-Sol models.

    Prerequisites: Completed RLE setup from the previous steps, access to Foundry training and managed compute capacity.

  • 35:07 Not stated Microsoft Foundry

    Evaluate why the trained small model is more efficient and verify its behaviour on a live PR.

    Steps (5)
    1. Open the comparison view for the four models (base, SFT, SFT+RL, GPT-Sol).
    2. Compare the number of tool calls and tokens used per model.
    3. Inspect each model's call stack and individual tool calls.
    4. Review reward, token and tool-call metrics side by side.
    5. Return to the live PR and check the review comments left by each model.

    Prerequisites: Deployed base, SFT, SFT+RL and GPT-Sol models connected to the code review agent.

Watch on Microsoft’s site: BRK252