Coder Social home page Coder Social logo

how to make it faster about sherpa HOT 6 OPEN

scrawnyether5669 avatar scrawnyether5669 commented on June 29, 2024
how to make it faster

from sherpa.

Comments (6)

dsd avatar dsd commented on June 29, 2024

I have a branch that moves more of the processing into native code, I believe it should bring a noticable performance improvement. You can also try 3B models with this version, which should also be much faster. Feel free to try.
Note that the new llama.cpp changes model compatibility, models that used to work with Sherpa probably don't work any more until conversion.
Pull request: #12
apk available: https://github.com/dsd/sherpa/releases/tag/2.2.1-dsd2

from sherpa.

realcarlos avatar realcarlos commented on June 29, 2024

I have a branch that moves more of the processing into native code, I believe it should bring a noticable performance improvement. You can also try 3B models with this version, which should also be much faster. Feel free to try. Note that the new llama.cpp changes model compatibility, models that used to work with Sherpa probably don't work any more until conversion. Pull request: #12 apk available: https://github.com/dsd/sherpa/releases/tag/2.2.1-dsd2

Hi dsd, it works with the apk you provided , but I failed to run it from your forked source.
and when I run on my Mac , it shows "Library not loaded: @rpath/libllama.dylib"

from sherpa.

dsd avatar dsd commented on June 29, 2024

It's my first time developing Android apps but feel free to share info about the failure to run from source and I will let you know if I have any ideas.

I did not do any work to retain Mac compatibility but I think this is what needs to be done: #12 (comment)

from sherpa.

suoko avatar suoko commented on June 29, 2024

I have a branch that moves more of the processing into native code, I believe it should bring a noticable performance improvement. You can also try 3B models with this version, which should also be much faster. Feel free to try. Note that the new llama.cpp changes model compatibility, models that used to work with Sherpa probably don't work any more until conversion. Pull request: #12 apk available: https://github.com/dsd/sherpa/releases/tag/2.2.1-dsd2

Is this app using both CPU and GPU of smartphones?
Also, is there any chance to make it run with less RAM like 4gb?

from sherpa.

dsd avatar dsd commented on June 29, 2024

llama.cpp is used as the backend, so you would need to check if llama.cpp supports your GPU, and if it is usable on 4GB RAM with the model you are interested in.

from sherpa.

suoko avatar suoko commented on June 29, 2024

llama.cpp is used as the backend, so you would need to check if llama.cpp supports your GPU, and if it is usable on 4GB RAM with the model you are interested in.

Does it support any mobile gpu like mali or adreno?

from sherpa.

Related Issues (20)

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.