Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Pentium95
/
SmolLMathematician-3B

Text Generation
PEFT
Safetensors
Transformers
lora
sft
trl
Model card Files Files and versions
xet
Community
1

Instructions to use Pentium95/SmolLMathematician-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use Pentium95/SmolLMathematician-3B with PEFT:

    Task type is invalid.
  • Transformers

    How to use Pentium95/SmolLMathematician-3B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Pentium95/SmolLMathematician-3B")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("Pentium95/SmolLMathematician-3B", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Pentium95/SmolLMathematician-3B with vLLM:

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

    How to use Pentium95/SmolLMathematician-3B 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 "Pentium95/SmolLMathematician-3B" \
        --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": "Pentium95/SmolLMathematician-3B",
    		"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 "Pentium95/SmolLMathematician-3B" \
            --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": "Pentium95/SmolLMathematician-3B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use Pentium95/SmolLMathematician-3B with Docker Model Runner:

    docker model run hf.co/Pentium95/SmolLMathematician-3B
SmolLMathematician-3B
6.17 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
Pentium95's picture
Pentium95
Update README.md
08211bc verified 8 months ago
  • .gitattributes
    1.62 kB
    Upload Trackio.png 8 months ago
  • README.md
    1.79 kB
    Update README.md 8 months ago
  • Trackio.png
    167 kB
    xet
    Upload Trackio.png 8 months ago
  • config.json
    2.02 kB
    Upload 8 files 8 months ago
  • generation_config.json
    121 Bytes
    Upload 8 files 8 months ago
  • model-00001-of-00002.safetensors
    4.97 GB
    xet
    Upload 8 files 8 months ago
  • model-00002-of-00002.safetensors
    1.18 GB
    xet
    Upload 8 files 8 months ago
  • model.safetensors.index.json
    26.9 kB
    Upload 8 files 8 months ago
  • results_2025-09-29T21-06-55.416230.json
    4.28 kB
    Upload results_2025-09-29T21-06-55.416230.json 8 months ago
  • special_tokens_map.json
    151 Bytes
    Upload 8 files 8 months ago
  • tokenizer.json
    17.2 MB
    xet
    Upload 8 files 8 months ago
  • tokenizer_config.json
    56.5 kB
    Upload 8 files 8 months ago
  • train.py
    2.95 kB
    Upload train.py 8 months ago