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)

Copilot AI review requested due to automatic review settings November 24, 2025 07:11
Copilot finished reviewing on behalf of mohammadsheraj November 24, 2025 07:13
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 finetuning samples for the @azure/ai-projects SDK, introducing sample data files for various finetuning methods (supervised fine-tuning, reward fine-tuning, and direct preference optimization) and a TypeScript sample demonstrating their use.

Key changes:

  • Added TypeScript sample for finetuning operations
  • Added JSONL training/validation datasets for SFT, RFT, and DPO methods
  • Includes training data for multiple finetuning approaches

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sample_finetuning_supervised_job.ts TypeScript sample demonstrating finetuning workflow (currently shows file operations only)
sft_training_set.jsonl Supervised fine-tuning training dataset with 10 examples
sft_validation_set.jsonl Supervised fine-tuning validation dataset with 10 examples
rft_training_set.jsonl Reward fine-tuning training dataset with 100 arithmetic problem examples
rft_validation_set.jsonl Reward fine-tuning validation dataset with 50 arithmetic problem examples
dpo_training_set.jsonl Direct preference optimization training dataset with 20 examples
dpo_validation_set.jsonl Direct preference optimization validation dataset with 2 examples


const projectEndpoint = process.env["AZURE_AI_PROJECT_ENDPOINT"] || "<project endpoint string>";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const filePath = path.join(__dirname, "data", "training_set.jsonl");
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

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

The variable filePath references "data", "training_set.jsonl" but the actual data file in this PR is named sft_training_set.jsonl (for supervised fine-tuning). The path should be corrected to path.join(__dirname, "data", "sft_training_set.jsonl") to match the actual file structure.

Suggested change
const filePath = path.join(__dirname, "data", "training_set.jsonl");
const filePath = path.join(__dirname, "data", "sft_training_set.jsonl");

Copilot uses AI. Check for mistakes.
@mohammadsheraj mohammadsheraj changed the title Add finetuning samples [WIP] Add finetuning samples Nov 25, 2025
@mohammadsheraj mohammadsheraj requested review from a team and jeremymeng as code owners November 26, 2025 06:30
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.

2 participants