Drop-in tinker compatibility shim backed by the loops SDK
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file baseten_loops_tinker-0.2.0.tar.gz.
File metadata
- Download URL: baseten_loops_tinker-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fccce92ea031bafc5a6a1451c183db5bb58898631ef7fd03f1f9ee54b3daf252
|
|
| MD5 |
77f457cdc48712f23dc39ad2799e98b0
|
|
| BLAKE2b-256 |
1f8e38eb7732fe073a25965dae4bb20846e2ee5c3cd12ba4c60830b68be90cd6
|
Provenance
The following attestation bundles were made for baseten_loops_tinker-0.2.0.tar.gz:
Publisher:
publish.yml on basetenlabs/baseten-loops
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
baseten_loops_tinker-0.2.0.tar.gz -
Subject digest:
fccce92ea031bafc5a6a1451c183db5bb58898631ef7fd03f1f9ee54b3daf252 - Sigstore transparency entry: 1519359936
- Sigstore integration time:
-
Permalink:
basetenlabs/baseten-loops@a2ee90ff0fc6abbbd97d922500912231d5b5080c -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/basetenlabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a2ee90ff0fc6abbbd97d922500912231d5b5080c -
Trigger Event:
release
-
Statement type:
File details
Details for the file baseten_loops_tinker-0.2.0-py3-none-any.whl.
File metadata
- Download URL: baseten_loops_tinker-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36715de1461515423e99d972adbf562ebdda49ddf51e5d6a66eb02b5a5f77f82
|
|
| MD5 |
6f15fbcd888eba4456e8702e50655f29
|
|
| BLAKE2b-256 |
f5953378377aed76a3e8340bf87e1e43fc92a1f752c1ef5ae14d973ff453b520
|
Provenance
The following attestation bundles were made for baseten_loops_tinker-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on basetenlabs/baseten-loops
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
baseten_loops_tinker-0.2.0-py3-none-any.whl -
Subject digest:
36715de1461515423e99d972adbf562ebdda49ddf51e5d6a66eb02b5a5f77f82 - Sigstore transparency entry: 1519359992
- Sigstore integration time:
-
Permalink:
basetenlabs/baseten-loops@a2ee90ff0fc6abbbd97d922500912231d5b5080c -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/basetenlabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a2ee90ff0fc6abbbd97d922500912231d5b5080c -
Trigger Event:
release
-
Statement type: