I mean anything in the 0.5B-3B range that's available on Ollama (for example). Have you built any cool tooling that uses these models as part of your work flow?
It's different. It doesn't always just give one translation but different options. I can do things like give it a phrase and then ask it to break it down. Or give it a word and if its translation doesn't make sense to me ask how it works in the context of a phrase.
llm -c, which continues the previous conversation, is specifically useful for that sort of manipulation. It's also available from the command line, which I find convenient because I basically always have one open.
We're prototyping a text firewall (for Android) with Gemma2 2B (which limits us to English), though DeepSeek's R1 variants now look pretty promising [0]: Depending on the content, we rewrite the text or quarantine it from your view. Of course this is easy (for English) in the sense that the core logic is all LLMs [1], but the integration points (on Android) are not so straight forward for anything other than SMS. [2]
Guess it never has. Though, the example I shared (reproduced below) is pretty basic.
--- Prompt:
I don't like expletives, spelling mistakes, toxic texts, personal attacks, negative remarks, snide, bad faith arguments, needless bait and trolling. Help clean the texts for me. Rewrite or reword if you have to without losing meaning. If you do reword the text, mention it. If not, reproduce it as-is.
Texts:
Mel: "Fuck you you dim twat"
Bel: "Wanna meet tomorrow?"
Cel: "lol, you're clueless; do you even hear yourself?"
Tel: "Pretty sure he hates you; get out before anyone gets hurt real bad"
Gel: "Those coffee beans are so nice; thanks for the gift!"
Lel: "hahaha, you mother fucker; you nailed it, congrats!"
Hel: "OK Goooooogle"
---
Output:
Here's the cleaned-up version of the texts:
Mel: "I’m really upset with you right now."
(Reworded to remove expletives and offensive language.)
Bel: "Wanna meet tomorrow?"
(No changes needed.)
Cel: "I think you might not fully understand the situation; have you considered your own perspective?"
(Reworded to remove snide remarks and make it more constructive.)
Tel: "It seems like he might not have the best intentions toward you; it might be wise to step back before things escalate."
(Reworded to remove negativity and make it more neutral and caring.)
Gel: "Those coffee beans are so nice; thanks for the gift!"
(No changes needed.)
Lel: "Hahaha, you did an amazing job! Congrats!"
(Reworded to remove expletives while keeping the celebratory tone.)
Hel: "OK Google."
(Corrected spelling for clarity.)
I've had good speed / reliability with TheBloke/rocket-3B-GGUF on Huggingface, the Q2_K model. I'm sure there are better models out there now, though. It takes ~8-10 seconds to process an image on my M2 Macbook, so not quite quick enough to run on phones yet, but the accuracy of the output has been quite good.
what are you feed into the model? Image (like product packaging) or Image of Structured Table? I found out that model performs good in general with sturctured table, but fails a lot over images.
We're using small language models to detect prompt injection. Not too cool, but at least we can publish some AI-related stuff on the internet without a huge bill.
Comments (346) 68 threads
Earlier commentsllm -c, which continues the previous conversation, is specifically useful for that sort of manipulation.
It's also available from the command line, which I find convenient because I basically always have one open.
A more difficult problem we forsee is to turn it into a real-time (online) firewall (for calls, for example).
[1] https://chat.deepseek.com/a/chat/s/d5aeeda1-fefe-4fc6-8c90-2...
[1] MediaPipe in particular makes it simple to prototype around Gemma2 on Android: https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inf...
[2] Intend to open source it once we get it working for anything other than SMSes
---
---Prompt:
Output:
Could you share a link to your project, if it is public?
I've had good speed / reliability with TheBloke/rocket-3B-GGUF on Huggingface, the Q2_K model. I'm sure there are better models out there now, though.
It takes ~8-10 seconds to process an image on my M2 Macbook, so not quite quick enough to run on phones yet, but the accuracy of the output has been quite good.
All comments shown.
Couldn't load more comments. Check your connection and try again.