Install the Mint Recursive SDK¶
The Mint Recursive client SDK ships as mindlab-toolkit, a pure Python package. Enterprise and Community share the same package, so the only difference between them is the endpoint and API key.
Requirements¶
- Python 3.11 or above.
- We recommend creating an isolated environment with
venvorconda. - No local GPU is required. The client only assembles training requests; all forward, backward, and sampling runs on the Mint Recursive cluster.
- Network access to your enterprise tenant's Mint Recursive endpoint (
mint.macaron.imormintcn.macaron.xin, or your private cluster address).
Install command¶
The install also pulls in the mint package and a compatible tinker (>= 0.15.0) runtime helper library.
Verify¶
tinker-compatible entry point¶
If you already have a Tinker training script, migrating to Mint Recursive takes a single import line change:
Importing mint patches Tinker's key-validation logic automatically, so sk-* API keys work directly.
Note
In the Mint Recursive training loop, do not call zero_grad_async — gradient zeroing is handled centrally on the server side. This is a known behavior difference between Mint Recursive and tinker.
Namespaces¶
The core namespaces available after install:
mint: the core API (ServiceClient,create_lora_training_client,forward_backward,optim_step,save_weights_and_get_sampling_client, etc.).mint.types: type definitions (Datum,ModelInput,AdamParams,SamplingParams, etc.).mintx: Mint Recursive-specific extensions (including constants likemintx.OPENPI_FAST_MODEL).
Offline install for private environments¶
Private delivery explicitly includes "dependency images and offline install packages, supporting one-click startup in a fully air-gapped environment." For Enterprise private-deployment customers, the Mind Lab team delivers the offline install package and upgrade process together with the cluster during onboarding — no need to build your own pip mirror.
Next steps
After the SDK is installed, continue to Configure & Manage API Keys, then follow the Quick Start to get your first training run working.