Skip to content

Remove Microsoft.ML.GenAI.* packages and their supporting code - #7719

Open
rosebyte wants to merge 1 commit into
dotnet:mainfrom
rosebyte:rosebyte-remove-genai-packages
Open

rosebyte wants to merge 1 commit into
dotnet:mainfrom
rosebyte:rosebyte-remove-genai-packages

Conversation

@rosebyte

@rosebyte rosebyte commented Sep 17, 2026

Copy link
Copy Markdown
Member

Fixes #7720

Remove the Microsoft.ML.GenAI.* packages and everything used exclusively to support them.

  • Delete the Core, LLaMA, Mistral and Phi libraries, their test projects, model configurations, approval baselines and samples.
  • Remove all nine associated projects from the solution.
  • Remove ten GenAI-only NuGet dependencies and their unused version properties, including AutoGen, Semantic Kernel, Microsoft.Extensions.AI.Abstractions, TorchSharp.PyBridge and Moq.
  • Delete the GenAI design documentation and the obsolete PyBridge third-party notice.
  • Update the documentation index, package dependency diagram, Copilot instructions and issue-triage guidance.

Copilot AI lite review requested due to automatic review settings September 17, 2026 10:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The cleanup removes the central CUDA package version and documented test-project switch even though the remaining TorchSharp GPU test still depends on them.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Removes the retired Microsoft.ML.GenAI.* packages and their exclusive implementation, tests, samples, documentation, and dependencies.

Changes:

  • Deletes GenAI Core, LLaMA, Mistral, and Phi code and tests.
  • Removes GenAI-specific package versions, dependencies, notices, and documentation.
  • Updates repository documentation and tooling guidance.
File summaries
File Description
THIRD-PARTY-NOTICES.TXT Removes the PyBridge notice.
test/Microsoft.ML.TorchSharp.Tests/Microsoft.ML.TorchSharp.Tests.csproj Removes the commented CUDA package switch.
test/Microsoft.ML.GenAI.Phi.Tests/* Deletes Phi test projects, tests, and approval baselines.
test/Microsoft.ML.GenAI.Mistral.Tests/* Deletes Mistral tests and approval baselines.
test/Microsoft.ML.GenAI.LLaMA.Tests/* Deletes LLaMA tests and approval baselines.
test/Microsoft.ML.GenAI.Core.Tests/* Deletes GenAI Core tests and project configuration.
src/Microsoft.ML.GenAI.Phi/* Deletes Phi implementations, configurations, resources, and project metadata.
src/Microsoft.ML.GenAI.Mistral/* Deletes Mistral implementations, configuration, resources, and project metadata.
src/Microsoft.ML.GenAI.LLaMA/* Deletes LLaMA implementations, configurations, resources, and project metadata.
src/Microsoft.ML.GenAI.Core/* Deletes shared GenAI pipeline, model, training, quantization, and utility code.
eng/Versions.props Removes unused GenAI dependency versions.
Directory.Packages.props Removes GenAI-only package version entries.
docs/samples/Microsoft.ML.GenAI.Samples/* Deletes GenAI samples and project configuration.
docs/README.md Removes the GenAI documentation link.
docs/project-docs/components-and-dependencies.md Removes GenAI dependency diagram entries.
docs/gen-ai/* Deletes GenAI design documentation.
.github/workflows/issue-triage.agent.md Replaces GenAI area guidance with TorchSharp trainer guidance.
.github/copilot-instructions.md Removes obsolete GenAI repository references.
Review details
  • Files reviewed: 146/146 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Directory.Packages.props
Comment on lines 107 to 108
<PackageVersion Include="MathNet.Numerics.Signed" Version="5.0.0" />
<PackageVersion Include="TorchSharp-cuda-windows" Version="0.102.5" />
</ItemGroup>
@@ -30,7 +30,6 @@

<ItemGroup Condition="'$(TargetArchitecture)' == 'x64'">
<PackageReference Include="libtorch-cpu-win-x64" Condition="$([MSBuild]::IsOSPlatform('Windows')) AND '$(TargetArchitecture)' == 'x64'" />
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.

Remove Microsoft.ML.GenAI.* packages and their supporting code

2 participants