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.
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.
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.
If your existing code starts with import tinker, the smallest working MinT migration is:
import mint as tinkerThen switch your credentials and endpoint to MinT.
Why this matters:
- raw upstream
import tinkerstill validates API keys with thetml-prefix - MinT keys start with
sk- import mintapplies 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-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.
Read the MinT documentation at mint-doc.macaron.im.
MIT
A Mind Lab Contribution - A Lab for Experiential Intelligence.