Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
rift1_decoder
text-to-image
image-editing
decoder
Instructions to use Rift-ai/Rift.1-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Rift-ai/Rift.1-decoder with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Rift-ai/Rift.1-decoder", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Diffusion Single File
How to use Rift-ai/Rift.1-decoder with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Create LICENSE.md
Browse files- LICENSE.md +138 -0
LICENSE.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rift Non-Commercial License v1.0
|
| 2 |
+
|
| 3 |
+
Surpem ("we", "our", or "Company") is pleased to make the weights, parameters, and inference code for the Rift Model (as defined below) available for non-commercial and non-production use as set forth in this Rift Non-Commercial License ("License").
|
| 4 |
+
|
| 5 |
+
"Rift Model" includes, individually and collectively, the models denoted as Rift.1-decoder and any other Rift models made available under this License, as indicated by a license notice included in or attached to the work, and their elements, including algorithms, software, checkpoints, parameters, source code, inference code, evaluation code, fine-tuning code where applicable, and any other materials associated with the Rift AI models made available by Company under this License, including technical documentation, manuals, and instructions for use and operation. Certain elements may be made available under separate licenses, and nothing in this License restricts or limits any other license granted by Company for such elements.
|
| 6 |
+
|
| 7 |
+
By downloading, accessing, using, Distributing, or creating a Derivative of the Rift Model, you agree to the terms of this License. If you do not agree to this License, you have no rights to access, use, Distribute, or create a Derivative of the Rift Model and must immediately cease using it. If you accept this License on behalf of an employer or other entity, you represent and warrant that you have authority to bind that employer or entity to this License.
|
| 8 |
+
|
| 9 |
+
## 1. Definitions
|
| 10 |
+
|
| 11 |
+
a. "Derivative" means any modified version of the Rift Model, including any customized, converted, adapted, merged, compressed, quantized, fine-tuned, or otherwise altered version, any work based on the Rift Model, or any other derivative work thereof. For avoidance of doubt, Outputs are not Derivatives under this License.
|
| 12 |
+
|
| 13 |
+
b. "Distribution", "Distribute", or "Distributing" means providing or making available, by any means, a copy of the Rift Model or Derivatives.
|
| 14 |
+
|
| 15 |
+
c. "Non-Commercial Purpose" means any of the following uses, but only so far as you do not receive any direct or indirect payment arising from the use of the Rift Model, Derivatives, or Content Filters:
|
| 16 |
+
|
| 17 |
+
* personal research, experimentation, testing, private study, private entertainment, hobby projects, or other uses not directly or indirectly connected to commercial activities, business operations, or employment responsibilities;
|
| 18 |
+
* use by commercial or for-profit entities solely for testing, evaluation, or non-commercial research and development in a non-production environment;
|
| 19 |
+
* use by charitable organizations for charitable purposes, testing, or evaluation.
|
| 20 |
+
|
| 21 |
+
For clarity, use for revenue-generating activity, production systems, direct interaction with or impact on end users, paid services, internal business operations, or training, fine-tuning, or distilling other models for commercial use is not a Non-Commercial Purpose.
|
| 22 |
+
|
| 23 |
+
d. "Outputs" means content generated by operation of the Rift Model or Derivatives from an input, latent, image input, prompt, text instruction, or other user-provided input. Outputs do not include components of the Rift Model, Derivatives, weights, checkpoints, or parameters.
|
| 24 |
+
|
| 25 |
+
e. "You" or "your" means the individual or entity entering into this License with Company.
|
| 26 |
+
|
| 27 |
+
## 2. License Grant
|
| 28 |
+
|
| 29 |
+
a. Subject to your compliance with this License, Company grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty-free, limited license to access, use, create Derivatives of, and Distribute the Rift Model and Derivatives solely for Non-Commercial Purposes.
|
| 30 |
+
|
| 31 |
+
b. This License is personal to you. You may not assign or sublicense this License or any rights or obligations under this License without Company's prior written consent. Any unauthorized assignment or sublicense is void and automatically terminates this License.
|
| 32 |
+
|
| 33 |
+
c. You may only access, use, Distribute, or create Derivatives of the Rift Model or Derivatives for Non-Commercial Purposes. If you want to use the Rift Model or a Derivative for any commercial, production, revenue-generating, or other purpose not expressly authorized by this License, you must request a separate license from Company, which Company may grant or deny in its sole discretion and which may be subject to fees, royalties, revenue share, or additional terms.
|
| 34 |
+
|
| 35 |
+
d. The rights expressly granted in this License are the complete grant of rights to use the Rift Model. No other rights or licenses are granted by waiver, estoppel, implication, equity, or otherwise. Company and its licensors reserve all rights not expressly granted.
|
| 36 |
+
|
| 37 |
+
e. Company claims no ownership rights in Outputs. You are solely responsible for Outputs you generate and their subsequent use. You may use Outputs for any purpose, including commercial purposes, except as prohibited by this License or applicable law. You may not use Outputs to train, fine-tune, distill, evaluate, or improve a model that is competitive with the Rift Model.
|
| 38 |
+
|
| 39 |
+
f. You may access, use, Distribute, or create Outputs of the Rift Model or Derivatives only if you:
|
| 40 |
+
|
| 41 |
+
* implement and maintain reasonable content filtering measures ("Content Filters") to prevent the creation, display, transmission, generation, or dissemination of unlawful or infringing content, or ensure Outputs undergo review for unlawful or infringing content before public or non-public distribution, display, transmission, or dissemination;
|
| 42 |
+
* ensure Outputs include disclosure or other indication that the Output was generated or modified using artificial intelligence technologies to the extent required by applicable law.
|
| 43 |
+
|
| 44 |
+
## 3. Distribution
|
| 45 |
+
|
| 46 |
+
Subject to this License, you may Distribute copies of the Rift Model or Derivatives made by you only under the following conditions:
|
| 47 |
+
|
| 48 |
+
a. You must make a copy of this License available to all third-party recipients of the Rift Model or Derivatives you Distribute and specify that any rights to use the Rift Model or Derivatives are granted directly by Company to those recipients under this License.
|
| 49 |
+
|
| 50 |
+
b. You must prominently display the following notice alongside any Distribution of the Rift Model or Derivative, including in a "NOTICE" or similar text file:
|
| 51 |
+
|
| 52 |
+
> This Rift Model is licensed by Surpem under the Rift Non-Commercial License. Copyright Surpem. IN NO EVENT SHALL SURPEM BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH USE OF THIS MODEL.
|
| 53 |
+
|
| 54 |
+
c. If you Distribute Derivatives:
|
| 55 |
+
|
| 56 |
+
* you must include in the attribution notice a statement that you modified the applicable Rift Model;
|
| 57 |
+
* any terms you impose on third-party recipients must not limit their use of the Rift Model or any Company-created Derivatives in accordance with this License, must not conflict with this License, and must include warranty disclaimers and liability limitations at least as protective of Company as those set forth herein;
|
| 58 |
+
* you must not misrepresent or imply that any Derivative made by or for you, or any modified version of the Rift Model distributed under your name, is an official product of Company or has been endorsed, approved, validated, or sponsored by Company unless Company authorizes you in writing.
|
| 59 |
+
|
| 60 |
+
## 4. Restrictions
|
| 61 |
+
|
| 62 |
+
You will not, and will not permit, assist, or cause any third party to:
|
| 63 |
+
|
| 64 |
+
a. use, modify, copy, reproduce, create Derivatives of, or Distribute the Rift Model, any Derivative, or any data produced by the Rift Model, in whole or in part:
|
| 65 |
+
|
| 66 |
+
* for commercial or production purposes;
|
| 67 |
+
* for military purposes;
|
| 68 |
+
* for surveillance or research or development relating to surveillance;
|
| 69 |
+
* for biometric identification, biometric categorization, biometric processing, face recognition, or identity verification;
|
| 70 |
+
* in any manner that infringes, misappropriates, or otherwise violates, or is likely to infringe, misappropriate, or otherwise violate, any third party's legal rights, including privacy, publicity, intellectual property, or digital replica rights;
|
| 71 |
+
* in unlawful, fraudulent, defamatory, abusive, harassing, deceptive, or harmful activity;
|
| 72 |
+
* to generate unlawful content, child sexual abuse material, sexual exploitation material, non-consensual intimate imagery, or content that facilitates violence, self-harm, or serious real-world harm;
|
| 73 |
+
* in any manner that violates applicable law, privacy law, security law, export control law, sanctions law, regulation, directive, or governmental requirement, including the General Data Protection Regulation (Regulation (EU) 2016/679), the California Consumer Privacy Act, laws governing biometric information, and the EU Artificial Intelligence Act (Regulation (EU) 2024/1689), including amendments and successor laws.
|
| 74 |
+
|
| 75 |
+
b. alter, obscure, or remove copyright, license, attribution, or other proprietary notices appearing on or in any portion of the Rift Model.
|
| 76 |
+
|
| 77 |
+
c. use any equipment, device, software, or other means to circumvent or remove security, safety, protection, monitoring, or usage restrictions used by Company in connection with the Rift Model.
|
| 78 |
+
|
| 79 |
+
d. offer or impose terms on the Rift Model that alter, restrict, or are inconsistent with this License.
|
| 80 |
+
|
| 81 |
+
e. violate any applicable U.S. or non-U.S. export control, trade sanctions, or similar laws ("Export Laws") in connection with use or Distribution of the Rift Model.
|
| 82 |
+
|
| 83 |
+
f. directly or indirectly Distribute, export, re-export, transfer, or make available the Rift Model:
|
| 84 |
+
|
| 85 |
+
* to any individual, entity, or country prohibited by Export Laws;
|
| 86 |
+
* to anyone on U.S. or non-U.S. government restricted-party lists;
|
| 87 |
+
* for any purpose prohibited by Export Laws, including nuclear, chemical, biological weapons, missile technology, or other prohibited military applications;
|
| 88 |
+
* if you are located in, ordinarily resident in, or organized under the laws of a comprehensively sanctioned jurisdiction, or are listed on any restricted-party list;
|
| 89 |
+
* while disguising your location through proxies, VPNs, or other methods for the purpose of evading Export Laws or access restrictions.
|
| 90 |
+
|
| 91 |
+
## 5. Disclaimers
|
| 92 |
+
|
| 93 |
+
THE RIFT MODEL AND ANY PROVIDED CONTENT FILTERS ARE PROVIDED "AS IS" AND "WITH ALL FAULTS" WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. COMPANY EXPRESSLY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, WHETHER BY STATUTE, CUSTOM, USAGE, OR OTHERWISE, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, SATISFACTORY QUALITY, NON-INFRINGEMENT, ACCURACY, RELIABILITY, AVAILABILITY, SECURITY, OR ERROR-FREE OPERATION.
|
| 94 |
+
|
| 95 |
+
COMPANY MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE RIFT MODEL OR CONTENT FILTERS WILL BE ERROR FREE, SECURE, UNINTERRUPTED, FREE OF VIRUSES OR HARMFUL COMPONENTS, OR PRODUCE ANY PARTICULAR RESULT. YOU ARE SOLELY RESPONSIBLE FOR EVALUATING THE RIFT MODEL AND OUTPUTS FOR YOUR USE CASE.
|
| 96 |
+
|
| 97 |
+
## 6. Limitation of Liability
|
| 98 |
+
|
| 99 |
+
TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL COMPANY BE LIABLE TO YOU OR YOUR EMPLOYEES, AFFILIATES, USERS, OFFICERS, DIRECTORS, CONTRACTORS, OR AGENTS UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE, OR FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, PUNITIVE, SPECIAL DAMAGES, LOST PROFITS, LOST REVENUE, LOST DATA, BUSINESS INTERRUPTION, OR COST OF SUBSTITUTE GOODS OR SERVICES, EVEN IF COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
| 100 |
+
|
| 101 |
+
THE RIFT MODEL, ITS COMPONENTS, CONTENT FILTERS, AND OUTPUTS (COLLECTIVELY, "MODEL MATERIALS") ARE NOT DESIGNED OR INTENDED FOR USE WHERE FAILURE OR FAULT COULD REASONABLY BE ANTICIPATED TO LEAD TO SERIOUS INJURY, DEATH, VIOLATION OF PRIVACY RIGHTS, UNLAWFUL DISCRIMINATION, OR SEVERE PHYSICAL, PROPERTY, ENVIRONMENTAL, FINANCIAL, LEGAL, OR SOCIAL HARM (EACH, A "HIGH-RISK USE"). IF YOU USE MODEL MATERIALS FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK AND AGREE TO DESIGN, IMPLEMENT, AND MAINTAIN APPROPRIATE HUMAN OVERSIGHT, DECISION-MAKING, SAFETY, SECURITY, AND RISK-MITIGATION PROCEDURES.
|
| 102 |
+
|
| 103 |
+
## 7. Indemnification
|
| 104 |
+
|
| 105 |
+
You will indemnify, defend, and hold harmless Company and its subsidiaries, affiliates, shareholders, directors, officers, employees, agents, successors, and assigns (collectively, the "Company Parties") from and against any losses, liabilities, damages, fines, penalties, costs, and expenses, including reasonable attorneys' fees, incurred by any Company Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation arising out of or related to:
|
| 106 |
+
|
| 107 |
+
* your access to or use of the Rift Model, Derivatives, Content Filters, or Outputs;
|
| 108 |
+
* any High-Risk Use;
|
| 109 |
+
* your Content Filters or your failure to implement Content Filters or review procedures where required;
|
| 110 |
+
* your violation of this License;
|
| 111 |
+
* your violation, misappropriation, or infringement of any rights of another, including intellectual property, privacy, publicity, or proprietary rights;
|
| 112 |
+
* your violation of applicable law.
|
| 113 |
+
|
| 114 |
+
You will promptly notify Company Parties of any such claim and cooperate in defending it. Company Parties may assume sole control of the defense or settlement of any claim at Company's option. This indemnity is in addition to any other remedies available under law or agreement.
|
| 115 |
+
|
| 116 |
+
## 8. Termination and Survival
|
| 117 |
+
|
| 118 |
+
a. This License automatically terminates upon any breach by you of its terms.
|
| 119 |
+
|
| 120 |
+
b. Company may terminate this License, in whole or in part, at any time upon notice, including electronic notice.
|
| 121 |
+
|
| 122 |
+
c. If you initiate any legal action or proceeding against Company or any other entity alleging that the Rift Model, any Derivative, Content Filter, or any part thereof infringes intellectual property or other rights owned or licensable by you, then all licenses granted to you under this License immediately terminate as of the date such action or claim is filed or initiated.
|
| 123 |
+
|
| 124 |
+
d. Upon termination, you must cease all use, access, and Distribution of the Rift Model, Derivatives, and Content Filters.
|
| 125 |
+
|
| 126 |
+
e. Sections 2(d), 2(e), 4, 5, 6, 7, 8, 9, 10, and 11 survive termination.
|
| 127 |
+
|
| 128 |
+
## 9. Third-Party Materials
|
| 129 |
+
|
| 130 |
+
The Rift Model and Content Filters may contain or depend on third-party software or other components, including free and open source software ("Third-Party Materials"). Third-Party Materials are subject to the license terms of their respective licensors. Your dealings with third parties and use of Third-Party Materials are solely between you and those third parties. Company does not control or endorse Third-Party Materials and makes no representations or warranties regarding them.
|
| 131 |
+
|
| 132 |
+
## 10. Trademarks
|
| 133 |
+
|
| 134 |
+
No trademark license is granted under this License. You may not use any name, logo, trademark, service mark, trade dress, or branding associated with Company, Surpem, or Rift without Company's prior written permission, except as necessary to provide the attribution notice required by this License or to accurately describe the Rift Model and its creators.
|
| 135 |
+
|
| 136 |
+
## 11. General
|
| 137 |
+
|
| 138 |
+
This License is governed by the laws of the State of Delaware, without regard to conflict-of-law principles. If any provision or part of a provision is unlawful, void, or unenforceable, that provision or part is deemed severed and does not affect the validity and enforceability of the remaining provisions. Failure by Company to exercise or enforce any right or provision is not a waiver of that right or provision. This License does not confer third-party beneficiary rights on any person or entity. This License, together with accompanying documentation and notices, contains the entire understanding between you and Company regarding its subject matter and supersedes all prior or contemporaneous written or oral agreements and understandings regarding that subject matter.
|