Text Generation
MLX
Safetensors
modilify_mk2
diffusion
mixture-of-experts
custom-code
modilify-mk2
conversational
Instructions to use modilify/Modilify-Mk2-preview-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use modilify/Modilify-Mk2-preview-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("modilify/Modilify-Mk2-preview-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use modilify/Modilify-Mk2-preview-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 "modilify/Modilify-Mk2-preview-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": "modilify/Modilify-Mk2-preview-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use modilify/Modilify-Mk2-preview-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "modilify/Modilify-Mk2-preview-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "modilify/Modilify-Mk2-preview-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "modilify/Modilify-Mk2-preview-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use modilify/Modilify-Mk2-preview-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 "modilify/Modilify-Mk2-preview-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 modilify/Modilify-Mk2-preview-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use modilify/Modilify-Mk2-preview-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 "modilify/Modilify-Mk2-preview-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 "modilify/Modilify-Mk2-preview-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"
Download LICENSE from modilify/Modilify-Mk2-preview-mlx: direct link, hf CLI and curl.
- Browser
- Download file 6.22 kB
-
https://huggingface.co/modilify/Modilify-Mk2-preview-mlx/resolve/main/LICENSE
- Command line
-
hf download hf://modilify/Modilify-Mk2-preview-mlx/LICENSE
-
curl -L -o LICENSE https://huggingface.co/modilify/Modilify-Mk2-preview-mlx/resolve/main/LICENSE
6.22 kB
| Modilify Open Model License 1.0 | |
| Copyright 2026 Modilify | |
| 1. Definitions | |
| "Model" means the weights, configuration, inference code, tokenizer, processor, | |
| and documentation distributed with this license. "Derivative Model" means a | |
| modified, fine-tuned, distilled, merged, quantized, or otherwise adapted version | |
| of the Model. "You" means the individual or legal entity exercising permissions | |
| under this license. "High-Risk Use" means a use that can materially affect a | |
| person's safety, liberty, access to essential services, employment, housing, | |
| credit, education, legal rights, or medical care, or that controls critical | |
| infrastructure, weapons, or large-scale biometric surveillance. | |
| 2. Copyright Grant | |
| Subject to this license, Modilify grants You a worldwide, perpetual, | |
| non-exclusive, royalty-free, irrevocable copyright license to use, reproduce, | |
| prepare derivative works of, publicly display, publicly perform, sublicense, | |
| host as a service, and distribute the Model and Derivative Models, including for | |
| commercial purposes. | |
| 3. Patent Grant | |
| Each contributor grants You a worldwide, perpetual, non-exclusive, royalty-free, | |
| irrevocable patent license, except as stated in this section, to make, have made, | |
| use, offer to sell, sell, import, and otherwise transfer the Model where the | |
| license applies only to those patent claims licensable by that contributor that | |
| are necessarily infringed by that contributor's contribution alone or in | |
| combination with the Model. If You institute patent litigation alleging that the | |
| Model or a contribution constitutes patent infringement, patent licenses granted | |
| to You under this license terminate as of the filing date. | |
| 4. Conditions on Redistribution | |
| If You distribute the Model or a Derivative Model, You must: | |
| a. provide recipients a copy of this license; | |
| b. retain copyright, patent, attribution, and NOTICE statements; | |
| c. state clearly that You modified the Model and identify material modifications; | |
| d. preserve applicable third-party license and attribution notices; and | |
| e. publish with the distributed model a reasonably accessible impact statement | |
| describing intended uses, material limitations, evaluation scope, known | |
| safety risks, and risk mitigations for the Derivative Model. | |
| The impact statement may be maintained in a public model card or equivalent | |
| document. You are not required to submit it separately to Modilify. | |
| 5. Responsible Use and High-Risk Uses | |
| You must not use the Model or a Derivative Model: | |
| a. to develop, operate, or materially facilitate weapons, autonomous targeting, | |
| or systems intended to cause physical harm; | |
| b. for unlawful mass surveillance, biometric identification without lawful | |
| authority and appropriate safeguards, or social scoring that determines | |
| access to rights or essential services; | |
| c. to exploit children or vulnerable persons, facilitate human trafficking, or | |
| generate non-consensual intimate content; | |
| d. to impersonate a person or deceptively represent machine output as an | |
| authentic human communication where the deception is reasonably likely to | |
| cause material harm; or | |
| e. to make a final decision in a High-Risk Use without meaningful qualified | |
| human review, proportionate testing, monitoring, appeal or correction paths, | |
| and compliance with applicable law. | |
| Before deploying the Model in a High-Risk Use, You must perform safety and impact | |
| due diligence proportionate to foreseeable harm. At minimum, document the use | |
| context, evaluate relevant failure modes and affected groups, apply reasonable | |
| technical and organizational safeguards, monitor material incidents, and update | |
| or suspend the deployment when its residual risk is not reasonable. Research, | |
| testing, auditing, and defensive safety work are permitted when conducted with | |
| appropriate safeguards. | |
| 6. Trademarks | |
| This license does not grant permission to use the trade names, trademarks, | |
| service marks, or product names of Modilify or any contributor, except as needed | |
| for reasonable and customary attribution or to describe the origin of the Model. | |
| 7. Third-Party Components | |
| The Model includes or derives from third-party components identified in | |
| NOTICE.md. Those components remain subject to their applicable | |
| licenses and terms. In particular, rights and obligations associated with the | |
| Google DiffusionGemma base are not removed, narrowed, or replaced by this | |
| license. You are responsible for complying with all applicable upstream terms. | |
| 8. Termination and Reinstatement | |
| Your rights terminate automatically if You materially violate this license and | |
| do not cure the violation within 30 days after becoming aware of it. Rights are | |
| reinstated upon timely cure unless a rights holder provides written notice of a | |
| substantially similar repeated violation. Sections intended by their nature to | |
| survive termination remain effective. | |
| 9. Disclaimer of Warranty | |
| THE MODEL IS PROVIDED "AS IS," WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | |
| EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF TITLE, NON-INFRINGEMENT, | |
| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, OR SAFETY. YOU ARE | |
| SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING | |
| THE MODEL AND ASSUME ALL RISKS ASSOCIATED WITH YOUR EXERCISE OF PERMISSIONS. | |
| 10. Limitation of Liability | |
| TO THE MAXIMUM EXTENT PERMITTED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR SHALL | |
| BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
| CONSEQUENTIAL DAMAGES ARISING FROM THIS LICENSE OR THE USE OR INABILITY TO USE | |
| THE MODEL, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, EVEN IF ADVISED OF | |
| THE POSSIBILITY OF SUCH DAMAGES. | |
| 11. Governing Law and Venue | |
| This license is governed by the laws of the State of California, excluding its | |
| conflict-of-law rules. Any dispute arising from this license must be brought in | |
| the state or federal courts located in Santa Clara County, California, and each | |
| party consents to their personal jurisdiction and venue. | |
| 12. Entire License; Severability | |
| This document states the complete Modilify license for the Model, subject to | |
| applicable third-party terms. If a provision is unenforceable, it will be limited | |
| to the minimum extent necessary and the remaining provisions remain effective. | |