Live data from Hacker News

SmolLM2

simonwillison.net

21–30 of 51 posts

Re: SmolLM2

#21

Semi-related but is there a standard way to run this (or other models from huggingface) in a docker container and interact with them through a web API? ChatGPT tells me to write my own FastAPI wrapper which should work, but is there no pre-made solution for this?

Ollama has built in support [1] for gguf models on huggingface, and exposes a openai compatible http endpoint [2]. You can also just test it out using the cli: ollama run hf.co/unsloth/SmolLM2-1.7B-Instruct-GGUF:F16 1. https://huggingface.co/docs/hub/ollama 2. https://github.com/ollama/ollama?tab=readme-ov-file#start-ol...

Thanks, Ollama ist exactly what I was looking for.

Re: SmolLM2

#22

Very interesting. According to their X posts, this meme model "SmolLm" beats Meta's new 1B and 3B models across almost all metrics. I wonder how this is possible given that Meta has been in this game for much longer and probably has much more data at their disposal as well.

You can be reasonably confident that unless there’s been a significant breakthrough (there hasn’t) if a smaller model beats a larger model it’s either fine tuned for a specific purpose or trained on the test data somehow (ie. fine tuned to have good metrics).

To be less snarky, they claim:

> These models are built on a meticulously curated high-quality training corpus

Ie. Good training data plus a small model beats a bigger model.

…but I’m skeptical, when I read:

> We observed that performance continues to improve with longer training, even beyond the Chinchilla optimal point. Therefore, we decided to train the 1.7B model on 1 trillion tokens and the 135M and 360M models on 600B tokens, as the performance gains after 400B tokens begin to slow on some benchmarks for these smaller models.

So they’re evaluating their models against various benchmarks as they train them and picking the practice that gives the best benchmarks?

I dunno.

The claim is basically good data > more parameters, but it’s just an observation of “this happened to work for us” rather than something you can usefully take (as far as I can see) and apply to larger models.

The claims they actaully make about performance are far more modest than people are making out.

The 1.7B model performs better than any other 2B models in their evaluation.

Seems nice. Not ground breaking. Not convinced it’s real rather than polluted training data personally.

Re: SmolLM2

#23
Why would I care about this when I can have the entire English Wikipedia on my phone? Really struggling to understand why people are so excited about this stuff.

Re: SmolLM2

#24

Is there a good, small model that can take input images? Or are those all still larger?

moondream fits the bill, but dont expect too much for the performance on image description and all.

Re: SmolLM2

#25

Semi-related but is there a standard way to run this (or other models from huggingface) in a docker container and interact with them through a web API? ChatGPT tells me to write my own FastAPI wrapper which should work, but is there no pre-made solution for this?

Huggingface TGI supports many models and more than one API:

https://huggingface.co/docs/text-generation-inference/en/ins...

Re: SmolLM2

#26

Very interesting. According to their X posts, this meme model "SmolLm" beats Meta's new 1B and 3B models across almost all metrics. I wonder how this is possible given that Meta has been in this game for much longer and probably has much more data at their disposal as well.

Meta doesn't train on their internal data, at least not for open models. It would be a real PR problem if someone started dumping real Facebook chats out of them.

And this is from Huggingface themselves, arguably they have a lot of data as well.

Re: SmolLM2

#27

Why would I care about this when I can have the entire English Wikipedia on my phone? Really struggling to understand why people are so excited about this stuff.

"Hey Wikipedia, at what year did SSD speeds reach RAM speeds of yester-year?"

Re: SmolLM2

#28

Why would I care about this when I can have the entire English Wikipedia on my phone? Really struggling to understand why people are so excited about this stuff.

[deleted]

Re: SmolLM2

#29

Why would I care about this when I can have the entire English Wikipedia on my phone? Really struggling to understand why people are so excited about this stuff.

Knowledge doesnt amount to much on the LLM, i think what most are excited about is the artificial reasoning.
Post reply on HN