Text Generation
Transformers
Safetensors
smollm3
Generated from Trainer
smol-course
sft
instruction-tuning
trl
Instructions to use twshenust/SmolLM3-Custom-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use twshenust/SmolLM3-Custom-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="twshenust/SmolLM3-Custom-SFT")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("twshenust/SmolLM3-Custom-SFT") model = AutoModelForCausalLM.from_pretrained("twshenust/SmolLM3-Custom-SFT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use twshenust/SmolLM3-Custom-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "twshenust/SmolLM3-Custom-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "twshenust/SmolLM3-Custom-SFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/twshenust/SmolLM3-Custom-SFT
- SGLang
How to use twshenust/SmolLM3-Custom-SFT 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 "twshenust/SmolLM3-Custom-SFT" \ --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": "twshenust/SmolLM3-Custom-SFT", "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 "twshenust/SmolLM3-Custom-SFT" \ --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": "twshenust/SmolLM3-Custom-SFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use twshenust/SmolLM3-Custom-SFT with Docker Model Runner:
docker model run hf.co/twshenust/SmolLM3-Custom-SFT
- Xet hash:
- edeee80c2e5a83aacc98b072bb1b80d79529d52bba2a57c55d27bf8ce5ec0106
- Size of remote file:
- 6.15 GB
- SHA256:
- a46278d05d7644a957cbc19fa9dce5cf3436c40c4a3025f3c22b503c6683092c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.