Jeison Eccel

From Local LLMs to Cloud providers

My first agentic coding experiment started with a simple question:

Can I build a useful coding agent that runs entirely on my computer for $0 per month?

I have a Mac with an M2 processor and 16 GB of unified memory. That is a perfectly capable development machine, but it is not a particularly powerful Large Language Model (LLM) workstation.

Still, I wanted to know where the limit was.

I tested Qwen 2.5 Coder 7B and 14B, Ministral 3 8B, and GPT-OSS 20B. I connected the models to a coding agent, gave them increasingly realistic tasks, and watched what happened.

The models worked.

The agentic coding workflow didn't work well enough for me.

My machine could run the models, but the combination of model size, quantization, available context, and agent loops did not produce reliable enough results.

For my workflow as a developer, Stage 1 has reached its limit.

So what comes next?

The obvious answer is the cloud

The easiest answer is to use a service that already provides powerful models.

Claude, Codex, and other hosted models remove the hardware problem completely. Send some tokens, get some tokens back, pay for what you consume.

Simple.

But that immediately introduces another constraint: the token meter.

Agentic coding can consume a lot of context. The agent reads files, generates code, runs tools, reads errors, revisits files, and starts another loop. A task that looks small to me may require a surprisingly large conversation between the agent, the model, and the codebase.

Once every input and output token has a price, context management becomes part of the engineering problem.

That is something I want to test, but I don't want to jump there yet.

There is a middle ground.

What if I rent the computer instead of the model?

The idea is basically this:

My Mac
  │
  ├── IDE
  ├── source code
  ├── tests
  └── local agent
        │
        │ API
        ▼
Remote GPU
  │
  └── my chosen open model

Instead of running Ollama and the model on my Mac, I keep the development environment local and move the expensive inference workload to a remote GPU.

I still choose the model.

I still choose the quantization.

I still control the agent.

But my Mac no longer needs to hold the LLM in its 16 GB of memory.

This becomes Stage 2 of the experiment.

The question is:

Can I rent a remote computer capable of running a much stronger model, and can that be cheaper enough than per-token cloud models to justify using it for everyday agentic coding?

I already know the remote model probably won't compete with the best managed models on the hardest tasks.

That isn't the point.

If it can reliably handle repetitive work and medium-complexity coding without making me worry about every additional file the agent reads, it may still earn a very useful place in the workflow.

Think of it less like replacing the senior developer and more like finding a much more capable workstation for the junior one.

Renting GPUs instead of VMs

I don't want to rent a traditional cloud Virtual Machine (VM), start an expensive GPU instance, and hope I remember to shut it down.

That would create a terrible experiment.

If I accidentally leave a GPU running overnight, the cost says more about my ability to click "Stop" than it does about agentic coding.

I want serverless GPU computing instead.

The service starts compute when the model needs it, bills for the active resources, and can scale back to zero when I stop using it.

Two services stood out: Modal and Baseten.

Both let developers deploy open models on powerful GPUs without managing a traditional GPU server. Both support hardware far beyond what fits in my Mac.

For reference, GPUs such as the NVIDIA A100, H100, H200, and B200 are not models. They are the hardware where the models run. The important number for this experiment is GPU memory, or VRAM.

An A100 or H100 can provide 80 GB of VRAM. An H200 provides 141 GB. A B200 provides around 180 GB.

That opens a very different model range from my 16 GB machine.

Modal vs. Baseten

At the time of writing, the published prices look roughly like this:

GPUGPU memoryModalBaseten
A10080 GB~$2.50/hour~$4.00/hour
H10080 GB~$3.95/hour~$6.50/hour
H200141 GB~$4.54/hour—
B200180 GB~$6.25/hour~$9.98/hour

These numbers are only the starting point. Real cost depends on how long the GPU stays active, startup and shutdown behavior, CPU and memory charges, model loading, and how efficiently the inference server uses the hardware.

Still, the difference is large enough to matter.

Modal's Starter plan currently includes $30 of compute each month. Baseten's Basic plan has no monthly fee and new accounts receive free credits, although the public pricing page does not specify a fixed signup amount.

Both say that idle resources are not billed as active compute.

Sources:

Baseten looks attractive, especially if I eventually care more about managed production inference and deployment tooling.

For this experiment, however, Modal is the more interesting starting point for me.

The hourly GPU prices are lower across the comparable hardware I want to test, the recurring $30 monthly allowance is convenient for experiments, and Modal exposes exactly the kind of compute control I want while still letting the infrastructure scale down when I'm not coding.

This is a subjective choice, not a conclusion that Modal is universally better.

It simply fits my experiment better.

Start with something I already know

It would be tempting to immediately rent an H200 and load the biggest model I can find.

That would be fun.

It would also be a poor experiment.

I already tested Qwen 2.5 Coder 14B locally, so the first remote test should start there.

Stage 1
Qwen 2.5 Coder 14B
Mac M2 / 16 GB
        │
        ▼
Stage 2 baseline
Qwen 2.5 Coder 14B
Remote GPU

This gives me a reference point before changing the model.

From there, I can increase capacity gradually.

A possible path is:

  1. Qwen 2.5 Coder 14B as the control.
  2. Qwen 2.5 Coder 32B with heavier quantization.
  3. The same 32B model at higher precision.
  4. A newer coding-focused model around the 30B range.
  5. A 70B-80B class model if the previous steps justify the additional cost.

Quantization is basically a way of storing model weights with fewer bits. Lower precision reduces memory requirements, allowing a larger model to fit on smaller hardware, but it can also affect quality.

Stage 2 gives me enough memory to test both sides of that tradeoff.

Instead of asking only, "Does 32B beat 14B?", I can also ask:

Does the same 32B model become meaningfully better when I stop compressing it so aggressively?

That is something my current machine cannot test comfortably.

I still want to count tokens

There is one important detail.

Stage 2 uses GPU time for billing, but I still want to record token usage.

I just don't want to optimize around it yet.

Suppose one remote task costs $4 of GPU compute and consumes a large amount of context. Later, the same amount of input and output might have cost $10 using a per-token service.

That becomes useful comparison data.

Then Stage 3 may produce the opposite result. Perhaps I spend more time selecting context, refining prompts, stopping unnecessary loops, and preventing the agent from rereading files. The API bill falls to $4, but my two-hour task becomes a three-hour task because I am doing more work to control the model.

Which one is cheaper?

"$4 versus $4" clearly doesn't answer that question.

I need to track more than the invoice.

For each comparable task, I want to record things such as:

MetricWhy I care
Input tokensHow much context the agent consumes
Output tokensHow much the model generates
GPU/API costWhat I actually pay
Wall-clock timeHow long the workflow takes
Human interventionHow much I need to help the agent
Agent loopsHow much repeated work occurs
Test resultWhether the code actually works

Eventually I should be able to compare cost per successful task, not simply dollars per GPU-hour or dollars per million tokens.

That sounds much closer to real software development.

Stage 3 is already starting in parallel

There is another small twist in this experiment.

I happen to have AWS credits that expire in early 2027.

Amazon Bedrock is included among the services eligible for those credits, and Bedrock gives me access to managed models billed by token.

So while Stage 2 explores the "rent the GPU, control the model" approach, I can start Stage 3 in parallel using Bedrock.

Stage 3 asks a different question:

How much additional capability do managed cloud models give me, and how much context, prompt, and loop optimization is required to keep their token cost under control?

Bedrock is simply a convenient starting point because I already have credits.

It could be another provider for someone else.

Later, I also want this stage to include coding systems such as Claude Code, Codex, and other managed agents or model APIs.

The important difference is the optimization target.

In Stage 2, I track tokens but let the agent use the context it reasonably needs.

In Stage 3, token efficiency becomes part of the engineering work.

If the agent keeps rereading the same file, I want to know why.

If a large tool result can be summarized, I want to test that.

If I can retrieve only the relevant code instead of sending half of the repository, I want to measure the effect.

And if all of that saves $2 but costs me another hour of manual work, I want to measure that too.

The workflow I am really testing

The end goal may not be one model.

It may be a mixed workflow.

Coding task
    │
    ├── Small / repetitive
    │      └── Local or remote open model
    │
    ├── Medium complexity
    │      └── Remote larger open model
    │
    └── Complex / reasoning-heavy
           └── Managed cloud model

Stage 1 has already made the first option narrower for me. My current hardware simply doesn't provide the local agentic experience I need.

Stage 2 now tests whether renting powerful hardware can fill the middle.

Stage 3 tests whether paying for stronger managed intelligence is worth it when the task becomes harder.

Maybe the remote approach is surprisingly economical.

Maybe token-based models are so much more effective that GPU hosting isn't worth the trouble.

Maybe each one finds its own place.

I don't know yet.

That's the reason for the experiment.

For now, the next step is simple: move the same agent away from my Mac, put Qwen 2.5 Coder 14B on Modal as the baseline, and start climbing from there.