Skip to main content

runara

Fine-tune open models without hosting them. You write the training loop; we hold the base weights and run the forward and backward passes.

pip install runara runara-cookbook
import runara
from runara_cookbook import renderers

sc = runara.ServiceClient(api_key="rk_live_...")
tc = sc.create_lora_training_client(base_model="qwen3.5-4b", rank=32)

renderer = renderers.get("qwen3_5", tokenizer=tc.get_tokenizer())
rows = [json.loads(line) for line in open("my_tickets.jsonl")]   # your disk

for epoch in range(3):
    for chunk in batches(rows, 8):
        data = [renderer.to_datum(row["messages"]) for row in chunk]
        fb = tc.forward_backward(data)              # submitted, not awaited
        tc.optim_step(runara.AdamParams(1e-4))      # submitted straight after
        print(fb.result().loss)                     # the loop blocks here

tc.save_state(name="support-v1")

Your data does not leave your machine

open(...) runs on your computer. The cookbook tokenizes locally and builds a per-token loss mask, so what crosses the wire is a list of integers and a list of floats — no text, no filenames, no schema. A two-turn conversation is about 900 bytes of that.

You can check this yourself before sending anything:

datum = renderer.to_datum(messages)
print(datum.token_ids)       # integers
print(datum.weights)         # 0.0 for the prompt, 1.0 for what you train on

What we do keep is the adapter you write with save_state, plus token counts and loss values for billing and the charts in the console.

Why the loop is yours

There is no job to submit and no config to fill in. You decide the batching, the schedule, when to stop, and what the loss means. That is more work than a managed API and it is the point: it is the difference between tuning a model and filling in a form.

forward_backward and optim_step both return immediately. Submit them back to back and collect later — the worker applies calls for a session in the order they arrive, so the round trip overlaps your next batch of tokenization instead of stalling the GPU.

What you get out

for checkpoint in sc.list_checkpoints():
    print(checkpoint.name, checkpoint.size_bytes, checkpoint.base_model)

Checkpoints are standard PEFT adapters — adapter_config.json and adapter_model.safetensors — so they load in vLLM, SGLang or transformers without conversion. Download them from the console, or serve them on Runara alongside the base model.

Errors worth catching

runara.InsufficientBalance The organization is out of credit.
runara.SessionClosed The session ended, or is ending because the balance ran out.
runara.RunaraError Everything else, with .status and .code.

A training call is never retried automatically. One that timed out may already have applied its gradients, and sending it again would train on the same batch twice.

Checked against the reference

The renderers are verified to produce byte-identical tokens, targets and loss masks to tinker-cookbook for the same conversation and tokenizer. Chat templating is the part of fine-tuning that goes wrong silently, so it is checked against an independent implementation rather than only against itself.

Installing

The client has no dependencies at all — it is stdlib, so installing it cannot conflict with whatever torch, transformers or numpy versions your training code already pins. The heavy dependencies live in runara-cookbook.

Metadata

Release files for runara 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runara 0.1.0
File Size Uploaded Provenance Actions
runara-0.1.0.tar.gz 23.6 kB Without provenance Details for runara-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runara 0.1.0
File Interpreter ABI Platform Actions
runara-0.1.0-py3-none-any.whl Python 3 none any Details for runara-0.1.0-py3-none-any.whl

Total release size: 42.4 kB

Release files / runara-0.1.0.tar.gz

Download URL runara-0.1.0.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
01115cadf5acd307f2a4edf8cae61b0d11b93b1b3bcb4a1d783b988b00c2b720
BLAKE2b-256 checksum
How to use checksums
0ce4503efa27beb46a740f8919850c76e271d66c25890b224fc541d4468ff9ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / runara-0.1.0-py3-none-any.whl

Download URL runara-0.1.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f126ad53e8dc5645a65e70025a98d931f491fa4b172414e6d8737de0cd615c4d
BLAKE2b-256 checksum
How to use checksums
77e812814cab26fba8b1c314b88dd499d4b747d93e9c2bcd3649c2c7af9223b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for runara 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page