Live data from Hacker News

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

apps.apple.com

121–130 of 208 posts

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

#121
post #7

Some other local LLM iOS apps: - MLC Chat: https://llm.mlc.ai - LLM Farm: https://llmfarm.site - Enchanted (not local, just a frontend): https://github.com/AugustDev/enchanted But I don't think any of these support Mistral 0.2 which is a pretty big deal.

where can i find info about Mistral 0.2? why is it harder to support than Mistral 0.1?

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

#122

Are these apps using the neural compute parts of Apple's chips? Or ar they just using the regular CPU/GPU cores?

TL;DR: No, nearly all these apps will use GPU (via Metal), or CPU, not Neural Engine (ANE). Why? I suggest a few main reasons: 1) No Neural Engine API 2) CoreML has challenges modeling LLMs efficiently right now. 3) Not Enough Benefit (For the Cost... Yet!) This is my best understanding based on my own work and research for a local LLM iOS app. Read on for more in-depth justifications of each point! --- 1) No Neural…

great high effort answer, thanks so much!

to prod you to sell yourself a bit more - what is the goal/selling point of cnvrs?

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

#123
post #27

I have a 2020 16in MacBook Pro. I think it's the last generation of Intel chips. I've been struggling to get some of the LLM models like Mixtral to run on it. I hate the idea of needing to buy another $3k laptop less than 4 years after spending that much on my current machine. But if I want to get serious about developing non-chatgpt services, do I need a new M2 or M3 chip to get this stuff running locally?

ollamma https://ollama.ai/ is popular choice for running local llm models and should work fine on intel. It's just wrapping docker so shouldn't require m2/m3.

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

#124

Earlier quoted context omitted.

I don't think running raw llama.cpp under termux in a shell on your phone, after downloading and compiling it from scratch,, is really comparable to 'I made an app'.

[flagged]

What we're seeing here might be classic case of the iOS Freedom Choking Syndrome: when a device's lack of freedom spreads to its owner and chokes cerebral circulation.

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

#125

Here is how to do that on Android: https://github.com/ggerganov/llama.cpp/#android

I don't think running raw llama.cpp under termux in a shell on your phone, after downloading and compiling it from scratch,, is really comparable to 'I made an app'.

[deleted]

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

#126

Earlier quoted context omitted.

A machine that tells you that the Golden State Warriors won the 2012 Stanley Cup by bowling a perfect 300 would be invaluable in 1602

In that case no need for a LLM, just a wikipedia dump with a full-text index is enough.

I don't think Wikipedia contains facts quite like the one in GP's example...

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

#128
post #112
post #102

Earlier quoted context omitted.

No, system prompts are surrounded by [INST] [/INST]

No, every user input is surrounded by those tags. Scroll down from that link you posted and read the next two example prompts.

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 inside the tag.

This example comes from the official system card created by MistralAI available here: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1

You can try it:

   ollama run Mistral "[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]"

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

#130

To think that we went from ClosedAi (OpenAi)s chatGPT to now being able to do this on out phones offline is incredible.

While it's a great achievement for sure, quantized Mistral 7b is not even remotely comparable to ChatGPT.
Post reply on HN