Aleksei Smirnov
8558d109b4
Fix documentation according to the changes in newer versions
1 year ago
Martin Evans
9813a30193
Merge pull request #358 from xbotter/unittest-net8
Upgrade unittest target framework to .NET 8.0
1 year ago
xbotter
340bbbcf48
Move JSON converter for TensorSplitsCollection
1 year ago
Martin Evans
728f7077d8
Merge pull request #360 from martindevans/macos_avx
Added AVX and AVX2 to MacOS x86_64 builds
1 year ago
Martin Evans
0b8422ea7f
Added AVX and AVX2 to MacOS x86_64 builds
1 year ago
Martin Evans
01c7f1b4da
Update LLama/Common/ModelParams.cs
1 year ago
Martin Evans
e6148c952e
Fixed encoding of `Encoding`
1 year ago
xbotter
df66d7e0c6
Upgrade unittest target framework to .net8
1 year ago
Martin Evans
d87d654a34
Merge pull request #348 from martindevans/new_object_based_sampling_pipeline
Custom Sampling Pipelines
1 year ago
Martin Evans
50c1b2d52d
Merge pull request #344 from philippjbauer/master
Rebuilt ChatSession class
1 year ago
Martin Evans
8a2923a7bc
Merge pull request #352 from SciSharp/dependabot/nuget/xunit-2.6.3
build(deps): bump xunit from 2.6.2 to 2.6.3
1 year ago
Rinne
fb75e06293
fix: output prefix of Chinese example.
1 year ago
dependabot[bot]
85dc43dde0
build(deps): bump xunit from 2.6.2 to 2.6.3
Bumps [xunit](https://github.com/xunit/xunit ) from 2.6.2 to 2.6.3.
- [Commits](https://github.com/xunit/xunit/compare/2.6.2...2.6.3 )
---
updated-dependencies:
- dependency-name: xunit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Martin Evans
ec6d0e8778
Merge pull request #353 from SciSharp/dependabot/nuget/xunit.runner.visualstudio-2.5.5
build(deps): bump xunit.runner.visualstudio from 2.5.4 to 2.5.5
1 year ago
Rinne
836f071cd0
fix: Chinese example.
1 year ago
dependabot[bot]
8fb4476813
build(deps): bump xunit.runner.visualstudio from 2.5.4 to 2.5.5
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit ) from 2.5.4 to 2.5.5.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases )
- [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.5.4...2.5.5 )
---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Philipp Bauer
29c5c6e93c
Update the StatefulChatService to use new ChatSession integration
1 year ago
Philipp Bauer
f669a4f5a7
Update the Chinese chat sample to use new ChatSession integration
1 year ago
Philipp Bauer
2cc01efdae
Merge branch 'SciSharp:master' into master
1 year ago
Rinne
3019da9d22
Merge pull request #341 from xbotter/sk/chat-stateless
🔧 Refactor Semantic Kernel chat completion implementation
1 year ago
Martin Evans
835958398c
- Removed the object wrappers and configurable pipeline, they can be better written in code.
- Added BaseSamplingPipeline which provides a base impl of `ISamplingPipeline`
- Added `DefaultSamplingPipeline` which mimics normal llama.cpp sampling
1 year ago
Martin Evans
3afc007499
- Added "protected" logits, instead of the awkward save/load mechanism
- Added an example usage to one of the tests
1 year ago
Martin Evans
b34f72a883
- Added `SamplingPipeline` to inference params which overrides all other options with an entirely custom pipeline.
- Added a `Sample` method to `LLamaContext` which uses a custom pipeline
- Modified all executors to use the custom pipeline if it exists
1 year ago
Martin Evans
4fc743c9ba
Merge branch 'master' into master
1 year ago
xbotter
22a775e1b0
Merge branch 'SciSharp:master' into sk/chat-stateless
1 year ago
Philipp Bauer
422605d980
Re-add ChatSession examples
2 years ago
Philipp Bauer
73d1725954
Modified / updated ChatSession examples
2 years ago
Philipp Bauer
67e6d633fd
Rebuild ChatSession class
- Saves with serialized ChatHistory of session
- Only allows use of ChatHistory.Message (instead of raw text)
for easy post-processing with IHistoryTransform implementation
- Provides History Management methods
- Allows user to regenerate last assistant message
2 years ago
Philipp Bauer
cb480f04af
Prevent compilation errors due to duplicated assembly info
2 years ago
Philipp Bauer
f1eac82ecc
Update target frameworks with .NET 8
2 years ago
Martin Evans
33358124db
Initial pass at a new sampling pipeline
1 year ago
xbotter
a2b26faa7a
🔧 Refactor chat completion implementation
- Refactored the chat completion implementation in `LLamaSharpChatCompletion.cs` to use `StatelessExecutor` instead of `InteractiveExecutor`.
- Updated the chat history prompt in `LLamaSharpChatCompletion.cs` to include a conversation between the assistant and the user.
- Modified the `HistoryTransform` class in `HistoryTransform.cs` to append the assistant role to the chat history prompt.
- Updated the constructor of `LLamaSharpChatCompletion` to accept optional parameters for `historyTransform` and `outputTransform`.
- Modified the `GetChatCompletionsAsync` and `GetChatCompletions` methods in `LLamaSharpChatCompletion.cs` to use the new `StatelessExecutor` and `outputTransform`.
- Updated the `ExtensionMethods.cs` file to include the assistant and system roles in the list of anti-prompts.
1 year ago
Rinne
ac3cc7c039
Merge pull request #339 from markvantilburg/patch-1
Update README.md
1 year ago
mark van tilburg
93eb885253
Update README.md
Update example to the latest version
1 year ago
Rinne
884f5ade13
Merge pull request #334 from AsakusaRinne/master
ci: fix error in auto-release.
2 years ago
Martin Evans
20f03a5cee
Merge pull request #335 from SciSharp/martindevans-patch-1
Update README.md
2 years ago
Martin Evans
c067570803
Update README.md
2 years ago
Rinne
35624d688c
ci: fix error in auto-release.
2 years ago
Rinne
1f97ad874b
Merge pull request #333 from AsakusaRinne/master
feat: allow customized search path for native library loading.
2 years ago
Rinne
ffc347a3f3
resolve comments.
2 years ago
Rinne
b05c3154f4
feat: allow customized search path for native library loading.
2 years ago
Martin Evans
6dfda5e8be
Merge pull request #331 from SciSharp/martindevans-patch-1
Update README.md
2 years ago
Martin Evans
adb3dcecc6
Update README.md
Minor spelling fixes
2 years ago
Martin Evans
597b8c7653
Merge pull request #329 from SciSharp/dependabot/nuget/xunit.runner.visualstudio-2.5.4
build(deps): bump xunit.runner.visualstudio from 2.5.3 to 2.5.4
2 years ago
Martin Evans
15586d8cc8
Merge pull request #330 from SciSharp/dependabot/nuget/Spectre.Console-0.48.0
build(deps): bump Spectre.Console from 0.47.0 to 0.48.0
2 years ago
dependabot[bot]
36adc4af32
build(deps): bump Spectre.Console from 0.47.0 to 0.48.0
Bumps [Spectre.Console](https://github.com/spectreconsole/spectre.console ) from 0.47.0 to 0.48.0.
- [Release notes](https://github.com/spectreconsole/spectre.console/releases )
- [Commits](https://github.com/spectreconsole/spectre.console/compare/0.47.0...0.48.0 )
---
updated-dependencies:
- dependency-name: Spectre.Console
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
6d86219d71
build(deps): bump xunit.runner.visualstudio from 2.5.3 to 2.5.4
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit ) from 2.5.3 to 2.5.4.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases )
- [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.5.3...2.5.4 )
---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Rinne
59b74aa8b4
Merge pull request #321 from SciSharp/dependabot/nuget/Microsoft.VisualStudio.Validation-17.8.8
build(deps): bump Microsoft.VisualStudio.Validation from 17.6.11 to 17.8.8
2 years ago
Rinne
687fff5608
Merge pull request #326 from AsakusaRinne/fix_chinese
fix: Chinese encoding error with gb2312.
2 years ago
Rinne
605d1ddb3f
revert a change.
2 years ago