Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
Instructions to use jhszptr/SmolLM2-135M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jhszptr/SmolLM2-135M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jhszptr/SmolLM2-135M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jhszptr/SmolLM2-135M") model = AutoModelForCausalLM.from_pretrained("jhszptr/SmolLM2-135M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jhszptr/SmolLM2-135M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jhszptr/SmolLM2-135M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jhszptr/SmolLM2-135M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jhszptr/SmolLM2-135M
- SGLang
How to use jhszptr/SmolLM2-135M 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 "jhszptr/SmolLM2-135M" \ --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": "jhszptr/SmolLM2-135M", "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 "jhszptr/SmolLM2-135M" \ --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": "jhszptr/SmolLM2-135M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jhszptr/SmolLM2-135M with Docker Model Runner:
docker model run hf.co/jhszptr/SmolLM2-135M
Commit History
-
End of training
Verified signaturef42b8a6 -
Training in progress, step 1250
Verified signaturef2ad564 -
Training in progress, step 1000
Verified signature03c068e -
Training in progress, step 500
Verified signaturec5e297f -
Training in progress, step 1200
Verified signature8d50fb8 -
Training in progress, step 1000
Verified signaturef8138ed -
Training in progress, step 800
Verified signaturede49b6b -
Training in progress, step 600
Verified signaturef97efb4 -
Training in progress, step 400
Verified signaturefedd925 -
Training in progress, step 200
Verified signature30b7f2e -
End of training
Verified signature867079f -
Training in progress, step 3750
Verified signature08c9e73 -
Training in progress, step 3600
Verified signaturee83d6ed -
Training in progress, step 3400
Verified signature1b4daa4 -
Training in progress, step 3200
Verified signatured641876 -
Training in progress, step 3000
Verified signature2550ff4 -
Training in progress, step 2800
Verified signature8ed343e -
Training in progress, step 2600
Verified signature4603c96 -
Training in progress, step 2400
Verified signature7ed094b -
Training in progress, step 2200
Verified signatureb416cdf -
Training in progress, step 2000
Verified signaturec61d6fe -
Training in progress, step 1800
Verified signatureb206152 -
Training in progress, step 1600
Verified signature7e6ebd3 -
Training in progress, step 1400
Verified signature41b567f -
Training in progress, step 1200
Verified signature488e278 -
Training in progress, step 1000
Verified signature39ae0b8 -
Training in progress, step 800
Verified signature9fb2a4a -
Training in progress, step 600
Verified signature4bf0f16 -
Training in progress, step 400
Verified signature8faf7a5 -
Training in progress, step 200
Verified signature8ef7fcd
-
End of training
Verified signature9e8de50 -
Training in progress, step 1251
Verified signatureefd4486 -
Training in progress, step 1200
Verified signature85b271c -
Training in progress, step 1000
Verified signature3f2ff73 -
Training in progress, step 800
Verified signatureaa9313c -
Training in progress, step 600
Verified signature5ee36a6 -
Training in progress, step 400
Verified signature71070e9 -
Training in progress, step 200
Verified signature8647109 -
Training in progress, step 7500
Verified signature3d6ed65 -
Training in progress, step 7000
Verified signature7f77727 -
Training in progress, step 6500
Verified signature79e7337 -
Training in progress, step 6000
Verified signature9e38e90 -
Training in progress, step 5500
Verified signaturee61e9e7 -
Training in progress, step 5000
Verified signature585ade5 -
Training in progress, step 4500
Verified signatureb36c6a2 -
Training in progress, step 4000
Verified signature08aed56 -
Training in progress, step 3500
Verified signature2c14eb3 -
Training in progress, step 3000
Verified signature06ea996 -
Training in progress, step 2500
Verified signaturee30c832 -
Training in progress, step 2000
Verified signatureabeb24e