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
Upload folder using huggingface_hub (#1)
Browse files- Upload folder using huggingface_hub (8f4f77c0fcba2306b6a8604a778dbdd3cf0107f7)
- Add Transformers.js config (a231a73ce1e2762d56c5ad780cd9d9d75badebc4)
- Update README.md (a41b3eda419a8ae869d3596ee4e2425da85ce850)
Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>
Files changed (19)
- .gitattributes+8
- README.md+3-1
- config.json+8
- onnx/model.onnxAdded+3
- onnx/model.onnx_dataAdded+3
- onnx/model_bnb4.onnxAdded+3
- onnx/model_bnb4.onnx_dataAdded+3
- onnx/model_fp16.onnxAdded+3
- onnx/model_fp16.onnx_dataAdded+3
- onnx/model_int8.onnxAdded+3
- onnx/model_int8.onnx_dataAdded+3
- onnx/model_q4.onnxAdded+3
- onnx/model_q4.onnx_dataAdded+3
- onnx/model_q4f16.onnxAdded+3
- onnx/model_q4f16.onnx_dataAdded+3
- onnx/model_quantized.onnxAdded+3
- onnx/model_quantized.onnx_dataAdded+3
- onnx/model_uint8.onnxAdded+3
- onnx/model_uint8.onnx_dataAdded+3
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text33 unmodified lines343536373839404142434433 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -textonnx/model.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_bnb4.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_fp16.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_int8.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_q4.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_q4f16.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_quantized.onnx_data filter=lfs diff=lfs merge=lfs -textonnx/model_uint8.onnx_data filter=lfs diff=lfs merge=lfs -text
9 unmodified lines101112131415178 unmodified lines1941951961979 unmodified lines- zh- ar- ru---178 unmodified lines## License[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)9 unmodified lines1011121314151617178 unmodified lines1961971981999 unmodified lines- zh- ar- rutags:- transformers.js---178 unmodified lines## License[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
24 unmodified lines25262728293024 unmodified lines"tie_word_embeddings": true,"torch_dtype": "bfloat16","transformers_version": "4.53.0.dev0","use_cache": true,"use_sliding_window": false,"vocab_size": 12825624 unmodified lines252627282930313233343536373824 unmodified lines"tie_word_embeddings": true,"torch_dtype": "bfloat16","transformers_version": "4.53.0.dev0","transformers.js_config": {"use_external_data_format": true,"dtype": "q4","kv_cache_dtype": {"q4f16": "float16","fp16": "float16"}},"use_cache": true,"use_sliding_window": false,"vocab_size": 128256
123version https://git-lfs.github.com/spec/v1oid sha256:ed264ed0d95938536ee7e12b69dd198bc2dc3f93352e1aec337627c88c917f96size 225803123version https://git-lfs.github.com/spec/v1oid sha256:001474c54b96269ac124353171621fe99ac7256e848d3b4c5e42becb49fbb210size 12333948928123version https://git-lfs.github.com/spec/v1oid sha256:d61e0e98472cb68509568bf8f19ccc22135787272504beb0d0db77fc8ca17374size 297680123version https://git-lfs.github.com/spec/v1oid sha256:4676c15ff248ece42d7a63854ec8df3731edd8b2442b4b47e7ce7c1862a80803size 2666733568123version https://git-lfs.github.com/spec/v1oid sha256:4617f70c998cda665117546bde4fe98f31f4e7bfa9378d1486bd04e5e7da88d4size 227554123version https://git-lfs.github.com/spec/v1oid sha256:3659ff3725e3d7a2b2450744590af9a6edcbe51a6aae2d06efd13ae5e38868d6size 6166974464123version https://git-lfs.github.com/spec/v1oid sha256:a7e8da07118f86834c8018df8896796375250a40a8bf09c518585d4febc37470size 518279123version https://git-lfs.github.com/spec/v1oid sha256:e3fafae27b3a2e551e1d9ab15557e829faadae842591f7a8225bc37e2589c517size 3109101568123version https://git-lfs.github.com/spec/v1oid sha256:9db16322adae1710715a50b024280d132e5341c6347ad948263c28332b4adb3fsize 300202123version https://git-lfs.github.com/spec/v1oid sha256:72052f72b4d09e2e18a764fd9b221921b4bf91161ce85dbdafdeb3e9be1a8cb3size 2842501120123version https://git-lfs.github.com/spec/v1oid sha256:4947306274ab1353066a1f011a146618b779689e43ab0a4b91d3c5e7a5bcb894size 301713123version https://git-lfs.github.com/spec/v1oid sha256:98aecb93fe7f2e6857bdac1d5b0f5459abc5b711eed5d97d39cd608d546e4aa7size 2124320768123version https://git-lfs.github.com/spec/v1oid sha256:06e97f8030ca78712fdb8f050c75da10812e803596b4d9a65d9826780ed1131asize 520084123version https://git-lfs.github.com/spec/v1oid sha256:c56eaf2c1f3280b00781178e4ecf9af9d17698924e3f233947abddb0db8b9266size 3109101568123version https://git-lfs.github.com/spec/v1oid sha256:844b5927849ecbce97ccce3cb27a5d36593513591e82164e087ea0a740b493c0size 518735123version https://git-lfs.github.com/spec/v1oid sha256:c56eaf2c1f3280b00781178e4ecf9af9d17698924e3f233947abddb0db8b9266size 3109101568.gitattributes+8
README.md+3-1
config.json+8
onnx/model.onnxAdded+3
onnx/model.onnx_dataAdded+3
onnx/model_bnb4.onnxAdded+3
onnx/model_bnb4.onnx_dataAdded+3
onnx/model_fp16.onnxAdded+3
onnx/model_fp16.onnx_dataAdded+3
onnx/model_int8.onnxAdded+3
onnx/model_int8.onnx_dataAdded+3
onnx/model_q4.onnxAdded+3
onnx/model_q4.onnx_dataAdded+3
onnx/model_q4f16.onnxAdded+3
onnx/model_q4f16.onnx_dataAdded+3
onnx/model_quantized.onnxAdded+3
onnx/model_quantized.onnx_dataAdded+3
onnx/model_uint8.onnxAdded+3
onnx/model_uint8.onnx_dataAdded+3