Text Generation
Transformers
Safetensors
modilify_mk2
feature-extraction
diffusion
mixture-of-experts
custom-code
modilify-mk2
conversational
custom_code
Instructions to use modilify/Modilify-Mk2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modilify/Modilify-Mk2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="modilify/Modilify-Mk2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("modilify/Modilify-Mk2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use modilify/Modilify-Mk2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "modilify/Modilify-Mk2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "modilify/Modilify-Mk2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/modilify/Modilify-Mk2
- SGLang
How to use modilify/Modilify-Mk2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "modilify/Modilify-Mk2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "modilify/Modilify-Mk2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "modilify/Modilify-Mk2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "modilify/Modilify-Mk2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use modilify/Modilify-Mk2 with Docker Model Runner:
docker model run hf.co/modilify/Modilify-Mk2
Download LICENSE from modilify/Modilify-Mk2: direct link, hf CLI and curl.
- Browser
- Download file 8.24 kB
-
https://huggingface.co/modilify/Modilify-Mk2/resolve/main/LICENSE
- Command line
-
hf download hf://modilify/Modilify-Mk2/LICENSE
-
curl -L -o LICENSE https://huggingface.co/modilify/Modilify-Mk2/resolve/main/LICENSE
8.24 kB
| Modilify Non-Commercial Model License 1.0 | |
| Copyright 2026 Modilify | |
| 1. Definitions | |
| "Model" means the weights, configuration, inference code, tokenizer, processor, | |
| architecture definitions, and documentation distributed under or with this license. | |
| "Derivative Model" means any modified, fine-tuned, distilled, merged, quantized, | |
| extended, or otherwise adapted version of the Model. | |
| "Output" means any text, image, audio, video, 3D asset, latent state, synthetic | |
| data, or other content generated by executing, querying, or running the Model | |
| or a Derivative Model. | |
| "Non-Commercial Use" means any use, exercise of rights, or deployment conducted | |
| strictly for personal learning, educational purposes, academic research, | |
| non-profit scientific investigation, or non-commercial testing and evaluation, | |
| which does not directly or indirectly generate revenue, commercial advantage, | |
| or monetary compensation. | |
| "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 the terms and conditions of this license, Modilify grants You a | |
| worldwide, perpetual, non-exclusive, royalty-free, non-transferable, revocable | |
| (as provided herein) copyright license to use, reproduce, prepare derivative | |
| works of, publicly display, and distribute the Model and Derivative Models | |
| solely for Non-Commercial Use. | |
| 3. Commercial Restrictions, Outputs, and Distillation | |
| a. Prohibition on Commercial Use: You shall not use, deploy, host, serve, | |
| reproduce, sublicense, or distribute the Model or any Derivative Model for | |
| any commercial purpose, including but not limited to: | |
| i. operating the Model or Derivative Models as a paid or revenue-generating | |
| service (including API or cloud-hosted services); | |
| ii. incorporating the Model or Derivative Models into commercial products, | |
| enterprise workflows, or profit-seeking internal operations; or | |
| iii. selling, leasing, or monetizing the Model or Derivative Models in any | |
| manner. | |
| b. Output Restrictions: You shall not use any Output generated by the Model or | |
| Derivative Models for direct commercial monetization or commercial products. | |
| c. Distillation and Competitive Training Prohibition: You shall not use the Model, | |
| Derivative Models, or any Outputs generated by them (including synthetic data, | |
| distillation targets, or reasoning traces) to train, fine-tune, distill, | |
| align, improve, or evaluate any machine learning model that is intended for | |
| commercial use or that competes with the Model. | |
| d. Commercial Inquiries: Any commercial use of the Model or its derivatives | |
| requires a separate written commercial agreement from Modilify. Inquiries | |
| regarding commercial licensing may be submitted through the official project | |
| repository or Modilify's public channels. | |
| 4. 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, and otherwise transfer the Model solely for Non-Commercial Use, 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. | |
| 5. Conditions on Redistribution and Share-Alike | |
| If You distribute the Model or a Derivative Model, You must: | |
| a. provide recipients a copy of this license; | |
| b. retain all copyright, patent, trademark, and attribution notices; | |
| c. state clearly that You modified the Model and document material modifications; | |
| d. Share-Alike Requirement: license and distribute any Derivative Model solely | |
| under this exact Modilify Non-Commercial Model License 1.0, without imposing | |
| any additional restrictions or granting any broader rights than those provided | |
| herein; and | |
| e. publish with the distributed model a reasonably accessible impact statement | |
| (such as within a public model card or repository documentation) 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. | |
| 6. 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. | |
| 7. 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. | |
| 8. Third-Party Components | |
| If the Model incorporates or links to any third-party components or libraries, | |
| those components remain subject to their respective applicable licenses and | |
| terms. | |
| 9. 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. | |
| 10. 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. | |
| 11. 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. | |
| 12. Governing Law | |
| To the maximum extent permitted by applicable law, this license is governed by | |
| and construed in accordance with applicable laws, excluding conflict-of-law | |
| rules. | |
| 13. Entire License; Severability | |
| This document states the complete Modilify license for the Model. If any | |
| provision is held to be invalid or unenforceable, that provision will be limited | |
| or eliminated to the minimum extent necessary, and the remaining provisions | |
| of this license will remain in full force and effect. | |