LLamaSharp
LLamaSharp copied to clipboard
Possibly useful for documentation: Article by us on Medium about building a Console App with .Net 8.0
Hello.
I apologize for not placing this in a more appropriate place (ah well), since I do not know where, so if anyone will move it, or delete it, no problemo.
I've written a short tutorial on Medium.com about building with VS2022 Community 2022 a Console App with LlamaSharp 0.10.0 on .NET 8.0. If I made mistakes, please do correct me and I'll change the text accordingly. I have no idea how to insert mages here in the comments... sorry, again.
Thank you for your attention.
"Creating a Console App with C#, .NET 8.0 and LlamaSharp 0.10.0" (by SINAPSA Infocomplex) https://medium.com/@contact_30070/creating-a-console-app-with-net-8-0-and-llamasharp-0-10-0-45b9adf577a3
Opening a Discussion thread or posting something on Discord would probably be better for something like this. Not a problem though, just a tip!
A few comments on your article:
- Code isn't formatted, so it's nearly unreadable
- You've got a hardcoded path:
H:\\_ llm_models\\mistral-7b-instruct-v0.1.Q4_0.gguf
. It would probably be good to put a step instructing the reader to download it (with a download link). - It might also be handy to note that LLamaSharp development is moving fast, and the code sample may break in new versions.
Thank you.
The code - I've replaced indeed the Tabs with two blanks; - it was stripped of this puny formatting after being enclosed in quotes by the /formatting script on Medium - yet, when Pasted into VS, the environment should format it properly, if not automatically then at least when closing the last } - the interested reader should know how to do this... I think... The links - I sincerely was afraid to insert a link in the post, as I don't know for sure if Medium has a strict policy on such /advertising... As for the updates, I'll insert a message to the reader saying what you said.
Thanks!
(still expecting for Medium to delete the post because of the litany of code... the code for WinForms is larger still :) )