Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

patrickfleith
/
smollm3-sft

Text Generation
Transformers
Safetensors
smollm3
Generated from Trainer
trl
sft
hf_jobs
Model card Files Files and versions
xet
Community

Instructions to use patrickfleith/smollm3-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use patrickfleith/smollm3-sft with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="patrickfleith/smollm3-sft")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("patrickfleith/smollm3-sft")
    model = AutoModelForCausalLM.from_pretrained("patrickfleith/smollm3-sft")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use patrickfleith/smollm3-sft with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "patrickfleith/smollm3-sft"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "patrickfleith/smollm3-sft",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/patrickfleith/smollm3-sft
  • SGLang

    How to use patrickfleith/smollm3-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 "patrickfleith/smollm3-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": "patrickfleith/smollm3-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 "patrickfleith/smollm3-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": "patrickfleith/smollm3-sft",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use patrickfleith/smollm3-sft with Docker Model Runner:

    docker model run hf.co/patrickfleith/smollm3-sft
smollm3-sft
12.3 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
patrickfleith's picture
patrickfleith
End of training
03ec0b9 verified 7 months ago
  • .gitattributes
    1.57 kB
    Training in progress, step 500 7 months ago
  • README.md
    1.68 kB
    End of training 7 months ago
  • config.json
    2.01 kB
    Training in progress, step 500 7 months ago
  • generation_config.json
    105 Bytes
    Model save 7 months ago
  • model-00001-of-00003.safetensors
    4.93 GB
    xet
    Training in progress, step 1000 7 months ago
  • model-00002-of-00003.safetensors
    5 GB
    xet
    Training in progress, step 1000 7 months ago
  • model-00003-of-00003.safetensors
    2.37 GB
    xet
    Training in progress, step 1000 7 months ago
  • model.safetensors.index.json
    26.9 kB
    Training in progress, step 500 7 months ago
  • special_tokens_map.json
    151 Bytes
    Training in progress, step 500 7 months ago
  • tokenizer.json
    17.2 MB
    xet
    Training in progress, step 500 7 months ago
  • tokenizer_config.json
    50.4 kB
    Training in progress, step 500 7 months ago
  • training_args.bin

    Detected Pickle imports (10)

    • "transformers.training_args.OptimizerNames",
    • "trl.trainer.sft_config.SFTConfig",
    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.trainer_utils.HubStrategy",
    • "accelerate.state.PartialState",
    • "transformers.trainer_utils.SaveStrategy",
    • "torch.device",
    • "transformers.trainer_pt_utils.AcceleratorConfig",
    • "accelerate.utils.dataclasses.DistributedType",
    • "transformers.trainer_utils.SchedulerType"

    How to fix it?

    6.23 kB
    xet
    Training in progress, step 500 7 months ago