Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
Instructions to use sunitapalubanjar/sft_smolLM2_good with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sunitapalubanjar/sft_smolLM2_good with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sunitapalubanjar/sft_smolLM2_good")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sunitapalubanjar/sft_smolLM2_good") model = AutoModelForCausalLM.from_pretrained("sunitapalubanjar/sft_smolLM2_good", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sunitapalubanjar/sft_smolLM2_good with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sunitapalubanjar/sft_smolLM2_good" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sunitapalubanjar/sft_smolLM2_good", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sunitapalubanjar/sft_smolLM2_good
- SGLang
How to use sunitapalubanjar/sft_smolLM2_good 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 "sunitapalubanjar/sft_smolLM2_good" \ --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": "sunitapalubanjar/sft_smolLM2_good", "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 "sunitapalubanjar/sft_smolLM2_good" \ --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": "sunitapalubanjar/sft_smolLM2_good", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sunitapalubanjar/sft_smolLM2_good with Docker Model Runner:
docker model run hf.co/sunitapalubanjar/sft_smolLM2_good
sft_smolLM2_good
This model is a fine-tuned version of HuggingFaceTB/SmolLM2-135M on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 3.2792
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 2
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- num_epochs: 2
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.607 | 0.08 | 200 | 3.0681 |
| 1.6404 | 0.16 | 400 | 3.0933 |
| 1.6482 | 0.24 | 600 | 3.1308 |
| 1.6759 | 0.32 | 800 | 3.1196 |
| 1.7177 | 0.4 | 1000 | 3.1133 |
| 1.7583 | 0.48 | 1200 | 3.1153 |
| 1.6939 | 0.56 | 1400 | 3.1267 |
| 1.7806 | 0.64 | 1600 | 3.1117 |
| 1.7934 | 0.72 | 1800 | 3.0796 |
| 1.7935 | 0.8 | 2000 | 3.0968 |
| 1.8357 | 0.88 | 2200 | 3.0707 |
| 1.9003 | 0.96 | 2400 | 3.0696 |
| 1.4838 | 1.04 | 2600 | 3.2396 |
| 1.0071 | 1.12 | 2800 | 3.2772 |
| 0.9792 | 1.2 | 3000 | 3.3005 |
| 1.0558 | 1.28 | 3200 | 3.3140 |
| 1.0766 | 1.3600 | 3400 | 3.3135 |
| 1.1154 | 1.44 | 3600 | 3.2960 |
| 1.2208 | 1.52 | 3800 | 3.2855 |
| 1.216 | 1.6 | 4000 | 3.2785 |
| 1.1656 | 1.6800 | 4200 | 3.2815 |
| 1.187 | 1.76 | 4400 | 3.2797 |
| 1.2229 | 1.8400 | 4600 | 3.2808 |
| 1.2002 | 1.92 | 4800 | 3.2793 |
| 1.2241 | 2.0 | 5000 | 3.2792 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 8
Model tree for sunitapalubanjar/sft_smolLM2_good
Base model
HuggingFaceTB/SmolLM2-135M