Skip to main content

loops-tinker

Drop-in compatibility shim that provides the tinker package namespace backed by the loops SDK.

Installation

pip install loops-tinker

Usage

Existing code that uses import tinker works without modification:

import tinker

service_client = tinker.ServiceClient(training_project_id="proj_abc123")
training_client = service_client.create_lora_training_client(
    base_model="Qwen/Qwen3-8B", rank=16,
)
sampling_client = service_client.create_sampling_client(model="Qwen/Qwen3-8B")

All types are also available under tinker.types:

from tinker.types import SamplingParams, Datum, ModelInput
from tinker.types.tensor_data import TensorData

Using with tinker-cookbook

tinker-cookbook depends on tinker, but you can swap in loops-tinker using uv's override-dependencies to prevent the original tinker from being installed.

First add the override to pyproject.toml before installing any dependencies (there is no CLI command for this). If tinker-cookbook is added first, the original tinker gets installed and its files conflict with loops-tinker:

[tool.uv]
override-dependencies = [
    "tinker ; python_version < '0'",
]

Then add the dependencies:

uv init
uv add tinker-cookbook
uv add "loops @ git+https://github.com/basetenlabs/loops#subdirectory=loops"
uv add "loops-tinker @ git+https://github.com/basetenlabs/loops#subdirectory=loops-tinker"

loops is a transitive dep of loops-tinker but must be listed directly because [tool.uv.sources] only applies to direct dependencies. This won't be needed once loops is published to PyPI.

The tinker namespace will be provided by loops-tinker instead of the original package.

Metadata

Release files for baseten-loops-tinker 0.16.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 baseten-loops-tinker 0.16.0
File Size Uploaded
baseten_loops_tinker-0.16.0.tar.gz 88.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for baseten-loops-tinker 0.16.0
File Interpreter ABI Platform
baseten_loops_tinker-0.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 98.6 kB

Release files / baseten_loops_tinker-0.16.0.tar.gz

Download URL baseten_loops_tinker-0.16.0.tar.gz
Size 88.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a7ee29f8bead0a592db6c8085a846a5f738d4c5a4c6dc957b6a0fdd3e60c176
BLAKE2b-256 checksum
How to use checksums
3fac6f0015be6a6997c09908a2bf7d600ce444dfd4c045158c328d6ac0a2c5b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

Release files / baseten_loops_tinker-0.16.0-py3-none-any.whl

Download URL baseten_loops_tinker-0.16.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
352ac8772b0801695a4f27c0d8e3c0480cf58d081ad59cc4e0f8c897eadaf56e
BLAKE2b-256 checksum
How to use checksums
495d363bf3d43544be4575b35097c4aacbdafb5d9f998ff1ed39e94dd92ebd5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.16.1

2 release files

This release

0.16.0 This release

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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