DEV Community

KAMAL KISHOR
KAMAL KISHOR

Posted on

Smollm3 + Ollama: Running a Local LLM That Feels Like Magic ๐Ÿš€

Large Language Models (LLMs) are transforming how we code, write, and interact with machines. But many devs still think LLMs are only for big players like OpenAI or Anthropic. Thatโ€™s not true anymore.

With Smollm3 (a super lightweight LLM) + Ollama (a local runtime for LLMs), you can run AI models on your own laptopโ€”no API bills, no vendor lock-in, no internet dependency.

Letโ€™s explore how to do this with real-world examples that go beyond just saying โ€œit works.โ€


โšก Why Smollm3?

  • Tiny but powerful โ€“ designed for local use
  • Fast โ€“ runs even on consumer laptops
  • Privacy-first โ€“ no data leaves your machine
  • Flexible โ€“ you can fine-tune or extend for your needs

Perfect for devs who want hands-on AI without GPU farms.


๐Ÿ› ๏ธ Step 1: Install Ollama

Ollama is like Docker, but for AI models.

curl -fsSL https://ollama.com/install.sh | sh
Enter fullscreen mode Exit fullscreen mode

Once installed, test with:

ollama run llama3.2
Enter fullscreen mode Exit fullscreen mode

Boomโ€”youโ€™ve got a working local LLM.


๐Ÿง  Step 2: Pull Smollm3 Model

Smollm3 is small enough for everyday use.

ollama pull smollm3
ollama run smollm3
Enter fullscreen mode Exit fullscreen mode

Now youโ€™re chatting with a local AI model. ๐ŸŽ‰


๐Ÿ’ป Real-Life Examples

Hereโ€™s where it gets interestingโ€”running Smollm3 for everyday dev and life tasks.

1. ๐Ÿš€ As a Coding Assistant

ollama run smollm3
Enter fullscreen mode Exit fullscreen mode

Prompt:

Write a Python script to monitor a folder and print any new files in real time.
Enter fullscreen mode Exit fullscreen mode

Output:

import os
import time

folder = "./watch_folder"
seen = set(os.listdir(folder))

while True:
    current = set(os.listdir(folder))
    new_files = current - seen
    if new_files:
        for f in new_files:
            print(f"New file detected: {f}")
    seen = current
    time.sleep(2)
Enter fullscreen mode Exit fullscreen mode

โœ… Run instantly on your machine. No cloud latency.


2. ๐Ÿ“ Summarizing Research Papers Offline

Letโ€™s say you downloaded a PDF from arXiv.

Prompt:

Summarize this research paper in 5 bullet points: [paste abstract]
Enter fullscreen mode Exit fullscreen mode

Smollm3 gives a digestible versionโ€”no internet required.


3. ๐Ÿ›๏ธ Personal Shopping Assistant

Imagine you copy-paste Amazon product descriptions.

Prompt:

Compare these 3 headphones and tell me which is best for bass lovers.
Enter fullscreen mode Exit fullscreen mode

Smollm3 instantly gives pros/cons breakdowns. Perfect offline shopping buddy.


4. ๐Ÿ“… Meeting Notes Summarizer

Paste your Zoom transcript into Smollm3:

Prompt:

Summarize key decisions and action items from this transcript.
Enter fullscreen mode Exit fullscreen mode

Now youโ€™ve got meeting minutesโ€”no Notion AI subscription needed.


5. ๐Ÿ“š Learning Aid

Students can run:

Prompt:

Explain quantum entanglement as if Iโ€™m 10 years old.
Enter fullscreen mode Exit fullscreen mode

Or even:

Generate 10 practice questions for Python list comprehensions.
Enter fullscreen mode Exit fullscreen mode

6. ๐Ÿ›ก๏ธ Privacy-Preserving Journal

If you keep a private journal:

Prompt:

Rewrite this journal entry in a positive, motivating way: [paste text]
Enter fullscreen mode Exit fullscreen mode

No servers. 100% private.


๐Ÿง‘โ€๐Ÿ’ป Step 3: Build Custom Workflows

With Ollama, you can integrate Smollm3 into apps:

Example: Local API Server

ollama serve
Enter fullscreen mode Exit fullscreen mode

Send requests with curl:

curl http://localhost:11434/api/generate -d '{
  "model": "smollm3",
  "prompt": "Write a haiku about DevOps"
}'
Enter fullscreen mode Exit fullscreen mode

โœ… Local AI endpoint for your apps.


๐Ÿ”ฎ Final Thoughts

Running Smollm3 + Ollama makes AI feel:

  • Personal โ†’ no one else sees your data
  • Accessible โ†’ no expensive GPU cloud bills
  • Hackable โ†’ integrate into your apps, workflows, or scripts

LLMs donโ€™t need to live in a datacenter anymore. They can live on your laptop, right beside VS Code, Chrome, or Spotify.


๐Ÿ”ฅ If you found this useful, drop a comment with how youโ€™d use a local LLMโ€”I might build a follow-up with custom workflows for developers, students, and everyday creators.

Top comments (0)