Skip to content

Conversation

@mohammadsheraj
Copy link
Contributor

Packages impacted by this PR

Issues associated with this PR

Describe the problem that is addressed by this PR

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the
    Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

Packages impacted by this PR

Issues associated with this PR

Describe the problem that is addressed by this PR

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive finetuning samples and tests for the Azure AI Projects SDK, demonstrating three fine-tuning methods: Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), and Reinforcement Fine-Tuning (RFT). The changes include test files, sample code for both TypeScript and JavaScript, training/validation datasets, and updated documentation.

Key Changes:

  • Added test infrastructure with helper utilities and comprehensive test suite covering all three fine-tuning methods
  • Implemented sample code demonstrating job creation, deployment, and inference workflows
  • Included training and validation datasets in JSONL format for all fine-tuning types
  • Updated package dependencies to include Azure Cognitive Services Management Client

Reviewed changes

Copilot reviewed 39 out of 44 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/ai/ai-projects/test/public/node/finetuning/finetuningHelper.ts Helper constants and enums for fine-tuning job types, training types, and test parameters
sdk/ai/ai-projects/test/public/node/finetuning/finetuning.spec.ts Comprehensive test suite covering create, retrieve, list, cancel, pause, resume, events, checkpoints, deploy, and infer operations
sdk/ai/ai-projects/test/public/node/finetuning/data/*.jsonl Training and validation datasets for SFT, DPO, and RFT methods
sdk/ai/ai-projects/samples/v2-beta/typescript/src/finetuning/*.ts TypeScript samples for supervised, DPO, reinforcement, and OSS model fine-tuning
sdk/ai/ai-projects/samples/v2-beta/javascript/finetuning/*.js JavaScript equivalents of TypeScript samples
sdk/ai/ai-projects/samples/v2-beta/*/package.json Added @azure/arm-cognitiveservices dependency for model deployment
sdk/ai/ai-projects/samples/v2-beta/typescript/README.md Updated documentation with links to new finetuning samples
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@mohammadsheraj mohammadsheraj changed the title [WIP] Add finetuning samples (#36723) Add finetuning samples (#36723) Dec 16, 2025
@mohammadsheraj mohammadsheraj changed the title Add finetuning samples (#36723) Add finetuning samples and tests Dec 19, 2025
@mohammadsheraj
Copy link
Contributor Author

mohammadsheraj commented Dec 19, 2025

JS SDK Finetuning samples and tests are complete and tested to work.
Please review and approve for merge.

@mohammadsheraj mohammadsheraj enabled auto-merge (squash) December 20, 2025 06:32
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.

3 participants