Skip to main content

Mind Lab Toolkit (MinT) - the Open Infrastructure for Experiential Intelligence

Project description

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

service_client = mint.ServiceClient()
openpi_client = mintx.create_openpi_training_client(service_client)

Use this namespace for MinT-specific extensions that should not appear in the default top-level mint surface. OpenPI / VLA helpers are the first concrete example of that rule.

The current OpenPI helper is intentionally narrow: it is pinned to openpi/pi0-fast-libero-low-mem-finetune with LoRA rank 16.

Documentation

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

License

MIT


A Mind Lab Contribution - A Lab for Experiential Intelligence.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindlab_toolkit-0.1.0.tar.gz (59.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindlab_toolkit-0.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file mindlab_toolkit-0.1.0.tar.gz.

File metadata

  • Download URL: mindlab_toolkit-0.1.0.tar.gz
  • Upload date:
  • Size: 59.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for mindlab_toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7540022fc4e0466f84abe216af1f92857e55cbe14e676201c2e66c7cfcddcf3
MD5 7391b1edfd42d0b9920157b26358f7e1
BLAKE2b-256 f86ce388259b611d3e829084025a99d8ac1b3e3658b5b495d484d796e9cb330e

See more details on using hashes here.

File details

Details for the file mindlab_toolkit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mindlab_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e801dcc3d0cd8e1185ce1bc307c5461088f02c012653195ca309c28f6753f375
MD5 6890d548a4e1a48e32ec43d2ad57be30
BLAKE2b-256 3623a95197b9089822f492d31366eefb04f363ce48a8d1cd24fb001ed0a4ad0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page