Live data from Hacker News

I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

apps.apple.com

181–190 of 208 posts

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#181

This might be the best reason to consider a Pro model next time I'm upgrading my iPhone.

iPhone 15 and iPhone 14 Pro, 14 Pro Max have exactly the same CPU and amount of RAM (Apple A16 Bionic and 6GB). This is also true for iPhone 14 and iPhone 13 Pro, Pro Max (Apple A15 Bionic and also 6GB).

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#182

Earlier quoted context omitted.

My free / mostly open source app also stores conversation history, synced via iCloud https://ChatOnMac.com edit: I can't reply to you below: Do you have the right app, there's no TestFlight just App Store link - if it's ChatOnMac then it should have a dropdown at the top of the chat room to select a model. If it's empty or otherwise bugged out please let me know what you see in the top menu. It filters the available…

I was excited when I saw this, but I'm having trouble with it (and it looks like I'm not the only one). As others have pointed out, the download link on your site does open TestFlight. I've since deleted that version and installed the official version from the AppStore after revisiting this thread in search of answers. I now have the full version installed on my iPhone 15 pro, and I have added my OpenAI key, but none…

Apologies for the rough edges and bad experience - I’ve just soft launched without announcement til this post. I will have a hotfix up soon. Thanks for the report.

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#183

Earlier quoted context omitted.

My free / mostly open source app also stores conversation history, synced via iCloud https://ChatOnMac.com edit: I can't reply to you below: Do you have the right app, there's no TestFlight just App Store link - if it's ChatOnMac then it should have a dropdown at the top of the chat room to select a model. If it's empty or otherwise bugged out please let me know what you see in the top menu. It filters the available…

Hello, I like your app and the ethics you push forward. Do you plan to add the possibility to request for Dall-E 3 images within the chat? I’ve yet to find an app which does that and makes me use my own api key

It’s planned. This is just the v1 MVP. I’ll have a hotfix out soon. Thanks for the suggestion and context

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#184
post #141

I love the idea, that's the future. However you should be aware that the explanation of second law of thermodynamics generated by the LLM you used in your app store screenshot is wrong: the LLM has it backwards. Energy transfers to less stable states from more stable states, and not the reverse. (I use LLMs for science education apps like https://apps.apple.com/fr/app/explayn-learn-chemistry/id6448... , so I am quite…

Strongly agree. Local, app embedded, and purpose-built targeted experts is clearly the future in my mind for a variety of reasons. Looking at TPUs in Android devices and neural engine in Apple hardware it's pretty clear. Xcode already has an ML studio, for example, that can not only embed and integrate models in apps but also finetune, etc. It's obvious to me that at some point most apps will have embedded models in…

> when we look at how we primarily interact with technology and the functionality it provides it's generally pretty well siloed to specific purposes.

Yes, but siloes in this case will get much bigger e.g. ChatGPT vs DALL-E

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#185
post #152
post #128

Earlier quoted context omitted.

No this isn't the case. Here's the example from https://www.promptingguide.ai/models/mistral-7b#chat-templat... [INST] What is your favorite condiment? [/INST] "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!" [INST] The right amount of what? [/INST] Note that the sentence starting "Well, I'm quite partial isn't…

That's the whole context with two user inputs in the INST tags, and one assistant output between/outside of the tags. They're just simulating the beginning of a conversation. You can see this very clearly in the JSON version in the next code block: messages = [ {"role": "user", "content": "What is your favourite condiment?"}, {"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon j…

Yes, but this whole block of text gets passed to the LLM on each call as the conversation history. The [INST] tags tell the LLM which parts were inputs (system instructions) as opposed to outputs.

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#186

Earlier quoted context omitted.

So if they know it wont work, and do not put that info into the store's compatibility matrix then it's still a bait/switch to me. Compare to the Resident Evil page which does set the store limits on what devices can dl it.

There is no way to specify iPhone models or memory capacity when submitting an app to App Store. Believe me - I spent several days trying.

You can set the minimum deployment to iOS 17 & then if someone has iPhone X*, 11 or SE then you can alert them to get a refund when they open the app either with a device check or total memory check. That'll set it so you remove most of the issues of older devices.

Source: https://support.apple.com/guide/iphone/models-compatible-wit...

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#187
post #185
post #152

Earlier quoted context omitted.

That's the whole context with two user inputs in the INST tags, and one assistant output between/outside of the tags. They're just simulating the beginning of a conversation. You can see this very clearly in the JSON version in the next code block: messages = [ {"role": "user", "content": "What is your favourite condiment?"}, {"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon j…

Yes, but this whole block of text gets passed to the LLM on each call as the conversation history. The [INST] tags tell the LLM which parts were inputs (system instructions) as opposed to outputs.

Well, that's not what a system prompt is. There is a difference between system prompts and regular conversational inputs. https://platform.openai.com/docs/guides/prompt-engineering/t...

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#188
post #164

Earlier quoted context omitted.

> Local, app embedded, and purpose-built targeted experts is clearly the future in my mind for a variety of reasons. Looking at TPUs in Android devices and neural engine in Apple hardware it's pretty clear. I think that’s only true for delay-intolerant or privacy-focused features. For most situations, a remote model running on an external server will outperform a local model. There is no thermal, battery or memory he…

Snapchat filters, iPhone photo processing/speech to text/always-on Hey Siri/OCR/object detection and segmentation - there are countless applications and functionality doing this on device today (and for years). For something like the RAG approach I mentioned the sync and coordination of your local content to a remote API would be more taxing on the battery just in terms of the radio than what we already see from on d…

> Snapchat filters, iPhone photo processing/speech to text/always-on Hey Siri/OCR/object detection and segmentation - there are countless applications and functionality doing this on device today (and for years)

But those are peanuts compared to what will be possible in the (near) future. You think content-aware fill is neat? Wait until you can zoom out of a photo 50% or completely change the angle.

That’ll costs gobs of processing power and thus time and battery, much more than a 20MB burst transfer of a photo and the backsynced modifications.

> If AI keeps expanding and eating more and more functionality the remote-first approach just isn't sustainable.

It’ll definitely create a large moat around companies with lots of money or extremely efficient proprietary models.

Re: I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros

#190
post #3

Why do none of these apps allow you to set the system prompt? I find these LLM apps kind of useless without being able to refine the way in which the model will respond to later questions.

would love for you to give cnvrs a shot! - save characters (system prompt + temperature, and a name & cosmetic color) - download & experiment with models from 1b, 3b, & 7b, and quant options q2k, q4km, q6k - save, search, continue, & export past chats along with smaller touches: - custom theme colors - haptics and more coming soon! https://testflight.apple.com/join/ERFxInZg

This crashes on almost all models for me and also locked up my phone such that only a full reboot would fix it.
Post reply on HN