Text Generation
MLX
Safetensors
modilify_mk2
diffusion
mixture-of-experts
custom-code
modilify-mk2
conversational
Run this model with HF Jobs
Run modilify/Modilify-Mk2-preview-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/modilify/Modilify-Mk2-preview-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/modilify/Modilify-Mk2-preview-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/modilify/Modilify-Mk2-preview-mlx. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/modilify/Modilify-Mk2-preview-mlx. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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:8080/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"
File size: 6,220 Bytes
e4f7326 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | 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.
|