❯ AI/ML on Your Terms: The Article I Wish I Had

by Jonas Reyes — the builder's desk, Side Quest Studios
November 28, 2026

Alright, let’s cut through the noise. You’re here because you’ve seen the demos, heard the promises, and probably have a few scars from a "transformative" AI initiative that turned into a black hole of vendor invoices and zero actual output. Good. You’re ready.

I’ve been knee-deep in this stuff since before "data scientist" was a job title, back when we called it "sysadmin wrangling a Python script." The landscape’s shifted, but the core problems haven't. This isn't about the next big hype cycle or some VC's deck. This is about real systems, real data, and shipping something that actually works without mortgaging your future to a third-party API. You’re going to build this yourself, on your terms. Because if you’re not controlling the stack, you’re not controlling your business.

Stop Trusting Black Boxes. Start with Linux.

The first mistake I see founders make is believing the marketing fluff that says AI is a magical, inaccessible art form best left to wizards in remote, air-gapped fortresses. It's not. It's software. And like all software, it runs on an OS. That OS is Linux. Period.

Why? Because you need control. You need visibility. You need strace, lsof, top, and journalctl. You need to know what’s happening when your GPU utilization flatlines at 3 AM or your model mysteriously starts hallucinating about sentient toasters. You don't get that with managed services that abstract everything away until it breaks, and then tell you to open a ticket.

Grab a VM. Grab a bare metal box. Get a cloud instance if you must, but treat it like bare metal. Start with Ubuntu Server or Debian. Minimal install. No desktop environment, no unnecessary services. You’re not running a gaming rig; you’re building an engine.

# Minimal Ubuntu Server install
# SSH in, then:
sudo apt update && sudo apt upgrade -y
sudo apt install build-essential python3-dev python3-pip git curl htop iotop nvtop -y # nvtop for GPU monitoring

This is your foundation. No, you don't need Kubernetes for your first model. No, you don't need a serverless platform that costs more than a small country's GDP. You need a Linux box and ssh. Keep it simple. Ship it.

Your Data is Gold. Keep it Local.

The second cardinal sin: letting your data scatter to the winds. Every cloud provider, every AI vendor, wants you to upload your data to their blob storage, their managed database, their "secure" enclave. Why? Because then they have you. Data ingress is cheap; egress is how they bleed you dry. And worse, you’ve just handed over the most valuable asset your business owns to someone else’s terms of service.

No. Your data stays with you. If you’re processing a million records, that data lives on a local disk, a local NAS, or a local object store you control.

Think rsync, minio, or plain old NFS mounts. For small-to-medium scale, a fast NVMe SSD on your Linux box is more than enough for model training data. For larger datasets, spin up a dedicated storage node running MinIO or even just an ext4 filesystem shared over NFS.

# Example: Setting up MinIO for local object storage
# On your Linux box:
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
./minio server /data --console-address ":9001" &
# This creates a local S3-compatible endpoint on port 9000 and a console on 9001.
# Access it with the MinIO client or any S3 SDK.

This keeps your data close, fast, and most importantly, under your control. Don’t trust buzzwords like "data sovereignty" from a vendor trying to lock you in. True data sovereignty means you can literally pull the plug on the server and walk away with your disks.

Python, Not Prototypes.

You're a founder. You ship. You don't just "prototype." And when it comes to AI/ML, Python is your hammer, chisel, and screwdriver. It’s mature, it's performant enough for 90% of use cases, and the ecosystem is second to none.

Forget the fancy GUIs and drag-and-drop model builders. They abstract away the details you need to understand when things break. You need to write code.

Start with venv or conda for environment management. Don't pollute your system Python. Ever.

# Create and activate a virtual environment
python3 -m venv ~/my_ml_env
source ~/my_ml_env/bin/activate

# Install essential libraries
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 # For NVIDIA GPU
# Or for CPU only: pip install torch torchvision torchaudio
pip install transformers datasets scikit-learn pandas numpy matplotlib

This is your stack. PyTorch (or TensorFlow, if that’s your poison) for the heavy lifting, Hugging Face transformers and datasets for quickly leveraging pre-trained models and handling data, and scikit-learn for all the classic ML tasks.

Yes, you need to learn how to write a Python script that loads data, trains a model, and saves weights. This isn't optional. This is the core skill. The "easy" buttons invariably lead to hard problems later.

GPUs: Rent vs. Buy. The Answer is "Both."

Everyone talks about GPUs like they’re unobtanium. They’re not. You need them for serious model training and inference. The question is when to rent and when to buy.

For initial experimentation and smaller models, cloud GPUs (AWS g instances, GCP A100s, Azure NC series) are fine. They let you scale up and down quickly. But the moment you start training models for days or weeks, or running continuous inference, the cloud costs will eat you alive. I've seen founder burn rates skyrocket because they didn't do the math.

Your long-term play is on-premise GPUs. A single RTX 4090 or a used A100 can give you immense power for a fraction of the cloud cost over time. Think about it: an RTX 4090 costs ~$1,600. Running a comparable cloud GPU (like an A10G) for a month can easily hit that. Cloud GPUs are not a cheap date if you're not careful with your utilization.

Buy one, stick it in your Linux box. Learn to install NVIDIA drivers. It’s a rite of passage.

# Installing NVIDIA drivers (example for Ubuntu, specific version might vary)
sudo apt update
sudo apt install nvidia-driver-535 # Or the latest stable version
sudo reboot
nvidia-smi # Verify installation

Don’t be scared of hardware. It’s just another system to manage. And managing your own means you own the costs, the performance, and the uptime. For burstable, massive training runs, sure, leverage cloud. But for your core operations, build it yourself.

Inference: Keep it Simple, Stupid.

So you’ve trained your model. Now what? You need to serve it. This is where most people over-engineer things. They jump straight to Triton Inference Server, ONNX Runtime, or even custom C++ services.

For 90% of use cases, your first inference server is a Python script running Flask or FastAPI with your trained model loaded.

# app.py
from fastapi import FastAPI
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

app = FastAPI()

# Load your model and tokenizer once when the app starts
model_name = "your_trained_model_path" # Or a Hugging Face model ID
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
model.eval() # Set model to evaluation mode

@app.post("/predict/")
async def predict(text: str):
    inputs = tokenizer(text, return_tensors="pt")
    with torch.no_grad():
        outputs = model(**inputs)
        logits = outputs.logits
        probabilities = torch.softmax(logits, dim=1).tolist()[0]
    return {"prediction": probabilities}

# Run with: uvicorn app:app --host 0.0.0.0 --port 8000

Then, front it with nginx for TLS and reverse proxying. Use systemd to keep your uvicorn process alive. This is a battle-tested web serving stack. It’s robust, it’s performant enough, and you understand every single layer.

# Example systemd service file for FastAPI (e.g., /etc/systemd/system/ml_api.service)
[Unit]
Description=ML API Service
After=network.target

[Service]
User=youruser
Group=youruser
WorkingDirectory=/path/to/your/app
ExecStart=/path/to/your/ml_env/bin/uvicorn app:app --host 0.0.0.0 --port 8000
Restart=always

[Install]
WantedBy=multi-user.target

# Reload systemd and start:
sudo systemctl daemon-reload
sudo systemctl enable ml_api.service
sudo systemctl start ml_api.service

This is how you ship. Not with a 10-layer microservice mesh for a single model. Not with a managed inference endpoint that costs per query and gives you no visibility. You ship with a solid Python app, a robust web server, and systemd.

The Bottom Line: Control.

This isn't about being a Luddite. It's about being pragmatic. The industry is full of people trying to sell you complexity and abstraction layers. But when things go sideways at 3 AM – and they will – you need to know exactly how to fix it. That means owning your stack, from the OS to the application code.

Don't let anyone tell you this is too hard or too complex. It's not. It's just engineering. And you’re an engineer. Get to work.

by Terminal King — the terminal, Side Quest Studios

References