Instructions to use Xylolabs/TML-d24-varloop-research-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Xylolabs/TML-d24-varloop-research-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("Xylolabs/TML-d24-varloop-research-MLX") config = load_config("Xylolabs/TML-d24-varloop-research-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Xylolabs/TML-d24-varloop-research-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Xylolabs/TML-d24-varloop-research-MLX"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Xylolabs/TML-d24-varloop-research-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Xylolabs/TML-d24-varloop-research-MLX with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Xylolabs/TML-d24-varloop-research-MLX"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Xylolabs/TML-d24-varloop-research-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/TML-d24-varloop-research-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Xylolabs/TML-d24-varloop-research-MLX"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Xylolabs/TML-d24-varloop-research-MLX" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
thinkingmachines/TML-d24-varloop-research converted to MLX for mlx-lm with the vision tower and without the multi-token-prediction head.
How to run
mlx-lm 0.32.2 does not know this architecture. Install the pull request that adds it (mlx-lm PR 2086), the commit this build was measured with:
pip install -U "git+https://github.com/ml-explore/mlx-lm.git@0c4c99192230f1943dd468d297f0b8a64ae7b7c2"
mlx_lm.generate --model Xylolabs/TML-d24-varloop-research-MLX --prompt 'Explain how a heat pump works.'
mlx_lm.chat --model Xylolabs/TML-d24-varloop-research-MLX
The model runs its looped layers (6 to 17) for the 3 passes set in config.json. Image input is part of the architecture and the vision tower is included.
Accuracy
Against the BF16 reference.
| Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 |
|---|---|---|---|---|---|---|---|
| MLX: experts NVFP4 and MXFP8, attention, embedding and LM head 8-bit | 18.09 GB | 0.003331 | 97.436% | 0.019627 | 96.696% | 0.002881 | 97.520% |
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| Mac Studio M5 Max | 36 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
200K |
| Mac Studio M5 Max | 48 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
469K |
| Mac Studio M5 Max | 64 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
826K |
| Mac Studio M5 Ultra | 96 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
1024K (model maximum) |
| Mac Studio M5 Max, 40-core GPU | 128 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
1024K (model maximum) |
| Mac Studio M5 Ultra | 256 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
1024K (model maximum) |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | Xylolabs/TML-d24-varloop-research-MLX (NVFP4/MXFP8 experts, 8-bit rest, 18.09 GB) |
1024K (model maximum) |
License and notices
These files are under the Apache License 2.0, copied in LICENSE; use is subject to Thinking Machines' Model Acceptable Use Policy. We converted the weights to MLX with mlx-lm (experts unchanged, other linear layers in affine 8-bit) and left out the multi-token-prediction head. The source revision and changes are in ORIGINS.md and NOTICE.
Updates
- 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
- 2026-11-28: Card text trimmed.
- 2026-11-22: First release. Needs mlx-lm pull request 2086 (commit
0c4c99192230f1943dd468d297f0b8a64ae7b7c2); mlx-lm 0.32.2 does not include the Inkling 2 model.
- Downloads last month
- 171
4-bit
Model tree for Xylolabs/TML-d24-varloop-research-MLX
Base model
thinkingmachines/TML-d24-varloop-research