upscaler
uwg · Kit
Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…
Continues English text from a prompt with a 362M-parameter base language model trained on 4 trillion tokens and light enough for on-device use. For developers who want a small base model to test or fine-tune.
SmolLM2-360M is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install transformers
SmolLM2-360M is the middle model of the SmolLM2 family, between the 135M and 1.7B versions. It is the base model, so it carries on the text you give it and does not follow chat instructions. It was trained on 4 trillion tokens drawn from FineWeb-Edu, DCLM, The Stack and extra filtered datasets.
It suits developers, students and researchers who want a small English language model for experiments, teaching or fine-tuning without large hardware.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | App developers | Try on-device text features with a compact model | Testing phrase completion offline |
| Education | Teachers and students | Learn how causal language models load and generate | A lab exercise on text continuation |
| Research | ML researchers | Fine-tune a small base model for a narrow task | Training it on a company's own documents |
| Benchmarking | Evaluators | Compare small models on common zero-shot tests | Checking scores against Qwen2.5-0.5B |
Skip it if you need chat behaviour or maths, since the base model scores only 3.2 on GSM8K in the card.
| Use case | Who | What they get back |
|---|---|---|
| Text continuation | Developers | A finished version of a short prompt |
| Fine-tuning start | Researchers | A mid-sized small model to train further |
| Local testing | Engineers | A model that runs on a laptop without a big GPU |
You need these first.
pip install transformers
pip install -U huggingface_hub hf download HuggingFaceTB/SmolLM2-360M
Load the tokenizer and model, send the model to your device, encode a short prompt and generate. The card gives one script at full precision and one in bfloat16.
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-360M"
device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
checkpoint = "HuggingFaceTB/SmolLM2-360M"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for fp16 use `torch_dtype=torch.float16` instead
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to("cuda")
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))| Tool | What it does |
|---|---|
| AutoTokenizer | Converts text to token IDs and back |
| AutoModelForCausalLM | Loads the model weights |
| model.generate | Writes a continuation of the prompt |
| device_map="auto" | Spreads the model across available GPUs, and needs accelerate |
Run the first script with the prompt "Gravity is". The model carries on the sentence and the script prints the prompt together with its continuation. The text is plain prose, not an answer to a question.
If you are new, this model completes text and does not take instructions. Try one short sentence start on CPU, then change it and compare what the model adds.
If you know the field, the card scores it against Qwen2.5-0.5B and SmolLM-360M with lighteval. It leads on HellaSwag, ARC, PIQA, MMLU cloze, CommonsenseQA and TriviaQA. Qwen2.5-0.5B is ahead on Winogrande and far ahead on GSM8K, at 33.4 against 3.2. An instruct version exists for chat.
Continues English text from a prompt with a 362M-parameter base language model trained on 4 trillion tokens and light enough for on-device use. For developers who want a small base model to test or fine-tune.
Made by HuggingFaceTB on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: SmolLM2-360M is the middle model of the SmolLM2 family, between the 135M and 1.7B versions. It is the base model, so it carries on the text you give it and does not follow chat instructions. It was trained on 4 trillion tokens drawn from FineWeb-Edu, DCLM, The Stack and extra filtered datasets.
Who it suits: It suits developers, students and researchers who want a small English language model for experiments, teaching or fine-tuning without large hardware.
Industry | Who uses it | How they use it | Example
Software | App developers | Try on-device text features with a compact model | Testing phrase completion offline
Education | Teachers and students | Learn how causal language models load and generate | A lab exercise on text continuation
Research | ML researchers | Fine-tune a small base model for a narrow task | Training it on a company's own documents
Benchmarking | Evaluators | Compare small models on common zero-shot tests | Checking scores against Qwen2.5-0.5B
Skip it if you need chat behaviour or maths, since the base model scores only 3.2 on GSM8K in the card.
Where to use it:
Use case | Who | What they get back
Text continuation | Developers | A finished version of a short prompt
Fine-tuning start | Researchers | A mid-sized small model to train further
Local testing | Engineers | A model that runs on a laptop without a big GPU
How to set it up: You need these first.
pip install transformers
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-360M
How to use it: Load the tokenizer and model, send the model to your device, encode a short prompt and generate. The card gives one script at full precision and one in bfloat16.
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-360M"
device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
checkpoint = "HuggingFaceTB/SmolLM2-360M"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for fp16 use `torch_dtype=torch.float16` instead
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to("cuda")
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
Tool | What it does
AutoTokenizer | Converts text to token IDs and back
AutoModelForCausalLM | Loads the model weights
model.generate | Writes a continuation of the prompt
device_map="auto" | Spreads the model across available GPUs, and needs accelerate
Example: Run the first script with the prompt "Gravity is". The model carries on the sentence and the script prints the prompt together with its continuation. The text is plain prose, not an answer to a question.
For newcomers and experts: If you are new, this model completes text and does not take instructions. Try one short sentence start on CPU, then change it and compare what the model adds.
If you know the field, the card scores it against Qwen2.5-0.5B and SmolLM-360M with lighteval. It leads on HellaSwag, ARC, PIQA, MMLU cloze, CommonsenseQA and TriviaQA. Qwen2.5-0.5B is ahead on Winogrande and far ahead on GSM8K, at 33.4 against 3.2. An instruct version exists for chat.
Your prompt text
Tokenizer produces token IDs
Model predicts next tokens
Tokens decode to text
Continuation is printed
Good to know:
Title: Zero-shot scores of SmolLM2-360M from the card
HellaSwag: 54.5 points
ARC average: 53.0 points
PIQA: 71.7 points
MMLU cloze: 35.8 points
CommonsenseQA: 38.0 points
TriviaQA: 16.9 points
Winogrande: 52.5 points
OpenBookQA: 37.4 points
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download HuggingFaceTB/SmolLM2-360M
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| SmolLM2-360M This page | 139,095 | 146 | 362M | apache-2.0 | |
| SmolLM2-135MShares llama · text-generation · transformers | 2,596,139 | 269 | 135M | apache-2.0 | |
| MiniCPM5-2BShares llama · text-generation · transformers | 1,039,518 | 1,850 | 2.5B | apache-2.0 | |
| TinyLlama-1.1B-Chat-v1.0Shares llama · text-generation · transformers | 963,057 | 1,910 | 1.1B | apache-2.0 | |
| SmolLM2-135M-InstructShares llama · text-generation · transformers | 841,106 | 474 | 135M | apache-2.0 | |
| Hermes 3 Llama-3.1 8BShares llama · text-generation · transformers | 336,953 | 550 | 8B | llama3 |
uwg · Kit
Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…
nerijs · Kit
A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…
microsoft · Kit
Turns written conversations into spoken audio with up to four speakers and about 90 minutes of speech, an open Microsoft text-to-speech model for research on p…
masterofaudio2077 · Kit
Reads Egyptian Arabic text aloud and follows the short vowel marks you write into it. A fine-tune of VoiceTut-TTS that keeps its 19 built-in voices and voice c…
hugging-quants · Kit
Runs Meta's Llama 3.1 8B Instruct chat model in 4-bit AWQ form, so it fits on a GPU with about 4 GiB of free memory for the weights. For developers who want a…
besktech · Kit
Scores a Russian-first decision from a context and a list of options, giving a probability for yes/no, choice or rating questions. Runs on a plain CPU, for tea…