Image-Text-to-Text
MLX
Safetensors
English
inkling2_loop
quantized
Mixture of Experts
conversational
4-bit precision
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"
Image input check result
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ mlx_lm.generate --model Xylolabs/TML-d24-varloop-research-MLX --prompt 'Explain
|
|
| 42 |
mlx_lm.chat --model Xylolabs/TML-d24-varloop-research-MLX
|
| 43 |
```
|
| 44 |
|
| 45 |
-
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
|
| 46 |
|
| 47 |
## Accuracy
|
| 48 |
|
|
@@ -82,6 +82,7 @@ These files are under the Apache License 2.0, copied in `LICENSE`; use is subjec
|
|
| 82 |
|
| 83 |
## Updates
|
| 84 |
|
|
|
|
| 85 |
- 2026-11-22: Added a hardware recommendation table.
|
| 86 |
- 2026-11-22: First release. Checked with mlx-lm pull request 2086 (commit `0c4c99192230f1943dd468d297f0b8a64ae7b7c2`); mlx-lm 0.32.2 does not include the Inkling 2 model.
|
| 87 |
|
|
|
|
| 42 |
mlx_lm.chat --model Xylolabs/TML-d24-varloop-research-MLX
|
| 43 |
```
|
| 44 |
|
| 45 |
+
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. A 400x400 test image (red circle, green square and the text "HELLO 42" on blue) with the prompt "Describe this image in one sentence." gives the same 126 prompt tokens and the same first 40 greedy tokens as Transformers on the original weights; the top-1 token agrees at all 40 steps.
|
| 46 |
|
| 47 |
## Accuracy
|
| 48 |
|
|
|
|
| 82 |
|
| 83 |
## Updates
|
| 84 |
|
| 85 |
+
- 2026-11-23: Image input checked against Transformers (see How to run).
|
| 86 |
- 2026-11-22: Added a hardware recommendation table.
|
| 87 |
- 2026-11-22: First release. Checked with mlx-lm pull request 2086 (commit `0c4c99192230f1943dd468d297f0b8a64ae7b7c2`); mlx-lm 0.32.2 does not include the Inkling 2 model.
|
| 88 |
|