Comments (18)
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.
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.
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.
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.
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.
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.
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.
from llmfarm.
it would be nice to use the newly merged llama.cpp ios build as well. no examples for it exist yet
from llmfarm.
Tell me, did the update solve the problem?
from llmfarm.
from llmfarm.
Tell me, did the update solve the problem?
from llmfarm.
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.
Is there a config that is working for you on your device?
from llmfarm.
i use this config for test llama2
llama-2-7b-chat-q4_K_M_1693728799.json
from llmfarm.
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.
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.
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)
- How to debug? HOT 3
- Dolphin models problem (modelLoadError) HOT 5
- Small bugs/unexpected behavior and feedback with suggestions HOT 6
- Can the model get information from the outside? HOT 3
- Crash when running with RWKV 5 (Raven) HOT 2
- Sampling stuck in greedy HOT 6
- iOS 15 support HOT 2
- Additional Support for Vision Based Models Like Llava? HOT 2
- Apple Model Available HOT 2
- Few feature requests.. HOT 3
- Adding instruction for TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF HOT 1
- App crashes right away HOT 1
- It's so slow HOT 6
- Bugs and suggestions HOT 2
- Issue with LLAVA 1.5 HOT 4
- The development build will either crash or produce incorrect output content. HOT 11
- Add support for image generation models like stable diffusion HOT 1
- The version downloaded via git crashes on the physical device iPhone 14 Plus HOT 1
- Google Gemma 1.1 Support HOT 1
- Add support for Llama 3 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llmfarm.