Git Product home page Git Product logo

llamasharpunitydemo's People

Contributors

eublefar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

llamasharpunitydemo's Issues

Error with new version of llamasharp

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?

Small fix. No synchronization with Update()

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();
            }

Model Speed

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?

Mac support?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.