Looks incredibly cool, although it ran at ~4 tok/s on my browser (I assume because I've disabled V8). I believe your numbers though. I always wanted to try using something like this to create an AI assistant for my phone. If you try to create something without AI, you'll quickly run into the problem of using NLP to map input to the equivalent of AI tool calls. On the other hand, shelling out to a full-blown LLM for e…
310 tok/sec on my browser, hm.
Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
161–170 of 181 posts
Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#162Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#163Earlier quoted context omitted.
So, its not a general language model, focused on tool call strictly for tiny edge-devices. There are solutions everywhere for high-capacity devices, Needle is for sub-$200 devices.
It seems to me that the model struggles to have enough general intelligence, knowledge, or reasoning capacity for arbitrary prompted tool calling. At this size, not surprising. I am VERY interested in seeing how it could perform with some fine-tuning for a specific family of tools/tasks. That would be a great addition to the demo.
I do wonder if more smartness could be had by using sparser experts.... And possibly even having some kind of expert switching penalty to try to reduce the amount of data read from read only flash memory by encouraging subsequent tokens to use already loaded experts.
Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#164Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#165My experiments are in https://github.com/brainless/
I will be happy to share what I learn.
Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#166For example, I mocked a dumbed down version of what would be a reasonable intermediate tool call prompt:
> It's currently 58 degrees. User asks for house to be 8.5 degrees warmer. What temperature to set thermostat to?
The reply?
Reasoning: “User asks for temperature to set thermostat to 8.5 -> set_thermostat with temperature=8.5.”
Sounds like something Siri would do!
Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#167My first query: > Make it a little warmer in here. The reply: > "name": "set_thermostat", > "arguments": { > "temperature": 65, > "mode": "cool", > ... > "reasoning": "'warmer' implies need for cooling; set_thermostat with temperature 65 (typical warmth) and mode 'cool'.", Maybe I'm doing it wrong?
Tested your example, the confidence is 0. In smart home context, I can think of an application where the low confidence answers can be forwarded to cloud, whereas the vast majority generic queries solved locally, if the confidence is reliable enough. The response is quite fast by the way.
Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#168Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#169Re: Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots
#170what does the first L mean in LLM?
Fwiw people have told me that GPT2 doesn’t qualify as an LLM at 550MB despite being one of the first LLMs. So the practical answer to your question is: not much.
LLM is not "we made a language model and it is big" -- it's "we trained this model on a lot of language"