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.17.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.17.0
File Size Uploaded Provenance Actions
baseten_loops_tinker-0.17.0.tar.gz 89.4 kB With provenance Details for baseten_loops_tinker-0.17.0.tar.gz

Built distribution (wheel)

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

Total release size: 101.0 kB

Release files / baseten_loops_tinker-0.17.0.tar.gz

Download URL baseten_loops_tinker-0.17.0.tar.gz
Size 89.4 kB
Tags Source
SHA-256 checksum
How to use checksums
26892555ebe0ae455631ae7abe16c1ac7722aed7995a485d29938cee6701b894
BLAKE2b-256 checksum
How to use checksums
7f94a14b1e849acf2a40b7603ed95bee70e34a6b00bc125dc299cfdaf1c20d57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 26, 2026.

Transparency log

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

Download URL baseten_loops_tinker-0.17.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a91d69ce107593517d295d2363785a4ef23421851d74ecdb0add668ff99153b
BLAKE2b-256 checksum
How to use checksums
267ff4b22dcc5068247655dafa31570b69cf6d190e4160b682b3f328254753f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 26, 2026.

Transparency log

Security for baseten-loops-tinker 0.17.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for baseten_loops_tinker-0.17.0.tar.gz

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 Oct 26, 2026.

Transparency log

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