Run this model with HF Jobs
Run HuggingFaceTB/SmolLM3-3B-Base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/HuggingFaceTB/SmolLM3-3B-Base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/HuggingFaceTB/SmolLM3-3B-Base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/HuggingFaceTB/SmolLM3-3B-Base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/HuggingFaceTB/SmolLM3-3B-Base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use HuggingFaceTB/SmolLM3-3B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceTB/SmolLM3-3B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceTB/SmolLM3-3B-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM3-3B-Base") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM3-3B-Base", device_map="auto") - Transformers.js
How to use HuggingFaceTB/SmolLM3-3B-Base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'HuggingFaceTB/SmolLM3-3B-Base'); - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HuggingFaceTB/SmolLM3-3B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFaceTB/SmolLM3-3B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceTB/SmolLM3-3B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HuggingFaceTB/SmolLM3-3B-Base
- SGLang
How to use HuggingFaceTB/SmolLM3-3B-Base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "HuggingFaceTB/SmolLM3-3B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceTB/SmolLM3-3B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "HuggingFaceTB/SmolLM3-3B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceTB/SmolLM3-3B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HuggingFaceTB/SmolLM3-3B-Base with Docker Model Runner:
docker model run hf.co/HuggingFaceTB/SmolLM3-3B-Base
Update README.md
Browse files71 unmodified lines72737475767778798017 unmodified lines989910010110210310436 unmodified lines1411421431441451461471481498 unmodified lines15815916016116216316471 unmodified linesWe highlight the best score in bold and underline the second-best score.## Base Pre-Trained Model### English benchmarksNote: All evaluations are zero-shot unless stated otherwise.| Category | Metric | SmolLM3-3B | Qwen2.5-3B | Llama3-3.2B | Qwen3-1.7B-Base | Qwen3-4B-Base |17 unmodified lines| | Ruler 32k context | 76.35 | 75.93 | <u>77.58</u> | 70.63 | **83.98** || | Ruler 64k context | 67.85 | 64.90 | **72.93** | 57.18 | 60.29 |### Multilingual benchmarks36 unmodified lines| | Flores-200 (5-shot) | 47.13 | 48.74 | 50.74 | <u>54.70</u> | **60.53** |## Instruction Model### No Extended ThinkingEvaluation results of non reasoning models and reasoning models in no thinking mode. We highlight the best and second-best scores in bold.| Category | Metric | SmoLLM3-3B | Qwen2.5-3B | Llama3.1-3B | Qwen3-1.7B | Qwen3-4B ||---------|--------|------------|------------|-------------|------------|----------|8 unmodified lines(*): this is a tool calling finetune### Extended ThinkingEvaluation results in reasoning mode for SmolLM3 and Qwen3 models:| Category | Metric | SmoLLM3-3B | Qwen3-1.7B | Qwen3-4B ||---------|--------|------------|------------|----------|71 unmodified lines72737475767778798017 unmodified lines989910010110210310436 unmodified lines1411421431441451461471481498 unmodified lines15815916016116216316471 unmodified linesWe highlight the best score in bold and underline the second-best score.### Base Pre-Trained Model#### English benchmarksNote: All evaluations are zero-shot unless stated otherwise.| Category | Metric | SmolLM3-3B | Qwen2.5-3B | Llama3-3.2B | Qwen3-1.7B-Base | Qwen3-4B-Base |17 unmodified lines| | Ruler 32k context | 76.35 | 75.93 | <u>77.58</u> | 70.63 | **83.98** || | Ruler 64k context | 67.85 | 64.90 | **72.93** | 57.18 | 60.29 |#### Multilingual benchmarks36 unmodified lines| | Flores-200 (5-shot) | 47.13 | 48.74 | 50.74 | <u>54.70</u> | **60.53** |### Instruction Model#### No Extended ThinkingEvaluation results of non reasoning models and reasoning models in no thinking mode. We highlight the best and second-best scores in bold.| Category | Metric | SmoLLM3-3B | Qwen2.5-3B | Llama3.1-3B | Qwen3-1.7B | Qwen3-4B ||---------|--------|------------|------------|-------------|------------|----------|8 unmodified lines(*): this is a tool calling finetune#### Extended ThinkingEvaluation results in reasoning mode for SmolLM3 and Qwen3 models:| Category | Metric | SmoLLM3-3B | Qwen3-1.7B | Qwen3-4B ||---------|--------|------------|------------|----------|
README.md+6-6