LIVE · Thursday 3 December

Serverless per-token LoRA for Llama 3.1 8B in 2026: pay $0.22 per million tokens, nothing when idle

For a fine-tuned Llama 3.1 8B adapter with traffic that drops to zero at night, per-token serving beats any hourly GPU until that GPU stays busy around the clock. One self-serve provider still offers it, with a rank-16 cap.

By Thomas8 min read

The cheapest way to serve a spiky Llama 3.1 8B LoRA in November 2026 is per-token serverless inference, where you upload the adapter and pay per token, with no charge when traffic stops. CoreWeave's Serverless Inference (sold as W&B Inference) is the one self-serve provider whose docs list meta-llama/Llama-3.1-8B-Instruct as a LoRA base and bill adapter calls "at the same rates as standard model inference," which W&B lists at $0.22 per million input and output tokens. The catch is a maximum adapter rank of 16. Above that, or once traffic keeps a GPU busy most of the day, scale-to-zero GPU containers running vLLM become the better buy.

Why per-token pricing suits spiky traffic

The two ways to pay for inference reward different traffic shapes. A dedicated GPU is billed by the hour whether it serves 50 requests a second or none, so its cost per token depends on how busy you keep it. Per-token serving moves that utilisation risk to the provider: a shared cluster runs the base model for many customers, loads your small adapter on top when a request names it, and charges only for tokens processed.

For a team with zero requests overnight, that difference is most of the bill. CoreWeave's LoRA page puts it plainly: "You pay only for storage and the inference you run, rather than for always-on servers or dedicated GPU instances." The storage fee is unlikely to matter: CoreWeave's Forge pricing page includes 100 GB of artifact storage on its Pro plan, with extra storage at $0.03 per GB.

Who still offers it, and why the list is short

The providers' own docs narrow the field to one self-serve option for Llama, partly because one of them has withdrawn the product.

Together's LoRA documentation now says "Serverless LoRA inference (including Serverless Multi-LoRA) has been discontinued," and that fine-tuned adapters "are served on dedicated endpoints, not through the per-token serverless API." Fireworks does offer serverless LoRA, with no charge for loading an adapter or for idle time, but its docs say the feature is "in Preview and available on request" and supports a single base model, GLM 5.3 Flash. Groq supports LoRA on llama-3.1-8b-instant, built on Llama 3.1 8B Instruct, but its docs say "LoRA is available exclusively to enterprise-tier customers," with prices given only by its enterprise team. Cloudflare's Workers AI runs bring-your-own LoRA as a free open beta, but the LoRA-ready models in its catalogue are Gemma 2B and 7B, Llama 2 7B and Mistral 7B; its Llama 3.1 8B model is listed without LoRA support.

That leaves CoreWeave. Its docs list five LoRA bases, Llama 3.1 8B Instruct among them, each with a maximum rank of 16. Note that the base is Llama 3.1, not Llama 3. CoreWeave does not list the original Llama 3 8B, so an adapter trained on it needs retraining on 3.1 before it fits.

The rank limit is the first thing to check

Open your adapter's adapter_config.json and read the r field. If it is 16 or lower and the base is Llama 3.1 8B Instruct, the adapter fits CoreWeave as it stands. CoreWeave wants it in PEFT format, which is what adapter_config.json plus a safetensors weights file already is.

If the rank is higher, there are three ways out. You can retrain at rank 16; Together's pricing page lists supervised fine-tuning of Llama 3.1 8B at $0.34 or $0.38 per million training tokens in two unlabelled tables, so a 30-million-token run costs roughly $10 to $11. You can merge the adapter into the base model with PEFT's merge_and_unload(), which its docs say produces "a standalone model," and serve that merged model anywhere that takes full weights; merging removes the rank question entirely. Or you can serve the adapter yourself on vLLM, which takes a --max-lora-rank flag that its docs advise setting to the largest rank you plan to load.

CoreWeave's LoRA page does not mention which target modules it accepts or how many adapters an account can hold, so a team with an unusual adapter configuration should test an upload before planning around it.

Uploading and calling the adapter

The upload is a Weights & Biases artifact. CoreWeave's docs show it in a few lines of Python: create an artifact of type lora, record the base model in its metadata, set storage_region="coreweave-us" (the docs say the adapter must be stored there "for low latency"), add the adapter directory and log it.

import wandb

run = wandb.init(entity="your-team", project="your-project")
artifact = wandb.Artifact(
    "support_lora",
    type="lora",
    metadata={"wandb.base_model": "meta-llama/Llama-3.1-8B-Instruct"},
    storage_region="coreweave-us",
)
artifact.add_dir("./adapter")
run.log_artifact(artifact)

Calls go through the standard OpenAI client, with the artifact URI as the model name:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.inference.wandb.ai/v1",
    api_key="YOUR_API_KEY",
    project="your-team/your-project",
)
resp = client.chat.completions.create(
    model="wandb-artifact:///your-team/your-project/support_lora:latest",
    messages=[{"role": "user", "content": "Hello"}],
)

What spiky traffic does to latency and limits

This is where the documentation is thinnest. CoreWeave's LoRA page says the service "dynamically loads your weights for inference" but gives no figure for the first request after an idle period. Its usage-limits page says concurrency is capped per project and per user, that going over returns a 429 error, and that higher limits are arranged through support. It publishes no numeric limit. Whether 50 requests a second at peak fits under the default limit has not been published, so a team with that peak should ask before launch and run a load test at peak concurrency.

The same is true of latency against a warm dedicated endpoint: no provider here has published a comparison for LoRA calls on Llama 3.1 8B. Spending is capped too: Pro accounts have a default limit of $6,000 a month beyond the included allowance, and requests return a 402 error once it is reached, so a team expecting a $2,000 month has headroom but should know the cap exists.

The fallback: GPUs that scale to zero

If the rank, the limits or the latency don't work, the next cheapest route is GPU capacity that is billed by the second and shuts off when idle. Three options price differently.

RunPod Serverless bills per second, rounded up, and its flex workers "scale to zero when there are no requests," after a default idle timeout of five seconds. Its listed rates run from $0.75 an hour for an L4 to $1.89 for an L40S and $5.89 for an H100. Cold-start time is billed, though pulling the image and cached model normally happens while the worker is scaled down.

Fireworks on-demand deployments bill per GPU-second at $8 an hour for an H100, with no charge for start-up time, and scale to zero after one idle hour by default. Its docs warn that requests arriving while a deployment scales up from zero "return a 503 error immediately," so the client must retry.

Amazon Bedrock's Custom Model Import charges by Custom Model Unit. Its pricing page says a Llama 3.1 8B 128K model needs two units at $0.05718 per unit per minute, or about $6.86 an hour per model copy, billed in five-minute windows, and that Bedrock scales to zero after five minutes without calls, with a cold start "in tens of seconds." Its import docs describe full model files in Hugging Face format and do not mention adapters, so plan on merging first.

Together's dedicated endpoints, at $5.49 an hour for an H100, are the poor fit here. Its scaling docs say a running deployment cannot autoscale below one replica; the only way to zero is to stop it, manually or with an optional idle shutdown, after which it stays stopped until someone restarts it.

Where the break-even sits

At $0.22 per million tokens, an hourly GPU wins only when it processes enough tokens in every billed hour. A $5.49 Together H100 has to sustain about 6,900 tokens a second, around the clock, to match per-token pricing, and the dearer GPUs above set a higher bar still, about 10,100 tokens a second for a Fireworks H100. Cheaper cards set a lower one: an L40S at $1.89 an hour breaks even at about 2,400 tokens a second and an L4 at about 950, if one can carry the traffic.

Take a workload shaped like the question: zero requests for 12 hours, then 12 hours averaging 10 requests a second with a 50-per-second peak, and 500 input plus 200 output tokens per request, over a 30-day month. That is about 13 million requests and 9.07 billion tokens. Averaged over the month it runs at 3,500 tokens a second, half what one always-on Together H100 needs to break even.

Option Billed basis Monthly cost
CoreWeave per-token 9,072M tokens × $0.22 $1,996
RunPod H100, one worker, busy hours only 360 h × $5.89 $2,120
Bedrock, one copy, busy hours only 360 h × $6.86 $2,470
Fireworks H100, scales to zero after 1 h idle 390 h × $8.00 $3,120
Together H100, always on 730 h × $5.49 $4,008

The GPU rows are floors for a single GPU. At peak the workload runs at 35,000 tokens a second, and whether one H100 carries that for this model and prompt mix has not been measured; any second worker or copy adds to its row, as do ramps and cold starts. Bedrock also charges $3.90 a month to store the two-unit model. The per-token row has no such caveat, because it scales with tokens rather than hardware.

When owning the model becomes the question

A team whose adapter becomes central to the product may later want more than cheap serving: a model retrained on its own production traffic. Parsec, a small language model lab, describes that loop on its inference page, tracing production requests, building datasets and evaluations the customer approves, training with SFT or LoRA, and serving on a shared cluster where models "run alongside other teams'." It says weights are the customer's to download and that a first post-trained model takes about four weeks, a figure it gives without a baseline. It publishes no price for the service, its site does not say it accepts an existing adapter for upload, and its only code sample uses the Anthropic SDK.

Bottom line

If your adapter is rank 16 or lower on Llama 3.1 8B Instruct, use CoreWeave's per-token serving: about $2,000 a month for the workload above, nothing overnight, and no GPUs to run. Ask about concurrency limits before your 50-request peak. If the rank is higher, retrain at 16 or merge. If you need control over latency and scaling, run a merged model or vLLM on RunPod Serverless and load-test an L40S before assuming H100s. Move to always-on GPUs only once your traffic keeps one busy at roughly 7,000 tokens a second around the clock.

Sources

More in Chips & Compute

All Chips & Compute →