eublefar / llamasharpunitydemo Goto Github PK
View Code? Open in Web Editor NEWThis project serves as a simple example on how to integrate the LLAMASharp library into your Unity project.
License: MIT License
This project serves as a simple example on how to integrate the LLAMASharp library into your Unity project.
License: MIT License
is there anyway to use this to give input and output as json format? user and assistant and system prompt separately?
i cannot use this project as llamasharp is updated, i am having this error:
Assets\LlamaSharpTestScript.cs(53,21): error CS1503: Argument 1: cannot convert from 'string' to 'LLama.Common.ChatHistory.Message'
and
Assets\LlamaSharpTestScript.cs(54,21): error CS1503: Argument 2: cannot convert from 'LLama.Common.InferenceParams' to 'bool'
can you please tell me replacement of code?
Your example assumes stream output. But in reality the Output field will be shown only after the output is completely completed.
await foreach (var token in ChatConcurrent(
session.ChatAsync(
bobPrompt,
new InferenceParams()
{
Temperature = 0.6f,
AntiPrompts = new List<string> { "User:" }
}
)
))
{
Output.text += token;
}
Correction - Now the output will be added after each Output.text += token;
await foreach (var token in ChatConcurrent(
session.ChatAsync(
bobPrompt,
new InferenceParams()
{
Temperature = 0.6f,
AntiPrompts = new List<string> { "User:" }
}
)
))
{
Output.text += token;
await UniTask.NextFrame();
}
Hi, Great Work!
my model is taking too much time to generate one token and for a sentence i it takes 30 minutes how can i make it faster?
this project is great, but I think its assuming a windows machine?
The llama.backend.cpu package has a .dylib
file the arm runtime, and I cannot seem to get that to load. Has anyone had success with this project running on an ARM based mac with Unity?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.