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: Integrate LLamaSharp to enable LLaMa model inference #1215

Closed
AsakusaRinne opened this issue May 25, 2023 · 11 comments
Closed

.Net: Integrate LLamaSharp to enable LLaMa model inference #1215

AsakusaRinne opened this issue May 25, 2023 · 11 comments
Labels
auto-closed Automatically closed

Comments

@AsakusaRinne
Copy link

AsakusaRinne commented May 25, 2023

Hi all, great work so far! As the open-source LLM models become more and more hot, will semantic-kernel consider supporting some of them such as LLaMa? I'm the main author of LLamaSharp, which is the .NET binding of llama.cpp. I wonder if it's possible to integrate LLamaSharp into semantic-kernel to add support for some open-source LLM models (as you can see, llama.cpp support 10 kinds of models). I'd like to work for this integration if it's taken into account to the future version of semantic-kernel. Thank you for your consideration.

@craigomatic
Copy link
Contributor

Thanks for posting, this does sound interesting and I wonder if it would be possible to provide a LLamaSharp implementation along the lines of this sample: https://github.com/microsoft/semantic-kernel/blob/main/samples/dotnet/kernel-syntax-examples/Example16_CustomLLM.cs

@dluc make have opinions here also

@evchaki
Copy link
Contributor

evchaki commented May 25, 2023

@AsakusaRinne , let us know if you want to do a PR for this based on the other examples of how other models work.

@AsakusaRinne
Copy link
Author

Hi, thanks to the efforts of community, there's an example here to use LLamaSharp with sk. The example uses the latest pre-release of sk and is easy to deploy. Please have a look and I'll improve it with your advice.

@AsakusaRinne
Copy link
Author

@evchaki @craigomatic Please let me know if I can provide any further information to help move this forward. Thank you for your time and attention.

@drasticactions
Copy link
Member

We have a basic implementation of this in LLamaSharp itself now: https://github.com/SciSharp/LLamaSharp/tree/master/LLama.SemanticKernel

I'm not sure how stable the Abstractions library is though, I've had to bump it due to a recent change in IChatCompletion. I'm not sure bringing this implementation into this repo makes sense, but maybe there could be more said for changes like these?

@dluc
Copy link
Collaborator

dluc commented Oct 10, 2023

I'm definitely going to take this in somehow :-)

@KSemenenko
Copy link

I can do this =)

@matthewbolanos matthewbolanos changed the title Integrate LLamaSharp to enable LLaMa model inference .NET: Integrate LLamaSharp to enable LLaMa model inference Nov 28, 2023
@matthewbolanos matthewbolanos added ai connector Anything related to AI connectors .NET Issue or Pull requests regarding .NET code labels Nov 28, 2023
@github-actions github-actions bot changed the title .NET: Integrate LLamaSharp to enable LLaMa model inference .Net: Integrate LLamaSharp to enable LLaMa model inference Nov 28, 2023
@matthewbolanos
Copy link
Member

@drasticactions, now that the abstractions have settled down, would you be interested in bringing in LlamaSharp into the main Semantic Kernel repo?

@xbotter
Copy link
Contributor

xbotter commented Dec 21, 2023

I am currently working on the maintenance of LLamaSharp.SemanticKernel. If possible, I would be willing to do it.

@markwallace-microsoft
Copy link
Member

All .Net issues prior to 1-Dec-2023 are being closed. Please re-open, if this issue is still relevant to the .Net Semantic Kernel 1.x release. In the future all issues that are inactive for more than 90 days will be labelled as 'stale' and closed 14 days later.

@markwallace-microsoft markwallace-microsoft added auto-closed Automatically closed and removed .NET Issue or Pull requests regarding .NET code ai connector Anything related to AI connectors labels Mar 12, 2024
@AsakusaRinne
Copy link
Author

It seems that this issue is still under-working. Please reopen it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-closed Automatically closed
Projects
Archived in project
Development

No branches or pull requests

9 participants