Skip to main content

MinT

Mind Lab Toolkit (MinT)

The Open Infrastructure for Experiential Intelligence.

MinT is the reinforcement learning infrastructure for agents and models to learn from real experience. It focuses on the engineering and algorithmic realization of RL across multiple models and tasks, with emphasis on making LoRA RL simple, stable, and efficient.

Visit the MinT website.

Installation

cd mindlab-toolkit
pip install -e .

MinT pins the validated Tinker SDK dependency. If your environment already has a different Tinker version, reinstall with:

python -m pip install --force-reinstall 'tinker==0.15.0'

import mint also checks the installed Tinker version at runtime and fails fast with this command if the version is unsupported.

Usage

import mint

# Set API key via environment variable MINT_API_KEY.
# You can keep both MINT_* and TINKER_* variables in the same .env.
# Importing mint makes MINT_* take precedence for this process; set MINT_BASE_URL
# if you want a non-default endpoint.
# Default base URL: https://mint.macaron.xin
# Mainland China endpoint override: https://mint-cn.macaron.xin/

service_client = mint.ServiceClient()

Top-level import mint is the Tinker-compatible surface. All public Tinker APIs are available directly from mint and mirrored in mint.tinker.

Lowest-Friction Tinker Migration

If your existing code starts with import tinker, the smallest working MinT migration is:

import mint as tinker

Then switch your credentials and endpoint to MinT.

Why this matters:

  • raw upstream import tinker still validates API keys with the tml- prefix
  • MinT keys start with sk-
  • import mint applies the MinT compatibility patches that let the Tinker-style client surface keep working with MinT credentials

If you must keep the exact import tinker statement, import mint earlier in the same process before constructing Tinker clients.

MinT Extension Namespace (mintx)

MinT-only APIs live under mint.mint. The intended usage is:

import mint
import mint.mint as mintx

training_client = ...  # a mint/tinker TrainingClient
mintx.forward_backward_reverse_kl(
    training_client,
    reference_model_path="mint://teacher-step-0010",
    data=[...],
)

Use this namespace for MinT-specific extensions that should not appear in the default top-level mint surface. The current extensions are the MinT-only endpoints forward_backward_reverse_kl and interpolate_checkpoints.

Documentation

Read the MinT documentation at mint-doc.macaron.im.

License

MIT


A Mind Lab Contribution - A Lab for Experiential Intelligence.

Metadata

Release files for mindlab-toolkit 0.2.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 mindlab-toolkit 0.2.0
File Size Uploaded
mindlab_toolkit-0.2.0.tar.gz 30.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mindlab-toolkit 0.2.0
File Interpreter ABI Platform
mindlab_toolkit-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.9 kB

Release files / mindlab_toolkit-0.2.0.tar.gz

Download URL mindlab_toolkit-0.2.0.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9f64909024d523a8e99bcdb5745de027e43f17454a6825caa6bfa76daad8fe4b
BLAKE2b-256 checksum
How to use checksums
4ea00dc58baae71fc1d55afa6cc2f2fdd37a989d5cd2fecad3dcf795f4b2556e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / mindlab_toolkit-0.2.0-py3-none-any.whl

Download URL mindlab_toolkit-0.2.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ce2ea25eb2c18a16d6386bb55f0cf50eeedf16348387250bd5a74af14ff99d1
BLAKE2b-256 checksum
How to use checksums
62c0ad1004176663c3d376c36739afa77afff7119afa03511e5e82609a99c8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.1

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