Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Onnx Multi (CPU/GPU/NPU) Target Projects #9437

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
<PackageVersion Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageVersion Include="Microsoft.Identity.Client" Version="4.65.0" />
<!-- OnnxRuntimeGenAI -->
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI" Version="0.4.0" />
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI.Cuda" Version="0.4.0" />
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI.DirectML" Version="0.4.0" />
<PackageVersion Include="Microsoft.ML.OnnxRuntime" Version="1.19.2" />
<PackageVersion Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.19.2" />
<PackageVersion Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.19.2" />
<PackageVersion Include="FastBertTokenizer" Version="1.0.28" />
<PackageVersion Include="PdfPig" Version="0.1.9" />
<PackageVersion Include="Pinecone.NET" Version="2.1.1" />
Expand Down Expand Up @@ -142,9 +148,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!-- OnnxRuntimeGenAI -->
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI" Version="0.4.0" />
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI.Cuda" Version="0.4.0" />
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI.DirectML" Version="0.4.0" />

</ItemGroup>
</Project>
39 changes: 39 additions & 0 deletions dotnet/SK-dotnet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,23 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AotCompatibility", "samples
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SemanticKernel.AotTests", "src\SemanticKernel.AotTests\SemanticKernel.AotTests.csproj", "{39EAB599-742F-417D-AF80-95F90376BB18}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connectors.Onnx.Cpu", "src\Connectors\Connectors.Onnx.Cpu\Connectors.Onnx.Cpu.csproj", "{EA395347-0208-421A-80D7-115BC692DB00}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connectors.Onnx.Gpu", "src\Connectors\Connectors.Onnx.Gpu\Connectors.Onnx.Gpu.csproj", "{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connectors.Onnx.DirectML", "src\Connectors\Connectors.Onnx.DirectML\Connectors.Onnx.DirectML.csproj", "{A078C93D-58DF-4501-953B-9ED54BC58A04}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Onnx", "Onnx", "{30223E3A-E7B0-4B85-BBDE-7E546FE7D9F0}"
ProjectSection(SolutionItems) = preProject
src\InternalUtilities\connectors\AI\Onnx\BertOnnxOptions.cs = src\InternalUtilities\connectors\AI\Onnx\BertOnnxOptions.cs
src\InternalUtilities\connectors\AI\Onnx\BertOnnxTextEmbeddingGenerationService.cs = src\InternalUtilities\connectors\AI\Onnx\BertOnnxTextEmbeddingGenerationService.cs
src\InternalUtilities\connectors\AI\Onnx\OnnxKernelBuilderExtensions.cs = src\InternalUtilities\connectors\AI\Onnx\OnnxKernelBuilderExtensions.cs
src\InternalUtilities\connectors\AI\Onnx\OnnxRuntimeGenAIChatCompletionService.cs = src\InternalUtilities\connectors\AI\Onnx\OnnxRuntimeGenAIChatCompletionService.cs
src\InternalUtilities\connectors\AI\Onnx\OnnxRuntimeGenAIPromptExecutionSettings.cs = src\InternalUtilities\connectors\AI\Onnx\OnnxRuntimeGenAIPromptExecutionSettings.cs
src\InternalUtilities\connectors\AI\Onnx\OnnxServiceCollectionExtensions.cs = src\InternalUtilities\connectors\AI\Onnx\OnnxServiceCollectionExtensions.cs
src\InternalUtilities\connectors\AI\Onnx\PoolingMode.cs = src\InternalUtilities\connectors\AI\Onnx\PoolingMode.cs
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Process.Utilities.UnitTests", "src\Experimental\Process.Utilities.UnitTests\Process.Utilities.UnitTests.csproj", "{DAC54048-A39A-4739-8307-EA5A291F2EA0}"
EndProject
Global
Expand Down Expand Up @@ -1039,6 +1056,24 @@ Global
{39EAB599-742F-417D-AF80-95F90376BB18}.Publish|Any CPU.Build.0 = Publish|Any CPU
{39EAB599-742F-417D-AF80-95F90376BB18}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39EAB599-742F-417D-AF80-95F90376BB18}.Release|Any CPU.Build.0 = Release|Any CPU
{EA395347-0208-421A-80D7-115BC692DB00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA395347-0208-421A-80D7-115BC692DB00}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA395347-0208-421A-80D7-115BC692DB00}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
{EA395347-0208-421A-80D7-115BC692DB00}.Publish|Any CPU.Build.0 = Publish|Any CPU
{EA395347-0208-421A-80D7-115BC692DB00}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA395347-0208-421A-80D7-115BC692DB00}.Release|Any CPU.Build.0 = Release|Any CPU
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}.Publish|Any CPU.Build.0 = Publish|Any CPU
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7}.Release|Any CPU.Build.0 = Release|Any CPU
{A078C93D-58DF-4501-953B-9ED54BC58A04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A078C93D-58DF-4501-953B-9ED54BC58A04}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A078C93D-58DF-4501-953B-9ED54BC58A04}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
{A078C93D-58DF-4501-953B-9ED54BC58A04}.Publish|Any CPU.Build.0 = Publish|Any CPU
{A078C93D-58DF-4501-953B-9ED54BC58A04}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A078C93D-58DF-4501-953B-9ED54BC58A04}.Release|Any CPU.Build.0 = Release|Any CPU
{DAC54048-A39A-4739-8307-EA5A291F2EA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAC54048-A39A-4739-8307-EA5A291F2EA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAC54048-A39A-4739-8307-EA5A291F2EA0}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -1188,6 +1223,10 @@ Global
{E82B640C-1704-430D-8D71-FD8ED3695468} = {5A7028A7-4DDF-4E4F-84A9-37CE8F8D7E89}
{6ECFDF04-2237-4A85-B114-DAA34923E9E6} = {5D4C0700-BBB5-418F-A7B2-F392B9A18263}
{39EAB599-742F-417D-AF80-95F90376BB18} = {831DDCA2-7D2C-4C31-80DB-6BDB3E1F7AE0}
{EA395347-0208-421A-80D7-115BC692DB00} = {1B4CBDE0-10C2-4E7D-9CD0-FE7586C96ED1}
{6DEB0DDA-F7E4-492F-A2E6-2F6297EE8FB7} = {1B4CBDE0-10C2-4E7D-9CD0-FE7586C96ED1}
{A078C93D-58DF-4501-953B-9ED54BC58A04} = {1B4CBDE0-10C2-4E7D-9CD0-FE7586C96ED1}
{30223E3A-E7B0-4B85-BBDE-7E546FE7D9F0} = {C7299F56-3A55-471E-B10E-B1FBE101C625}
{DAC54048-A39A-4739-8307-EA5A291F2EA0} = {0D8C6358-5DAA-4EA6-A924-C268A9A21BC9}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- THIS PROPERTY GROUP MUST COME FIRST -->
<AssemblyName>Microsoft.SemanticKernel.Connectors.Onnx.Cpu</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<VersionSuffix>alpha</VersionSuffix>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
<NoWarn>$(NoWarn);CA1050;RCS1110</NoWarn>
</PropertyGroup>

<!-- IMPORT NUGET PACKAGE SHARED PROPERTIES -->
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/Verify.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/NullableAttributes.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/ExperimentalAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/CompilerServicesAttributes.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/IsExternalInit.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresUnreferencedCodeAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresDynamicCodeAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/UnconditionalSuppressMessageAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Text/JsonOptionsCache.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/System/AppContextSwitchHelper.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/connectors/AI/Onnx/*.cs" Link="Onnx/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<PropertyGroup>
<Title>Semantic Kernel - ONNX Connectors</Title>
<Description>Semantic Kernel connectors for the ONNX runtime running on CPUs. Contains services for chat completion and text embedding generation.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<PackageReference Include="FastBertTokenizer" />
<PackageReference Include="Microsoft.ML.OnnxRuntime" />
<PackageReference Include="Microsoft.ML.OnnxRuntimeGenAI" />
<PackageReference Include="System.Numerics.Tensors" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;

// This assembly is currently experimental.
[assembly: Experimental("SKEXP0070")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- THIS PROPERTY GROUP MUST COME FIRST -->
<AssemblyName>Microsoft.SemanticKernel.Connectors.Onnx.DirectML</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<VersionSuffix>alpha</VersionSuffix>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
</PropertyGroup>

<!-- IMPORT NUGET PACKAGE SHARED PROPERTIES -->
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/Verify.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/NullableAttributes.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/ExperimentalAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/CompilerServicesAttributes.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/IsExternalInit.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresUnreferencedCodeAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresDynamicCodeAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/UnconditionalSuppressMessageAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Text/JsonOptionsCache.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/System/AppContextSwitchHelper.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/connectors/AI/Onnx/*.cs" Link="Onnx/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<PropertyGroup>
<Title>Semantic Kernel - ONNX Connectors</Title>
<Description>Semantic Kernel connectors for the ONNX runtime running on DirectML enabled hardware (NPU). Contains services for chat completion and text embedding generation.</Description>
</PropertyGroup>


<ItemGroup>
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<PackageReference Include="FastBertTokenizer" />
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" />
<PackageReference Include="Microsoft.ML.OnnxRuntimeGenAI.DirectML" />
<PackageReference Include="System.Numerics.Tensors" />
</ItemGroup>

</Project>
6 changes: 6 additions & 0 deletions dotnet/src/Connectors/Connectors.Onnx.Gpu/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;

// This assembly is currently experimental.
[assembly: Experimental("SKEXP0070")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- THIS PROPERTY GROUP MUST COME FIRST -->
<AssemblyName>Microsoft.SemanticKernel.Connectors.Onnx.Gpu</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<VersionSuffix>alpha</VersionSuffix>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
<NoWarn>$(NoWarn);CA1050;RCS1110</NoWarn>
</PropertyGroup>

<!-- IMPORT NUGET PACKAGE SHARED PROPERTIES -->
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/Verify.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/NullableAttributes.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/ExperimentalAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/CompilerServicesAttributes.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/IsExternalInit.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresUnreferencedCodeAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresDynamicCodeAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/UnconditionalSuppressMessageAttribute.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Text/JsonOptionsCache.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/System/AppContextSwitchHelper.cs" Link="InternalUtilities/%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/connectors/AI/Onnx/*.cs" Link="Onnx/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<PropertyGroup>
<Title>Semantic Kernel - ONNX Connectors</Title>
<Description>Semantic Kernel connectors for the ONNX runtime running on GPUs. Contains services for chat completion and text embedding generation.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<PackageReference Include="FastBertTokenizer" />
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" />
<PackageReference Include="Microsoft.ML.OnnxRuntimeGenAI.Cuda" />
<PackageReference Include="System.Numerics.Tensors" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<ItemGroup>
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<ProjectReference Include="..\Connectors.Onnx\Connectors.Onnx.csproj" />
<ProjectReference Include="..\Connectors.Onnx.Cpu\Connectors.Onnx.Cpu.csproj" />
</ItemGroup>

</Project>
29 changes: 2 additions & 27 deletions dotnet/src/Connectors/Connectors.Onnx/Connectors.Onnx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,13 @@
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
</PropertyGroup>

<!-- IMPORT NUGET PACKAGE SHARED PROPERTIES -->
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

<ItemGroup>
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/Verify.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/NullableAttributes.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/ExperimentalAttribute.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/CompilerServicesAttributes.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/IsExternalInit.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresUnreferencedCodeAttribute.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/RequiresDynamicCodeAttribute.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Diagnostics/UnconditionalSuppressMessageAttribute.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/Text/JsonOptionsCache.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Include="$(RepoRoot)/dotnet/src/InternalUtilities/src/System/AppContextSwitchHelper.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<PropertyGroup>
<Title>Semantic Kernel - ONNX Connectors</Title>
<Description>Semantic Kernel connectors for the ONNX runtime. Contains clients for text embedding generation.</Description>
<Description>Semantic Kernel connectors for the ONNX runtime running on CPUs. Contains services for chat completion and text embedding generation.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<PackageReference Include="FastBertTokenizer" />
<PackageReference Include="Microsoft.ML.OnnxRuntime" />
<PackageReference Include="System.Numerics.Tensors" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ML.OnnxRuntimeGenAI" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' " />
<PackageReference Include="Microsoft.ML.OnnxRuntimeGenAI.Cuda" Condition=" '$(Configuration)' == 'Debug_Cuda' OR '$(Configuration)' == 'Release_Cuda' " />
<PackageReference Include="Microsoft.ML.OnnxRuntimeGenAI.DirectML" Condition=" '$(Configuration)' == 'Debug_DirectML' OR '$(Configuration)' == 'Release_DirectML' " />
<ProjectReference Include="..\Connectors.Onnx.Cpu\Connectors.Onnx.Cpu.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

namespace Microsoft.SemanticKernel.Connectors.Onnx;

/// <summary>Provides an options bag used to configure <see cref="BertOnnxTextEmbeddingGenerationService"/>.</summary>
/// <summary>
/// Provides an options bag used to configure <see cref="BertOnnxTextEmbeddingGenerationService"/>.
/// </summary>
public sealed class BertOnnxOptions
{
private int _maximumTokens = 512;
Expand Down
Loading
Loading