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
Training in progress, step 500
Browse filesFiles changed (2)
123version https://git-lfs.github.com/spec/v1oid sha256:236a2b7304ea2f554198b6b449077b76f00b4648935c67200dbc83ba46601c2csize 3422777952123version https://git-lfs.github.com/spec/v1oid sha256:1961f239997c488d334fa2f691d95ea7a92f83044eede9ca8cd28f5c7b606f10size 3422777952
123version https://git-lfs.github.com/spec/v1oid sha256:3aa29d8ef8dd235a46057b6da14b783c905363e1c5374de8bb3c38756d77778dsize 5752123version https://git-lfs.github.com/spec/v1oid sha256:34628920cb7cb8f49cf03f55f189b3cccef36edd32260d7eb3b4af3cb68293c9size 5752
model.safetensors+1-1
training_args.bin+1-1