Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc committed Feb 20, 2024
1 parent 2433652 commit b8c05ca
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
24 changes: 12 additions & 12 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<PackageVersion Include="Azure.Storage.Queues" Version="12.17.1" />
<PackageVersion Include="ClosedXML" Version="0.102.1" />
<PackageVersion Include="DocumentFormat.OpenXml" Version="2.20.0" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.58" />
<PackageVersion Include="LLamaSharp" Version="0.9.1" />
<PackageVersion Include="LLamaSharp.Backend.Cpu" Version="0.9.1" />
<PackageVersion Include="LLamaSharp.Backend.Cuda12" Version="0.9.1" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.59" />
<PackageVersion Include="LLamaSharp" Version="0.10.0" />
<PackageVersion Include="LLamaSharp.Backend.Cpu" Version="0.10.0" />
<PackageVersion Include="LLamaSharp.Backend.Cuda12" Version="0.10.0" />
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
Expand All @@ -33,18 +33,18 @@
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
<PackageVersion Include="System.Memory.Data" Version="8.0.0" />
<PackageVersion Include="System.Numerics.Tensors" Version="8.0.0" />
<PackageVersion Include="System.Text.Json" Version="8.0.1" />
<PackageVersion Include="System.Text.Json" Version="8.0.2" />
</ItemGroup>
<!-- Kernel Memory -->
<ItemGroup>
<PackageVersion Include="Microsoft.KernelMemory.Abstractions" Version="0.28.240212.1" />
<PackageVersion Include="Microsoft.KernelMemory.Abstractions" Version="0.29.240219.2" />
<PackageVersion Include="KernelMemory.MemoryStorage.SqlServer" Version="1.3.1" />
<PackageVersion Include="FreeMindLabs.KernelMemory.Elasticsearch" Version="0.9.5" />
</ItemGroup>
<!-- Semantic Kernel -->
<ItemGroup>
<PackageVersion Include="Microsoft.SemanticKernel.Abstractions" Version="1.3.0" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.OpenAI" Version="1.3.0" />
<PackageVersion Include="Microsoft.SemanticKernel.Abstractions" Version="1.4.0" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.OpenAI" Version="1.4.0" />
</ItemGroup>
<!-- Documentation -->
<ItemGroup>
Expand All @@ -56,11 +56,11 @@
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.8.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0" />
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.9.28" />
<PackageVersion Include="Roslynator.CodeAnalysis.Analyzers" Version="4.10.0">
<PackageVersion Include="Roslynator.CodeAnalysis.Analyzers" Version="4.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="Roslynator.Formatting.Analyzers" Version="4.10.0">
<PackageVersion Include="Roslynator.Formatting.Analyzers" Version="4.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
Expand All @@ -71,9 +71,9 @@
<PackageVersion Include="Xunit.DependencyInjection" Version="8.9.1" />
<PackageVersion Include="Xunit.DependencyInjection.Logging" Version="8.1.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="xunit" Version="2.6.6" />
<PackageVersion Include="xunit" Version="2.7.0" />
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SemanticKernel" Version="1.3.0" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.4.0" />
<PackageReference Include="Microsoft.KernelMemory.SemanticKernelPlugin" Version="0.28.240212.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.0" />
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.AzureAppConfiguration" Version="7.0.0" />
</ItemGroup>
Expand Down
8 changes: 7 additions & 1 deletion extensions/LlamaSharp/LlamaSharp/LlamaSharpTextGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public IAsyncEnumerable<string> GenerateTextAsync(
PresencePenalty = (float)options.PresencePenalty,
FrequencyPenalty = (float)options.FrequencyPenalty,
AntiPrompts = options.StopSequences.ToList(),
LogitBias = options.TokenSelectionBiases,
LogitBias = new(),
// RepeatLastTokensCount = 0, // [int] last n tokens to penalize (0 = disable penalty, -1 = context size)
// TopK = 0, // [int] The number of highest probability vocabulary tokens to keep for top-k-filtering.
// MinP = 0, // [float]
Expand All @@ -120,6 +120,12 @@ public IAsyncEnumerable<string> GenerateTextAsync(
// Mirostat = MirostatType.Disable, // see https://github.com/basusourya/mirostat
// Grammar = null // SafeLLamaGrammarHandle
};

foreach (KeyValuePair<int, float> b in options.TokenSelectionBiases)
{
settings.LogitBias!.Add(b.Key, b.Value);
}

return executor.InferAsync(prompt, settings, cancellationToken);
}

Expand Down
4 changes: 2 additions & 2 deletions service/Service/Service.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.9.0">
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.9.0">
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit b8c05ca

Please sign in to comment.