Git Product home page Git Product logo

Comments (18)

aehlke avatar aehlke commented on August 16, 2024 2

https://github.com/lake-of-fire/SwiftWhisperStream/blob/master/Sources/SwiftLlama/AI.swift

(which will be launched at https://chatonmac.com if you're curious)

just FYI some minor style feedback, you don't need parens for if-statements and the like in swift (can save you some typing)

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024 1

I have updated the version of llama.cpp and will soon upload it to testflight, I hope the crashes will stop in the new version. Unfortunately, from your reports, I was unable to draw an unambiguous conclusion about the cause of the crashes.

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024 1

This is because the context is shifted incorrectly when overflowing. In the new version of llama.cpp it seems to be possible to do it correctly. I will add it to the update as soon as I figure it out.

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024 1

Thanks. I just realized Orca 3B works with Metal. So it was just llama2 3B that spews nonsense. I'll try your config.

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024 1

Is it possible to reduce the UI hang on model initialization? I couldn't find any open src yet for doing multi-process control of it in swift

I know how to make swiftui not hang during model loading. I will do it in one of the next releases. Right now there are many more priority tasks. But thanks for the offer of help.

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024

Let me know if you don't have access to the crash logs via TestFlight. Latest stable macOS release, your Llama2 7B model file, default settings. After chatting a few times in a row, it crashes.

Unfortunately, I don’t see any crash reports for the MacOS version. Tell me, does it crash when metal is on?

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024

LLMFarm crashes.zip
I believe I was exclusively testing Metal because without it's unusably slow. I tried it without Metal once but didn't try to repro the crashes.

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024
image this crashed with metal disabled

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024

it would be nice to use the newly merged llama.cpp ios build as well. no examples for it exist yet

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024

Tell me, did the update solve the problem?

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024
image doesn't seem to crash anymore! but randomly switches to talking in german mid-sentence sometimes, strange, and about topics I didn't bring up. I don't have experience yet with Llama2.

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024

Tell me, did the update solve the problem?

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024

unfortunately it started reverting to german and then long rambling about a book I didn't mention after a couple messages (continuing the chat I had from above, without creating a new one - let me know if there's something else I should try)

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024

Is there a config that is working for you on your device?

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024

i use this config for test llama2
llama-2-7b-chat-q4_K_M_1693728799.json

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024

Is it possible to reduce the UI hang on model initialization? I couldn't find any open src yet for doing multi-process control of it in swift

from llmfarm.

aehlke avatar aehlke commented on August 16, 2024

FYI I was able to easily do it in my fork by changing AI to an actor (with a couple associated changes). I won't contribute the changes back because the fork's diverged a lot but it's there if you need the reference.

from llmfarm.

guinmoon avatar guinmoon commented on August 16, 2024

FYI I was able to easily do it in my fork by changing AI to an actor (with a couple associated changes). I won't contribute the changes back because the fork's diverged a lot but it's there if you need the reference.

I seem to have solved the problem in the new version. I am new to swift so would love to see your solution. But I don't see your fork for some reason.

from llmfarm.

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.