Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
text-generation-inference
Run this model with HF Jobs
Run Sungmanc/finetune_smollm2_python 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/Sungmanc/finetune_smollm2_python. 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/Sungmanc/finetune_smollm2_python 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/Sungmanc/finetune_smollm2_python. 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/Sungmanc/finetune_smollm2_python. 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 Sungmanc/finetune_smollm2_python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sungmanc/finetune_smollm2_python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sungmanc/finetune_smollm2_python")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sungmanc/finetune_smollm2_python") model = AutoModelForCausalLM.from_pretrained("Sungmanc/finetune_smollm2_python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sungmanc/finetune_smollm2_python with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sungmanc/finetune_smollm2_python" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sungmanc/finetune_smollm2_python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sungmanc/finetune_smollm2_python
- SGLang
How to use Sungmanc/finetune_smollm2_python 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 "Sungmanc/finetune_smollm2_python" \ --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": "Sungmanc/finetune_smollm2_python", "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 "Sungmanc/finetune_smollm2_python" \ --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": "Sungmanc/finetune_smollm2_python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sungmanc/finetune_smollm2_python with Docker Model Runner:
docker model run hf.co/Sungmanc/finetune_smollm2_python
Commit History
-
End of training
Verified signature0003559 -
Model save
Verified signature007c921 -
Training in progress, step 1000
Verified signature9a92e33 -
Training in progress, step 500
Verified signature1ebcaf2
-
Training in progress, step 500
Verified signatureeaf2b87
-
End of training
Verified signature03fc7b6 -
Model save
Verified signature3f964d4 -
Training in progress, step 1000
Verified signaturef059b70 -
Training in progress, step 500
Verified signature3a9dd5d
-
End of training
Verified signature5a1e321 -
Model save
Verified signaturee0f655e -
Training in progress, step 1000
Verified signature14844f4 -
Training in progress, step 500
Verified signature4d5f6c0 -
End of training
Verified signature42df7f6 -
Model save
Verified signature3baebe0 -
Training in progress, step 1000
Verified signatureaf91b81 -
Training in progress, step 500
Verified signature7efac3c
-
End of training
Verified signature41ce396 -
Model save
Verified signature98acced -
Training in progress, step 1000
Verified signaturee265874 -
Training in progress, step 500
Verified signaturee470f69 -
End of training
Verified signature8e34276 -
Model save
Verified signaturea35d6e9 -
Training in progress, step 1000
Verified signature3caff68 -
Training in progress, step 500
Verified signaturef8e6474 -
Training in progress, step 500
Verified signature4bab25a
-
End of training
Verified signature556bbd0 -
Model save
Verified signaturea515cf2 -
Training in progress, step 1000
Verified signature5a6c5d0 -
Training in progress, step 500
Verified signaturec3aa943
-
initial commit
Verified signature8000c57