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

  • Log In
  • Sign Up

ShayonSarker
/
SmolLM-360M-GGUF

Text Generation
Transformers
GGUF
llama.cpp
smollm
360m
small-model
edge-ai
quantization
q4_k_m
q8_0
wikitext-2
Model card Files Files and versions
xet
Community

Instructions to use ShayonSarker/SmolLM-360M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ShayonSarker/SmolLM-360M-GGUF with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ShayonSarker/SmolLM-360M-GGUF")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ShayonSarker/SmolLM-360M-GGUF", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use ShayonSarker/SmolLM-360M-GGUF with llama.cpp:

    Install (macOS, Linux)
    curl -LsSf https://llama.app/install.sh | sh
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    Build from source code
    git clone https://github.com/ggml-org/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-app
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama serve -hf ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama cli -hf ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    Use Docker
    docker model run hf.co/ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
  • Llama new
  • LM Studio
  • Jan
  • vLLM

    How to use ShayonSarker/SmolLM-360M-GGUF with vLLM:

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

    How to use ShayonSarker/SmolLM-360M-GGUF 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 "ShayonSarker/SmolLM-360M-GGUF" \
        --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": "ShayonSarker/SmolLM-360M-GGUF",
    		"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 "ShayonSarker/SmolLM-360M-GGUF" \
            --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": "ShayonSarker/SmolLM-360M-GGUF",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use ShayonSarker/SmolLM-360M-GGUF with Ollama:

    ollama run hf.co/ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
  • Unsloth Desktop
  • Docker Model Runner

    How to use ShayonSarker/SmolLM-360M-GGUF with Docker Model Runner:

    docker model run hf.co/ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
  • Lemonade

    How to use ShayonSarker/SmolLM-360M-GGUF with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull ShayonSarker/SmolLM-360M-GGUF:Q4_K_M
    Run and chat with the model
    lemonade run user.SmolLM-360M-GGUF-Q4_K_M
    List all available models
    lemonade list
  • Atomic Chat
SmolLM-360M-GGUF
1.38 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
ShayonSarker's picture
ShayonSarker
Update card: measured examples, badges, variant status
720432f verified about 2 months ago
  • .gitattributes
    1.69 kB
    Add validated GGUF artifacts about 2 months ago
  • LICENSE
    11.4 kB
    Add release card, build tools, and evaluation about 2 months ago
  • README.md
    3.25 kB
    Update card: measured examples, badges, variant status about 2 months ago
  • REPRO.json
    4.19 kB
    Add release card, build tools, and evaluation about 2 months ago
  • SHA256.txt
    268 Bytes
    Add release card, build tools, and evaluation about 2 months ago
  • build_gguf.py
    9.08 kB
    Add release card, build tools, and evaluation about 2 months ago
  • ppl-results.json
    382 Bytes
    Add release card, build tools, and evaluation about 2 months ago
  • requirements-build.txt
    120 Bytes
    Add release card, build tools, and evaluation about 2 months ago
  • smollm-360m-F16.gguf
    726 MB
    xet
    Add validated GGUF artifacts about 2 months ago
  • smollm-360m-Q4_K_M.gguf
    271 MB
    xet
    Add validated GGUF artifacts about 2 months ago
  • smollm-360m-Q8_0.gguf
    386 MB
    xet
    Add validated GGUF artifacts about 2 months ago