Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .modeling_hunyuan.py.swp +0 -0
- LICENSE +77 -0
- Notice +233 -0
- README.md +137 -0
- __init__.py +0 -0
- config.json +47 -0
- configuration_hunyuan.py +192 -0
- generation_config.json +10 -0
- hy.tiktoken +0 -0
- model-00001-of-00080.safetensors +3 -0
- model-00002-of-00080.safetensors +3 -0
- model-00003-of-00080.safetensors +3 -0
- model-00004-of-00080.safetensors +3 -0
- model-00005-of-00080.safetensors +3 -0
- model-00006-of-00080.safetensors +3 -0
- model-00007-of-00080.safetensors +3 -0
- model-00008-of-00080.safetensors +3 -0
- model-00009-of-00080.safetensors +3 -0
- model-00010-of-00080.safetensors +3 -0
- model-00011-of-00080.safetensors +3 -0
- model-00012-of-00080.safetensors +3 -0
- model-00013-of-00080.safetensors +3 -0
- model-00014-of-00080.safetensors +3 -0
- model-00015-of-00080.safetensors +3 -0
- model-00016-of-00080.safetensors +3 -0
- model-00017-of-00080.safetensors +3 -0
- model-00018-of-00080.safetensors +3 -0
- model-00019-of-00080.safetensors +3 -0
- model-00020-of-00080.safetensors +3 -0
- model-00021-of-00080.safetensors +3 -0
- model-00022-of-00080.safetensors +3 -0
- model-00023-of-00080.safetensors +3 -0
- model-00024-of-00080.safetensors +3 -0
- model-00025-of-00080.safetensors +3 -0
- model-00026-of-00080.safetensors +3 -0
- model-00027-of-00080.safetensors +3 -0
- model-00028-of-00080.safetensors +3 -0
- model-00029-of-00080.safetensors +3 -0
- model-00030-of-00080.safetensors +3 -0
- model-00031-of-00080.safetensors +3 -0
- model-00032-of-00080.safetensors +3 -0
- model-00033-of-00080.safetensors +3 -0
- model-00034-of-00080.safetensors +3 -0
- model-00035-of-00080.safetensors +3 -0
- model-00036-of-00080.safetensors +3 -0
- model-00037-of-00080.safetensors +3 -0
- model-00038-of-00080.safetensors +3 -0
- model-00039-of-00080.safetensors +3 -0
- model-00040-of-00080.safetensors +3 -0
- model-00041-of-00080.safetensors +3 -0
.modeling_hunyuan.py.swp
ADDED
Binary file (98.3 kB). View file
|
|
LICENSE
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT
|
2 |
+
Tencent HunyuanVideo Release Date: December 3, 2024
|
3 |
+
THIS LICENSE AGREEMENT DOES NOT APPLY IN THE EUROPEAN UNION, UNITED KINGDOM AND SOUTH KOREA AND IS EXPRESSLY LIMITED TO THE TERRITORY, AS DEFINED BELOW.
|
4 |
+
By clicking to agree or by using, reproducing, modifying, distributing, performing or displaying any portion or element of the Tencent Hunyuan Works, including via any Hosted Service, You will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
|
5 |
+
1. DEFINITIONS.
|
6 |
+
a. “Acceptable Use Policy” shall mean the policy made available by Tencent as set forth in the Exhibit A.
|
7 |
+
b. “Agreement” shall mean the terms and conditions for use, reproduction, distribution, modification, performance and displaying of Tencent Hunyuan Works or any portion or element thereof set forth herein.
|
8 |
+
c. “Documentation” shall mean the specifications, manuals and documentation for Tencent Hunyuan made publicly available by Tencent.
|
9 |
+
d. “Hosted Service” shall mean a hosted service offered via an application programming interface (API), web access, or any other electronic or remote means.
|
10 |
+
e. “Licensee,” “You” or “Your” shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Tencent Hunyuan Works for any purpose and in any field of use.
|
11 |
+
f. “Materials” shall mean, collectively, Tencent’s proprietary Tencent Hunyuan and Documentation (and any portion thereof) as made available by Tencent under this Agreement.
|
12 |
+
g. “Model Derivatives” shall mean all: (i) modifications to Tencent Hunyuan or any Model Derivative of Tencent Hunyuan; (ii) works based on Tencent Hunyuan or any Model Derivative of Tencent Hunyuan; or (iii) any other machine learning model which is created by transfer of patterns of the weights, parameters, operations, or Output of Tencent Hunyuan or any Model Derivative of Tencent Hunyuan, to that model in order to cause that model to perform similarly to Tencent Hunyuan or a Model Derivative of Tencent Hunyuan, including distillation methods, methods that use intermediate data representations, or methods based on the generation of synthetic data Outputs by Tencent Hunyuan or a Model Derivative of Tencent Hunyuan for training that model. For clarity, Outputs by themselves are not deemed Model Derivatives.
|
13 |
+
h. “Output” shall mean the information and/or content output of Tencent Hunyuan or a Model Derivative that results from operating or otherwise using Tencent Hunyuan or a Model Derivative, including via a Hosted Service.
|
14 |
+
i. “Tencent,” “We” or “Us” shall mean THL A29 Limited.
|
15 |
+
j. “Tencent Hunyuan” shall mean the large language models, text/image/video/audio/3D generation models, and multimodal large language models and their software and algorithms, including trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing made publicly available by Us, including, without limitation to, Tencent HunyuanVideo released at [https://github.com/Tencent/HunyuanVideo].
|
16 |
+
k. “Tencent Hunyuan Works” shall mean: (i) the Materials; (ii) Model Derivatives; and (iii) all derivative works thereof.
|
17 |
+
l. “Territory” shall mean the worldwide territory, excluding the territory of the European Union, United Kingdom and South Korea.
|
18 |
+
m. “Third Party” or “Third Parties” shall mean individuals or legal entities that are not under common control with Us or You.
|
19 |
+
n. “including” shall mean including but not limited to.
|
20 |
+
2. GRANT OF RIGHTS.
|
21 |
+
We grant You, for the Territory only, a non-exclusive, non-transferable and royalty-free limited license under Tencent’s intellectual property or other rights owned by Us embodied in or utilized by the Materials to use, reproduce, distribute, create derivative works of (including Model Derivatives), and make modifications to the Materials, only in accordance with the terms of this Agreement and the Acceptable Use Policy, and You must not violate (or encourage or permit anyone else to violate) any term of this Agreement or the Acceptable Use Policy.
|
22 |
+
3. DISTRIBUTION.
|
23 |
+
You may, subject to Your compliance with this Agreement, distribute or make available to Third Parties the Tencent Hunyuan Works, exclusively in the Territory, provided that You meet all of the following conditions:
|
24 |
+
a. You must provide all such Third Party recipients of the Tencent Hunyuan Works or products or services using them a copy of this Agreement;
|
25 |
+
b. You must cause any modified files to carry prominent notices stating that You changed the files;
|
26 |
+
c. You are encouraged to: (i) publish at least one technology introduction blogpost or one public statement expressing Your experience of using the Tencent Hunyuan Works; and (ii) mark the products or services developed by using the Tencent Hunyuan Works to indicate that the product/service is “Powered by Tencent Hunyuan”; and
|
27 |
+
d. All distributions to Third Parties (other than through a Hosted Service) must be accompanied by a “Notice” text file that contains the following notice: “Tencent Hunyuan is licensed under the Tencent Hunyuan Community License Agreement, Copyright © 2024 Tencent. All Rights Reserved. The trademark rights of “Tencent Hunyuan” are owned by Tencent or its affiliate.”
|
28 |
+
You may add Your own copyright statement to Your modifications and, except as set forth in this Section and in Section 5, may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Model Derivatives as a whole, provided Your use, reproduction, modification, distribution, performance and display of the work otherwise complies with the terms and conditions of this Agreement (including as regards the Territory). If You receive Tencent Hunyuan Works from a Licensee as part of an integrated end user product, then this Section 3 of this Agreement will not apply to You.
|
29 |
+
4. ADDITIONAL COMMERCIAL TERMS.
|
30 |
+
If, on the Tencent Hunyuan version release date, the monthly active users of all products or services made available by or for Licensee is greater than 100 million monthly active users in the preceding calendar month, You must request a license from Tencent, which Tencent may grant to You in its sole discretion, and You are not authorized to exercise any of the rights under this Agreement unless or until Tencent otherwise expressly grants You such rights.
|
31 |
+
5. RULES OF USE.
|
32 |
+
a. Your use of the Tencent Hunyuan Works must comply with applicable laws and regulations (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Tencent Hunyuan Works, which is hereby incorporated by reference into this Agreement. You must include the use restrictions referenced in these Sections 5(a) and 5(b) as an enforceable provision in any agreement (e.g., license agreement, terms of use, etc.) governing the use and/or distribution of Tencent Hunyuan Works and You must provide notice to subsequent users to whom You distribute that Tencent Hunyuan Works are subject to the use restrictions in these Sections 5(a) and 5(b).
|
33 |
+
b. You must not use the Tencent Hunyuan Works or any Output or results of the Tencent Hunyuan Works to improve any other AI model (other than Tencent Hunyuan or Model Derivatives thereof).
|
34 |
+
c. You must not use, reproduce, modify, distribute, or display the Tencent Hunyuan Works, Output or results of the Tencent Hunyuan Works outside the Territory. Any such use outside the Territory is unlicensed and unauthorized under this Agreement.
|
35 |
+
6. INTELLECTUAL PROPERTY.
|
36 |
+
a. Subject to Tencent’s ownership of Tencent Hunyuan Works made by or for Tencent and intellectual property rights therein, conditioned upon Your compliance with the terms and conditions of this Agreement, as between You and Tencent, You will be the owner of any derivative works and modifications of the Materials and any Model Derivatives that are made by or for You.
|
37 |
+
b. No trademark licenses are granted under this Agreement, and in connection with the Tencent Hunyuan Works, Licensee may not use any name or mark owned by or associated with Tencent or any of its affiliates, except as required for reasonable and customary use in describing and distributing the Tencent Hunyuan Works. Tencent hereby grants You a license to use “Tencent Hunyuan” (the “Mark”) in the Territory solely as required to comply with the provisions of Section 3(c), provided that You comply with any applicable laws related to trademark protection. All goodwill arising out of Your use of the Mark will inure to the benefit of Tencent.
|
38 |
+
c. If You commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against Us or any person or entity alleging that the Materials or any Output, or any portion of any of the foregoing, infringe any intellectual property or other right owned or licensable by You, then all licenses granted to You under this Agreement shall terminate as of the date such lawsuit or other proceeding is filed. You will defend, indemnify and hold harmless Us from and against any claim by any Third Party arising out of or related to Your or the Third Party’s use or distribution of the Tencent Hunyuan Works.
|
39 |
+
d. Tencent claims no rights in Outputs You generate. You and Your users are solely responsible for Outputs and their subsequent uses.
|
40 |
+
7. DISCLAIMERS OF WARRANTY AND LIMITATIONS OF LIABILITY.
|
41 |
+
a. We are not obligated to support, update, provide training for, or develop any further version of the Tencent Hunyuan Works or to grant any license thereto.
|
42 |
+
b. UNLESS AND ONLY TO THE EXTENT REQUIRED BY APPLICABLE LAW, THE TENCENT HUNYUAN WORKS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED “AS IS” WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES OF ANY KIND INCLUDING ANY WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, COURSE OF DEALING, USAGE OF TRADE, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING, DISPLAYING OR DISTRIBUTING ANY OF THE TENCENT HUNYUAN WORKS OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR OR A THIRD PARTY’S USE OR DISTRIBUTION OF ANY OF THE TENCENT HUNYUAN WORKS OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND PERMISSIONS UNDER THIS AGREEMENT.
|
43 |
+
c. TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL TENCENT OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, FOR ANY DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL OR PUNITIVE DAMAGES, OR LOST PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO ANY OF THE TENCENT HUNYUAN WORKS OR OUTPUTS, EVEN IF TENCENT OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
|
44 |
+
8. SURVIVAL AND TERMINATION.
|
45 |
+
a. The term of this Agreement shall commence upon Your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
|
46 |
+
b. We may terminate this Agreement if You breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, You must promptly delete and cease use of the Tencent Hunyuan Works. Sections 6(a), 6(c), 7 and 9 shall survive the termination of this Agreement.
|
47 |
+
9. GOVERNING LAW AND JURISDICTION.
|
48 |
+
a. This Agreement and any dispute arising out of or relating to it will be governed by the laws of the Hong Kong Special Administrative Region of the People’s Republic of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
|
49 |
+
b. Exclusive jurisdiction and venue for any dispute arising out of or relating to this Agreement will be a court of competent jurisdiction in the Hong Kong Special Administrative Region of the People’s Republic of China, and Tencent and Licensee consent to the exclusive jurisdiction of such court with respect to any such dispute.
|
50 |
+
|
51 |
+
EXHIBIT A
|
52 |
+
ACCEPTABLE USE POLICY
|
53 |
+
|
54 |
+
Tencent reserves the right to update this Acceptable Use Policy from time to time.
|
55 |
+
Last modified: November 5, 2024
|
56 |
+
|
57 |
+
Tencent endeavors to promote safe and fair use of its tools and features, including Tencent Hunyuan. You agree not to use Tencent Hunyuan or Model Derivatives:
|
58 |
+
1. Outside the Territory;
|
59 |
+
2. In any way that violates any applicable national, federal, state, local, international or any other law or regulation;
|
60 |
+
3. To harm Yourself or others;
|
61 |
+
4. To repurpose or distribute output from Tencent Hunyuan or any Model Derivatives to harm Yourself or others;
|
62 |
+
5. To override or circumvent the safety guardrails and safeguards We have put in place;
|
63 |
+
6. For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
|
64 |
+
7. To generate or disseminate verifiably false information and/or content with the purpose of harming others or influencing elections;
|
65 |
+
8. To generate or facilitate false online engagement, including fake reviews and other means of fake online engagement;
|
66 |
+
9. To intentionally defame, disparage or otherwise harass others;
|
67 |
+
10. To generate and/or disseminate malware (including ransomware) or any other content to be used for the purpose of harming electronic systems;
|
68 |
+
11. To generate or disseminate personal identifiable information with the purpose of harming others;
|
69 |
+
12. To generate or disseminate information (including images, code, posts, articles), and place the information in any public context (including –through the use of bot generated tweets), without expressly and conspicuously identifying that the information and/or content is machine generated;
|
70 |
+
13. To impersonate another individual without consent, authorization, or legal right;
|
71 |
+
14. To make high-stakes automated decisions in domains that affect an individual’s safety, rights or wellbeing (e.g., law enforcement, migration, medicine/health, management of critical infrastructure, safety components of products, essential services, credit, employment, housing, education, social scoring, or insurance);
|
72 |
+
15. In a manner that violates or disrespects the social ethics and moral standards of other countries or regions;
|
73 |
+
16. To perform, facilitate, threaten, incite, plan, promote or encourage violent extremism or terrorism;
|
74 |
+
17. For any use intended to discriminate against or harm individuals or groups based on protected characteristics or categories, online or offline social behavior or known or predicted personal or personality characteristics;
|
75 |
+
18. To intentionally exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
|
76 |
+
19. For military purposes;
|
77 |
+
20. To engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or other professional practices.
|
Notice
ADDED
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Usage and Legal Notices:
|
2 |
+
|
3 |
+
Tencent is pleased to support the open source community by making Tencent HunyuanVideo available.
|
4 |
+
|
5 |
+
Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved. The below software and/or models in this distribution may have been modified by THL A29 Limited ("Tencent Modifications"). All Tencent Modifications are Copyright (C) THL A29 Limited.
|
6 |
+
|
7 |
+
Tencent HunyuanVideo is licensed under the TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT except for the third-party components listed below. Tencent HunyuanVideo does not impose any additional limitations beyond what is outlined in the repsective licenses of these third-party components. Users must comply with all terms and conditions of original licenses of these third-party components and must ensure that the usage of the third party components adheres to all relevant laws and regulations.
|
8 |
+
|
9 |
+
For avoidance of doubts, Tencent HunyuanVideo means the large language models and their software and algorithms, including trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing may be made publicly available by Tencent in accordance with TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT.
|
10 |
+
|
11 |
+
|
12 |
+
Other dependencies and licenses:
|
13 |
+
|
14 |
+
|
15 |
+
Open Source Model Licensed under the Apache License Version 2.0:
|
16 |
+
The below software in this distribution may have been modified by THL A29 Limited ("Tencent Modifications"). All Tencent Modifications are Copyright (C) 2024 THL A29 Limited.
|
17 |
+
--------------------------------------------------------------------
|
18 |
+
1. diffusers
|
19 |
+
Copyright (c) diffusers original author and authors
|
20 |
+
Please note this software has been modified by Tencent in this distribution.
|
21 |
+
|
22 |
+
2. transformers
|
23 |
+
Copyright (c) transformers original author and authors
|
24 |
+
|
25 |
+
3. safetensors
|
26 |
+
Copyright (c) safetensors original author and authors
|
27 |
+
|
28 |
+
4. flux
|
29 |
+
Copyright (c) flux original author and authors
|
30 |
+
|
31 |
+
|
32 |
+
Terms of the Apache License Version 2.0:
|
33 |
+
--------------------------------------------------------------------
|
34 |
+
Apache License
|
35 |
+
|
36 |
+
Version 2.0, January 2004
|
37 |
+
|
38 |
+
http://www.apache.org/licenses/
|
39 |
+
|
40 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
41 |
+
1. Definitions.
|
42 |
+
|
43 |
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
44 |
+
|
45 |
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
46 |
+
|
47 |
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
48 |
+
|
49 |
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
50 |
+
|
51 |
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
52 |
+
|
53 |
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
54 |
+
|
55 |
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
56 |
+
|
57 |
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
58 |
+
|
59 |
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
60 |
+
|
61 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
62 |
+
|
63 |
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
64 |
+
|
65 |
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
66 |
+
|
67 |
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
68 |
+
|
69 |
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
70 |
+
|
71 |
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
72 |
+
|
73 |
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
74 |
+
|
75 |
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
76 |
+
|
77 |
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
78 |
+
|
79 |
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
80 |
+
|
81 |
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
82 |
+
|
83 |
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
84 |
+
|
85 |
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
86 |
+
|
87 |
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
88 |
+
|
89 |
+
END OF TERMS AND CONDITIONS
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
Open Source Software Licensed under the BSD 2-Clause License:
|
94 |
+
--------------------------------------------------------------------
|
95 |
+
1. imageio
|
96 |
+
Copyright (c) 2014-2022, imageio developers
|
97 |
+
All rights reserved.
|
98 |
+
|
99 |
+
|
100 |
+
Terms of the BSD 2-Clause License:
|
101 |
+
--------------------------------------------------------------------
|
102 |
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
103 |
+
|
104 |
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
105 |
+
|
106 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
107 |
+
|
108 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
Open Source Software Licensed under the BSD 3-Clause License:
|
113 |
+
--------------------------------------------------------------------
|
114 |
+
1. torchvision
|
115 |
+
Copyright (c) Soumith Chintala 2016,
|
116 |
+
All rights reserved.
|
117 |
+
|
118 |
+
2. flash-attn
|
119 |
+
Copyright (c) 2022, the respective contributors, as shown by the AUTHORS file.
|
120 |
+
All rights reserved.
|
121 |
+
|
122 |
+
|
123 |
+
Terms of the BSD 3-Clause License:
|
124 |
+
--------------------------------------------------------------------
|
125 |
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
126 |
+
|
127 |
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
128 |
+
|
129 |
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
130 |
+
|
131 |
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
132 |
+
|
133 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
Open Source Software Licensed under the BSD 3-Clause License and Other Licenses of the Third-Party Components therein:
|
138 |
+
--------------------------------------------------------------------
|
139 |
+
1. torch
|
140 |
+
Copyright (c) 2016- Facebook, Inc (Adam Paszke)
|
141 |
+
Copyright (c) 2014- Facebook, Inc (Soumith Chintala)
|
142 |
+
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
|
143 |
+
Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
|
144 |
+
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
|
145 |
+
Copyright (c) 2011-2013 NYU (Clement Farabet)
|
146 |
+
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
|
147 |
+
Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
|
148 |
+
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
|
149 |
+
|
150 |
+
|
151 |
+
A copy of the BSD 3-Clause is included in this file.
|
152 |
+
|
153 |
+
For the license of other third party components, please refer to the following URL:
|
154 |
+
https://github.com/pytorch/pytorch/tree/v2.1.1/third_party
|
155 |
+
|
156 |
+
|
157 |
+
Open Source Software Licensed under the BSD 3-Clause License and Other Licenses of the Third-Party Components therein:
|
158 |
+
--------------------------------------------------------------------
|
159 |
+
1. pandas
|
160 |
+
Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
|
161 |
+
All rights reserved.
|
162 |
+
|
163 |
+
Copyright (c) 2011-2023, Open source contributors.
|
164 |
+
|
165 |
+
|
166 |
+
A copy of the BSD 3-Clause is included in this file.
|
167 |
+
|
168 |
+
For the license of other third party components, please refer to the following URL:
|
169 |
+
https://github.com/pandas-dev/pandas/tree/v2.0.3/LICENSES
|
170 |
+
|
171 |
+
|
172 |
+
Open Source Software Licensed under the BSD 3-Clause License and Other Licenses of the Third-Party Components therein:
|
173 |
+
--------------------------------------------------------------------
|
174 |
+
1. numpy
|
175 |
+
Copyright (c) 2005-2022, NumPy Developers.
|
176 |
+
All rights reserved.
|
177 |
+
|
178 |
+
|
179 |
+
A copy of the BSD 3-Clause is included in this file.
|
180 |
+
|
181 |
+
For the license of other third party components, please refer to the following URL:
|
182 |
+
https://github.com/numpy/numpy/blob/v1.24.4/LICENSES_bundled.txt
|
183 |
+
|
184 |
+
|
185 |
+
Open Source Software Licensed under the MIT License:
|
186 |
+
--------------------------------------------------------------------
|
187 |
+
1. einops
|
188 |
+
Copyright (c) 2018 Alex Rogozhnikov
|
189 |
+
|
190 |
+
2. loguru
|
191 |
+
Copyright (c) 2017
|
192 |
+
|
193 |
+
|
194 |
+
Terms of the MIT License:
|
195 |
+
--------------------------------------------------------------------
|
196 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
197 |
+
|
198 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
199 |
+
|
200 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 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 THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
Open Source Software Licensed under the MIT License and Other Licenses of the Third-Party Components therein:
|
205 |
+
--------------------------------------------------------------------
|
206 |
+
1. tqdm
|
207 |
+
Copyright (c) 2013 noamraph
|
208 |
+
|
209 |
+
|
210 |
+
A copy of the MIT is included in this file.
|
211 |
+
|
212 |
+
For the license of other third party components, please refer to the following URL:
|
213 |
+
https://github.com/tqdm/tqdm/blob/v4.66.2/LICENCE
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
Open Source Model Licensed under the MIT License:
|
218 |
+
--------------------------------------------------------------------
|
219 |
+
1. clip-large
|
220 |
+
Copyright (c) 2021 OpenAI
|
221 |
+
|
222 |
+
|
223 |
+
A copy of the MIT is included in this file.
|
224 |
+
|
225 |
+
|
226 |
+
--------------------------------------------------------------------
|
227 |
+
We may also use other third-party components:
|
228 |
+
|
229 |
+
1. llava-llama3
|
230 |
+
|
231 |
+
Copyright (c) llava-llama3 original author and authors
|
232 |
+
|
233 |
+
URL: https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-transformers#model
|
README.md
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
license_name: tencent-hunyuan-community
|
4 |
+
license_link: LICENSE
|
5 |
+
---
|
6 |
+
|
7 |
+
<!-- ## **HunyuanVideo** -->
|
8 |
+
|
9 |
+
<p align="center">
|
10 |
+
<img src="https://raw.githubusercontent.com/Tencent/HunyuanVideo/refs/heads/main/assets/logo.png" height=100>
|
11 |
+
</p>
|
12 |
+
|
13 |
+
# HunyuanVideo: A Systematic Framework For Large Video Generation Model Training
|
14 |
+
|
15 |
+
-----
|
16 |
+
|
17 |
+
This repo contains the weights of HunyuanVideo-PromptRewrite model, which can be directly deployed and inferred using the [Hunyuan-Large original code](https://github.com/Tencent/Tencent-Hunyuan-Large). Our project page is [here](https://aivideo.hunyuan.tencent.com).
|
18 |
+
|
19 |
+
> [**HunyuanVideo: A Systematic Framework For Large Video Generation Model Training**](https://arxiv.org/abs/2412.03603) <br>
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
## Contents
|
24 |
+
- [HunyuanVideo: A Systematic Framework For Large Video Generation Model Training](#hunyuanvideo--a-systematic-framework-for-large-video-generation-model-training)
|
25 |
+
- [Contents](#contents)
|
26 |
+
- [**Abstract**](#abstract)
|
27 |
+
- [**HunyuanVideo Overall Architechture**](#-hunyuanvideo-overall-architechture)
|
28 |
+
- [🎉 **HunyuanVideo Key Features**](#-hunyuanvideo-key-features)
|
29 |
+
- [**Unified Image and Video Generative Architecture**](#unified-image-and-video-generative-architecture)
|
30 |
+
- [**MLLM Text Encoder**](#mllm-text-encoder)
|
31 |
+
- [**3D VAE**](#3d-vae)
|
32 |
+
- [**Prompt Rewrite**](#prompt-rewrite)
|
33 |
+
- [📈 Comparisons](#-comparisons)
|
34 |
+
- [🔗 BibTeX](#-bibtex)
|
35 |
+
- [Acknowledgements](#-acknowledgements)
|
36 |
+
---
|
37 |
+
|
38 |
+
## **Abstract**
|
39 |
+
We present HunyuanVideo, a novel open-source video foundation model that exhibits performance in video generation that is comparable to, if not superior to, leading closed-source models. HunyuanVideo features a comprehensive framework that integrates several key contributions, including data curation, image-video joint model training, and an efficient infrastructure designed to facilitate large-scale model training and inference. Additionally, through an effective strategy for scaling model architecture and dataset, we successfully trained a video generative model with over 13 billion parameters, making it the largest among all open-source models.
|
40 |
+
|
41 |
+
We conducted extensive experiments and implemented a series of targeted designs to ensure high visual quality, motion diversity, text-video alignment, and generation stability. According to professional human evaluation results, HunyuanVideo outperforms previous state-of-the-art models, including Runway Gen-3, Luma 1.6, and 3 top performing Chinese video generative models. By releasing the code and weights of the foundation model and its applications, we aim to bridge the gap between closed-source and open-source video foundation models. This initiative will empower everyone in the community to experiment with their ideas, fostering a more dynamic and vibrant video generation ecosystem.
|
42 |
+
|
43 |
+
## **HunyuanVideo Overall Architechture**
|
44 |
+
|
45 |
+
HunyuanVideo is trained on a spatial-temporally
|
46 |
+
compressed latent space, which is compressed through Causal 3D VAE. Text prompts are encoded
|
47 |
+
using a large language model, and used as the condition. Gaussian noise and condition are taken as
|
48 |
+
input, our generate model generates an output latent, which is decoded to images or videos through
|
49 |
+
the 3D VAE decoder.
|
50 |
+
<p align="center">
|
51 |
+
<img src="https://raw.githubusercontent.com/Tencent/HunyuanVideo/refs/heads/main/assets/overall.png" height=300>
|
52 |
+
</p>
|
53 |
+
|
54 |
+
## 🎉 **HunyuanVideo Key Features**
|
55 |
+
### **Unified Image and Video Generative Architecture**
|
56 |
+
HunyuanVideo introduces the Transformer design and employs a Full Attention mechanism for unified image and video generation.
|
57 |
+
Specifically, we use a "Dual-stream to Single-stream" hybrid model design for video generation. In the dual-stream phase, video and text
|
58 |
+
tokens are processed independently through multiple Transformer blocks, enabling each modality to learn its own appropriate modulation mechanisms without interference. In the single-stream phase, we concatenate the video and text
|
59 |
+
tokens and feed them into subsequent Transformer blocks for effective multimodal information fusion.
|
60 |
+
This design captures complex interactions between visual and semantic information, enhancing
|
61 |
+
overall model performance.
|
62 |
+
<p align="center">
|
63 |
+
<img src="https://raw.githubusercontent.com/Tencent/HunyuanVideo/refs/heads/main/assets/backbone.png" height=350>
|
64 |
+
</p>
|
65 |
+
|
66 |
+
### **MLLM Text Encoder**
|
67 |
+
Some previous text-to-video model typically use pretrainednCLIP and T5-XXL as text encoders where CLIP uses Transformer Encoder and T5 uses a Encoder-Decoder structure. In constrast, we utilize a pretrained Multimodal Large Language Model (MLLM) with a Decoder-Only structure as our text encoder, which has following advantages: (i) Compared with T5, MLLM after visual instruction finetuning has better image-text alignment in the feature space, which alleviates the difficulty of instruction following in diffusion models; (ii)
|
68 |
+
Compared with CLIP, MLLM has been demonstrated superior ability in image detail description
|
69 |
+
and complex reasoning; (iii) MLLM can play as a zero-shot learner by following system instructions prepended to user prompts, helping text features pay more attention to key information. In addition, MLLM is based on causal attention while T5-XXL utilizes bidirectional attention that produces better text guidance for diffusion models. Therefore, we introduce an extra bidirectional token refiner for enhacing text features.
|
70 |
+
<p align="center">
|
71 |
+
<img src="https://raw.githubusercontent.com/Tencent/HunyuanVideo/refs/heads/main/assets/text_encoder.png" height=275>
|
72 |
+
</p>
|
73 |
+
|
74 |
+
### **3D VAE**
|
75 |
+
HunyuanVideo trains a 3D VAE with CausalConv3D to compress pixel-space videos and images into a compact latent space. We set the compression ratios of video length, space and channel to 4, 8 and 16 respectively. This can significantly reduce the number of tokens for the subsequent diffusion transformer model, allowing us to train videos at the original resolution and frame rate.
|
76 |
+
<p align="center">
|
77 |
+
<img src="https://raw.githubusercontent.com/Tencent/HunyuanVideo/refs/heads/main/assets/3dvae.png" height=150>
|
78 |
+
</p>
|
79 |
+
|
80 |
+
### **Prompt Rewrite**
|
81 |
+
To address the variability in linguistic style and length of user-provided prompts, we fine-tune the [Hunyuan-Large model](https://github.com/Tencent/Tencent-Hunyuan-Large) as our prompt rewrite model to adapt the original user prompt to model-preferred prompt.
|
82 |
+
|
83 |
+
We provide two rewrite modes: Normal mode and Master mode, which can be called using different prompts. The Normal mode is designed to enhance the video generation model's comprehension of user intent, facilitating a more accurate interpretation of the instructions provided. The Master mode enhances the description of aspects such as composition, lighting, and camera movement, which leans towards generating videos with a higher visual quality. However, this emphasis may occasionally result in the loss of some semantic details.
|
84 |
+
|
85 |
+
The Prompt Rewrite Model can be directly deployed and inferred using the [Hunyuan-Large original code](https://github.com/Tencent/Tencent-Hunyuan-Large). We release the weights of the Prompt Rewrite Model [here](https://huggingface.co/Tencent/HunyuanVideo-PromptRewrite).
|
86 |
+
|
87 |
+
## 📈 Comparisons
|
88 |
+
|
89 |
+
To evaluate the performance of HunyuanVideo, we selected five strong baselines from closed-source video generation models. In total, we utilized 1,533 text prompts, generating an equal number of video samples with HunyuanVideo in a single run. For a fair comparison, we conducted inference only once, avoiding any cherry-picking of results. When comparing with the baseline methods, we maintained the default settings for all selected models, ensuring consistent video resolution. Videos were assessed based on three criteria: Text Alignment, Motion Quality and Visual Quality. More than 60 professional evaluators performed the evaluation. Notably, HunyuanVideo demonstrated the best overall performance, particularly excelling in motion quality.
|
90 |
+
|
91 |
+
<p align="center">
|
92 |
+
<table>
|
93 |
+
<thead>
|
94 |
+
<tr>
|
95 |
+
<th rowspan="2">Model</th> <th rowspan="2">Open Source</th> <th>Duration</th> <th>Text Alignment</th> <th>Motion Quality</th> <th rowspan="2">Visual Quality</th> <th rowspan="2">Overall</th> <th rowspan="2">Ranking</th>
|
96 |
+
</tr>
|
97 |
+
</thead>
|
98 |
+
<tbody>
|
99 |
+
<tr>
|
100 |
+
<td>HunyuanVideo (Ours)</td> <td> ✔ </td> <td>5s</td> <td>61.8%</td> <td>66.5%</td> <td>95.7%</td> <td>41.3%</td> <td>1</td>
|
101 |
+
</tr>
|
102 |
+
<tr>
|
103 |
+
<td>CNTopA (API)</td> <td> ✘ </td> <td>5s</td> <td>62.6%</td> <td>61.7%</td> <td>95.6%</td> <td>37.7%</td> <td>2</td>
|
104 |
+
</tr>
|
105 |
+
<tr>
|
106 |
+
<td>CNTopB (Web)</td> <td> ✘</td> <td>5s</td> <td>60.1%</td> <td>62.9%</td> <td>97.7%</td> <td>37.5%</td> <td>3</td>
|
107 |
+
</tr>
|
108 |
+
<tr>
|
109 |
+
<td>GEN-3 alpha (Web)</td> <td>✘</td> <td>6s</td> <td>47.7%</td> <td>54.7%</td> <td>97.5%</td> <td>27.4%</td> <td>4</td>
|
110 |
+
</tr>
|
111 |
+
<tr>
|
112 |
+
<td>Luma1.6 (API)</td><td>✘</td> <td>5s</td> <td>57.6%</td> <td>44.2%</td> <td>94.1%</td> <td>24.8%</td> <td>6</td>
|
113 |
+
</tr>
|
114 |
+
<tr>
|
115 |
+
<td>CNTopC (Web)</td> <td>✘</td> <td>5s</td> <td>48.4%</td> <td>47.2%</td> <td>96.3%</td> <td>24.6%</td> <td>5</td>
|
116 |
+
</tr>
|
117 |
+
</tbody>
|
118 |
+
</table>
|
119 |
+
</p>
|
120 |
+
|
121 |
+
|
122 |
+
## 🔗 BibTeX
|
123 |
+
If you find [HunyuanVideo](https://arxiv.org/abs/2412.03603) useful for your research and applications, please cite using this BibTeX:
|
124 |
+
|
125 |
+
```BibTeX
|
126 |
+
@misc{kong2024hunyuanvideo,
|
127 |
+
title={HunyuanVideo: A Systematic Framework For Large Video Generative Models},
|
128 |
+
author={Weijie Kong, Qi Tian, Zijian Zhang, Rox Min, Zuozhuo Dai, Jin Zhou, Jiangfeng Xiong, Xin Li, Bo Wu, Jianwei Zhang, Kathrina Wu, Qin Lin, Aladdin Wang, Andong Wang, Changlin Li, Duojun Huang, Fang Yang, Hao Tan, Hongmei Wang, Jacob Song, Jiawang Bai, Jianbing Wu, Jinbao Xue, Joey Wang, Junkun Yuan, Kai Wang, Mengyang Liu, Pengyu Li, Shuai Li, Weiyan Wang, Wenqing Yu, Xinchi Deng, Yang Li, Yanxin Long, Yi Chen, Yutao Cui, Yuanbo Peng, Zhentao Yu, Zhiyu He, Zhiyong Xu, Zixiang Zhou, Yangyu Tao, Qinglin Lu, Songtao Liu, Dax Zhou, Hongfa Wang, Yong Yang, Di Wang, Yuhong Liu, and Jie Jiang, along with Caesar Zhong},
|
129 |
+
year={2024},
|
130 |
+
archivePrefix={arXiv preprint arXiv:2412.03603},
|
131 |
+
primaryClass={cs.CV}
|
132 |
+
}
|
133 |
+
```
|
134 |
+
|
135 |
+
## Acknowledgements
|
136 |
+
We would like to thank the contributors to the [SD3](https://huggingface.co/stabilityai/stable-diffusion-3-medium), [FLUX](https://github.com/black-forest-labs/flux), [Llama](https://github.com/meta-llama/llama), [LLaVA](https://github.com/haotian-liu/LLaVA), [Xtuner](https://github.com/InternLM/xtuner), [diffusers](https://github.com/huggingface/diffusers) and [HuggingFace](https://huggingface.co) repositories, for their open research and exploration.
|
137 |
+
Additionally, we also thank the Tencent Hunyuan Multimodal team for their help with the text encoder.
|
__init__.py
ADDED
File without changes
|
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"HunYuanForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "configuration_hunyuan.HunYuanConfig",
|
9 |
+
"AutoModel": "modeling_hunyuan.HunyuanModel",
|
10 |
+
"AutoModelForCausalLM": "modeling_hunyuan.HunYuanForCausalLM"
|
11 |
+
},
|
12 |
+
"bos_token_id": 1,
|
13 |
+
"capacity_factor": 1.0,
|
14 |
+
"cla_share_factor": 2,
|
15 |
+
"eos_token_id": 2,
|
16 |
+
"hidden_act": "silu",
|
17 |
+
"hidden_size": 6400,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 18304,
|
20 |
+
"max_position_embeddings": 131072,
|
21 |
+
"model_type": "hunyuan",
|
22 |
+
"moe_drop_tokens": false,
|
23 |
+
"moe_random_routing_dropped_token": false,
|
24 |
+
"moe_topk": 1,
|
25 |
+
"num_attention_heads": 80,
|
26 |
+
"num_experts": 16,
|
27 |
+
"num_hidden_layers": 64,
|
28 |
+
"num_key_value_heads": 8,
|
29 |
+
"num_shared_expert": 1,
|
30 |
+
"pad_token_id": 0,
|
31 |
+
"pretraining_tp": 1,
|
32 |
+
"rms_norm_eps": 1e-05,
|
33 |
+
"rope_scaling": {
|
34 |
+
"alpha": 1000.0,
|
35 |
+
"factor": 1.0,
|
36 |
+
"type": "dynamic"
|
37 |
+
},
|
38 |
+
"rope_theta": 10000.0,
|
39 |
+
"tie_word_embeddings": true,
|
40 |
+
"torch_dtype": "bfloat16",
|
41 |
+
"transformers_version": "4.41.2",
|
42 |
+
"use_cache": true,
|
43 |
+
"use_cla": true,
|
44 |
+
"use_mixed_mlp_moe": true,
|
45 |
+
"use_qk_norm": true,
|
46 |
+
"vocab_size": 129024
|
47 |
+
}
|
configuration_hunyuan.py
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved.
|
3 |
+
""" HunYuan model configuration"""
|
4 |
+
|
5 |
+
from transformers.configuration_utils import PretrainedConfig
|
6 |
+
from transformers.utils import logging
|
7 |
+
|
8 |
+
|
9 |
+
logger = logging.get_logger(__name__)
|
10 |
+
|
11 |
+
|
12 |
+
class HunYuanConfig(PretrainedConfig):
|
13 |
+
r"""
|
14 |
+
This is the configuration class to store the configuration of a [`HunYuanModel`]. It is used to instantiate an
|
15 |
+
HunYuan model according to the specified arguments, defining the model architecture. Instantiating a configuration
|
16 |
+
with the defaults will yield a similar configuration to that of the HunYuan-7B.
|
17 |
+
|
18 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
19 |
+
documentation from [`PretrainedConfig`] for more information.
|
20 |
+
|
21 |
+
|
22 |
+
Args:
|
23 |
+
vocab_size (`int`, *optional*, defaults to 32000):
|
24 |
+
Vocabulary size of the HunYuan model. Defines the number of different tokens that can be represented by the
|
25 |
+
`inputs_ids` passed when calling [`HunYuanModel`]
|
26 |
+
hidden_size (`int`, *optional*, defaults to 4096):
|
27 |
+
Dimension of the hidden representations.
|
28 |
+
intermediate_size (`int`, *optional*, defaults to 11008):
|
29 |
+
Dimension of the MLP representations.
|
30 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
31 |
+
Number of hidden layers in the Transformer decoder.
|
32 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
33 |
+
Number of attention heads for each attention layer in the Transformer decoder.
|
34 |
+
num_key_value_heads (`int`, *optional*):
|
35 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
36 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
37 |
+
`num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
38 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
39 |
+
by meanpooling all the original heads within that group. For more details checkout [this
|
40 |
+
paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
|
41 |
+
`num_attention_heads`.
|
42 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
43 |
+
The non-linear activation function (function or string) in the decoder.
|
44 |
+
max_position_embeddings (`int`, *optional*, defaults to 2048):
|
45 |
+
The maximum sequence length that this model might ever be used with.
|
46 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
47 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
48 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-06):
|
49 |
+
The epsilon used by the rms normalization layers.
|
50 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
51 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
52 |
+
relevant if `config.is_decoder=True`.
|
53 |
+
pad_token_id (`int`, *optional*):
|
54 |
+
Padding token id.
|
55 |
+
bos_token_id (`int`, *optional*, defaults to 1):
|
56 |
+
Beginning of stream token id.
|
57 |
+
eos_token_id (`int`, *optional*, defaults to 2):
|
58 |
+
End of stream token id.
|
59 |
+
pretraining_tp (`int`, *optional*, defaults to 1):
|
60 |
+
Experimental feature. Tensor parallelism rank used during pretraining. Please refer to [this
|
61 |
+
document](https://huggingface.co/docs/transformers/parallelism) to understand more about it. This value is
|
62 |
+
necessary to ensure exact reproducibility of the pretraining results. Please refer to [this
|
63 |
+
issue](https://github.com/pytorch/pytorch/issues/76232).
|
64 |
+
tie_word_embeddings (`bool`, *optional*, defaults to `False`):
|
65 |
+
Whether to tie weight embeddings
|
66 |
+
rope_theta (`float`, *optional*, defaults to 10000.0):
|
67 |
+
The base period of the RoPE embeddings.
|
68 |
+
rope_scaling (`Dict`, *optional*):
|
69 |
+
Dictionary containing the scaling configuration for the RoPE embeddings. Currently supports two scaling
|
70 |
+
strategies: linear and dynamic. Their scaling factor must be a float greater than 1. The expected format is
|
71 |
+
`{"type": strategy name, "factor": scaling factor}`. When using this flag, don't update
|
72 |
+
`max_position_embeddings` to the expected new maximum. See the following thread for more information on how
|
73 |
+
these scaling strategies behave:
|
74 |
+
https://www.reddit.com/r/LocalLLaMA/comments/14mrgpr/dynamically_scaled_rope_further_increases/. This is an
|
75 |
+
experimental feature, subject to breaking API changes in future versions.
|
76 |
+
attention_bias (`bool`, defaults to `False`, *optional*, defaults to `False`):
|
77 |
+
Whether to use a bias in the query, key, value and output projection layers during self-attention.
|
78 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
79 |
+
The dropout ratio for the attention probabilities.
|
80 |
+
use_qk_norm (`bool`, *optional*, defaults to `False`):
|
81 |
+
Whether query and key in attention use norm
|
82 |
+
use_cla (`bool`, *optional*, defaults to `False`):
|
83 |
+
Whether to use CLA in attention
|
84 |
+
cla_share_factor (`int`, *optional*, defaults to 1):
|
85 |
+
The share factor of CLA
|
86 |
+
"""
|
87 |
+
|
88 |
+
model_type = "hunyuan"
|
89 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
90 |
+
|
91 |
+
def __init__(
|
92 |
+
self,
|
93 |
+
vocab_size=290943,
|
94 |
+
hidden_size=4096,
|
95 |
+
intermediate_size=11008,
|
96 |
+
num_hidden_layers=32,
|
97 |
+
num_attention_heads=32,
|
98 |
+
num_key_value_heads=None,
|
99 |
+
hidden_act="silu",
|
100 |
+
max_position_embeddings=2048,
|
101 |
+
initializer_range=0.02,
|
102 |
+
rms_norm_eps=1e-5,
|
103 |
+
use_cache=True,
|
104 |
+
pad_token_id=0,
|
105 |
+
bos_token_id=1,
|
106 |
+
eos_token_id=2,
|
107 |
+
pretraining_tp=1,
|
108 |
+
tie_word_embeddings=False,
|
109 |
+
rope_theta=10000.0,
|
110 |
+
rope_scaling=None,
|
111 |
+
attention_bias=False,
|
112 |
+
attention_dropout=0.0,
|
113 |
+
use_qk_norm=False,
|
114 |
+
use_cla=False,
|
115 |
+
cla_share_factor=1,
|
116 |
+
num_experts=1,
|
117 |
+
use_mixed_mlp_moe=False,
|
118 |
+
num_shared_expert=1,
|
119 |
+
moe_topk=1,
|
120 |
+
capacity_factor=1.0,
|
121 |
+
moe_drop_tokens=False,
|
122 |
+
moe_random_routing_dropped_token=False,
|
123 |
+
**kwargs,
|
124 |
+
):
|
125 |
+
self.vocab_size = vocab_size
|
126 |
+
self.max_position_embeddings = max_position_embeddings
|
127 |
+
self.hidden_size = hidden_size
|
128 |
+
self.intermediate_size = intermediate_size
|
129 |
+
self.num_hidden_layers = num_hidden_layers
|
130 |
+
self.num_attention_heads = num_attention_heads
|
131 |
+
self.num_experts = num_experts
|
132 |
+
self.use_mixed_mlp_moe = use_mixed_mlp_moe
|
133 |
+
self.num_shared_expert = num_shared_expert
|
134 |
+
self.moe_topk = moe_topk
|
135 |
+
self.capacity_factor = capacity_factor
|
136 |
+
self.moe_drop_tokens = moe_drop_tokens
|
137 |
+
self.moe_random_routing_dropped_token = moe_random_routing_dropped_token
|
138 |
+
|
139 |
+
# for backward compatibility
|
140 |
+
if num_key_value_heads is None:
|
141 |
+
num_key_value_heads = num_attention_heads
|
142 |
+
|
143 |
+
self.num_key_value_heads = num_key_value_heads
|
144 |
+
self.hidden_act = hidden_act
|
145 |
+
self.initializer_range = initializer_range
|
146 |
+
self.rms_norm_eps = rms_norm_eps
|
147 |
+
self.pretraining_tp = pretraining_tp
|
148 |
+
self.use_cache = use_cache
|
149 |
+
self.rope_theta = rope_theta
|
150 |
+
self.rope_scaling = rope_scaling
|
151 |
+
# self._rope_scaling_validation() # TODO: Need validation?
|
152 |
+
self.attention_bias = attention_bias
|
153 |
+
self.attention_dropout = attention_dropout
|
154 |
+
self.use_qk_norm = use_qk_norm
|
155 |
+
self.use_cla = use_cla
|
156 |
+
self.cla_share_factor = cla_share_factor
|
157 |
+
|
158 |
+
super().__init__(
|
159 |
+
pad_token_id=pad_token_id,
|
160 |
+
bos_token_id=bos_token_id,
|
161 |
+
eos_token_id=eos_token_id,
|
162 |
+
tie_word_embeddings=tie_word_embeddings,
|
163 |
+
**kwargs,
|
164 |
+
)
|
165 |
+
|
166 |
+
def _rope_scaling_validation(self):
|
167 |
+
"""
|
168 |
+
Validate the `rope_scaling` configuration.
|
169 |
+
"""
|
170 |
+
if self.rope_scaling is None:
|
171 |
+
return
|
172 |
+
|
173 |
+
if not isinstance(self.rope_scaling, dict) or len(self.rope_scaling) != 2:
|
174 |
+
raise ValueError(
|
175 |
+
"`rope_scaling` must be a dictionary with with two fields, `type` and `factor` or `type` and `alpha`, "
|
176 |
+
f"got {self.rope_scaling}"
|
177 |
+
)
|
178 |
+
rope_scaling_type = self.rope_scaling.get("type", None)
|
179 |
+
rope_scaling_factor = self.rope_scaling.get("factor", None)
|
180 |
+
rope_scaling_alpha = self.rope_scaling.get("alpha", None)
|
181 |
+
if rope_scaling_type is None or rope_scaling_type not in ["linear", "dynamic"]:
|
182 |
+
raise ValueError(
|
183 |
+
f"`rope_scaling`'s type field must be one of ['linear', 'dynamic'], got {rope_scaling_type}"
|
184 |
+
)
|
185 |
+
if rope_scaling_factor is None and rope_scaling_alpha is None:
|
186 |
+
raise ValueError("`rope_scaling`'s factor or alpha field must be have one, got both of none")
|
187 |
+
if rope_scaling_factor is not None:
|
188 |
+
if not isinstance(rope_scaling_factor, float) or rope_scaling_factor <= 1.0:
|
189 |
+
raise ValueError(f"`rope_scaling`'s factor field must be a float > 1.0, got {rope_scaling_factor}")
|
190 |
+
if rope_scaling_alpha is not None:
|
191 |
+
if not isinstance(rope_scaling_alpha, float) or rope_scaling_alpha <= 1.0:
|
192 |
+
raise ValueError(f"`rope_scaling`'s alpha field must be a float > 1.0, got {rope_scaling_alpha}")
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token_id": [127960, 127957],
|
3 |
+
"pad_token_id": 127961,
|
4 |
+
"do_sample": true,
|
5 |
+
"top_k": 20,
|
6 |
+
"top_p": 0.6,
|
7 |
+
"repetition_penalty": 1.05,
|
8 |
+
"transformers_version": "4.31.0",
|
9 |
+
"temperature": 0.7
|
10 |
+
}
|
hy.tiktoken
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model-00001-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4d0eaf0d6a39e86a98f321e31fac351e0f79b408cd94a273a82bbb0247a6874
|
3 |
+
size 9993513304
|
model-00002-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1562d257d0e4c3d7f818a8675c3ab57f58a5464e2663fcfaa0846dc3f56302e6
|
3 |
+
size 9795570976
|
model-00003-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ebc3448d9f00445f2809f252df2b8265238b0302b03559e54676e460befa8712
|
3 |
+
size 9840235664
|
model-00004-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4577b5e70fd2b6d2ddd8280470cb737238acfd86eacd36ecd88438fd9de058f
|
3 |
+
size 9840235664
|
model-00005-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb5cdee66310c4a13d172a0bc6769484f826d49146990a87f60a893ac6f6b4c4
|
3 |
+
size 9840235664
|
model-00006-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38816c80e168f7f82ac2a9a9a11321c1908595185d1e3a939a1b2679a48fc6e9
|
3 |
+
size 9840235664
|
model-00007-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb384817e65ded74b475a91828ecdd73cadb2f24ea8129038d821dcddcbbe463
|
3 |
+
size 9840235696
|
model-00008-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4abec4f3f6b1afcda74fc805ecf12a7ec1d5bd5446093229d6c738e9de412af6
|
3 |
+
size 9840235704
|
model-00009-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24d71f854ff99f92e2bb6bfecaf5a69c412b560215b8c923539f98f33c4729b8
|
3 |
+
size 9840235704
|
model-00010-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a41f7bed3ab9f7e27074598d8261034eabca0ce9a42839a5eeefa33356b04b4f
|
3 |
+
size 9840235712
|
model-00011-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3eccf8009a65baccd943ec00df5fe9ad6957d937d0db783aba1e47c79d3cea0
|
3 |
+
size 9840235712
|
model-00012-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d06772daf27ceb6c9b39a6aaa2f1eec04f0a04cb8c98ff0fe3529911bea6d4c9
|
3 |
+
size 9840235712
|
model-00013-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8475e7c0674d4cfd794f18de9005b5ec75aeaa7032bc5b249cd5856072203e4f
|
3 |
+
size 9840235712
|
model-00014-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3611288665fbc4aa8731b722afed1968fa08f1ab5aee256e849acff6e92fce9
|
3 |
+
size 9840235704
|
model-00015-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c966f8f999f590f67f3664250df25a240b55f77f65187aa26f88b9fe23b829b
|
3 |
+
size 9840235704
|
model-00016-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7f96771694621539746e0fda22741babd214f00fa663eeae88a0d9dae82be6cb
|
3 |
+
size 9840235704
|
model-00017-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6839f9c34244f114fab939d838dbdf548dcc4cf4612dffc1bca2ccf05b439c38
|
3 |
+
size 9840235704
|
model-00018-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68fe215fd4c0d38c9195a54118b35ec75f881494ed75aa4fae678302f8664932
|
3 |
+
size 9840235712
|
model-00019-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d1aa728a084db22c1f312f9ab6f0cac3073ac1a89eaf233ab0c923f0d235b38
|
3 |
+
size 9840235712
|
model-00020-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51577ecd7557a9c3db66e2e1b0d384ba4b7989eb79ea826d85601baf610f37e2
|
3 |
+
size 8540283280
|
model-00021-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f49200df02591299f82751d48f23e3560097345f1b03992e3baf8e1790de6459
|
3 |
+
size 9993976896
|
model-00022-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc788f3098c4782b6f1aecc7dc4795acbb34598c52c5e9de5078c8e1e78c9189
|
3 |
+
size 9783639192
|
model-00023-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:090d8381d8e68e45085162ed7a978a86d36b472ca6be5035c668c852889da0d1
|
3 |
+
size 9840235664
|
model-00024-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ad7ffd19c19832fcfabc2c8d1c845dd76dbafe307bb8bc0074efdd1a367d430
|
3 |
+
size 9840235680
|
model-00025-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a2829fb6677546b25f7bbf62142b628fa587fd30424eed435484098c1a937cf7
|
3 |
+
size 9840235712
|
model-00026-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c31d07b9d632b2bbf404b734a0bd15180c7ea519c32db22177afcca072c48c55
|
3 |
+
size 9840235712
|
model-00027-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78e8bcc3cc828ed836641ed79b82ec365f3bd5b4aa6081077202ce026fc79654
|
3 |
+
size 9840235704
|
model-00028-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b36f596078cb4083e442443ee7cddbac8bf6c4768f28b0e3c8e7319cdc71dd83
|
3 |
+
size 9840235704
|
model-00029-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23144c51e696558aa4992a5ac9ff9fbc097cb133418e37d82a5dde297aebc716
|
3 |
+
size 9840235704
|
model-00030-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc18bc2e5f92fdd67cfa46d22fa42cc43e7e03ead189eac7dc5319234d1b6d25
|
3 |
+
size 9840235704
|
model-00031-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36c804d14c94b7c8d82b7c6c18c49fc1c462f70d5a16fbc012e02abb43151c34
|
3 |
+
size 9840235712
|
model-00032-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f956157792b32dc17180541418f95a72c0a899330dc7cf407b7e25c531c34960
|
3 |
+
size 9840235712
|
model-00033-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf9978e8898af8eec3c168ccce24573e34a7cad1a32293d26bc48f9f2a42f8b1
|
3 |
+
size 9840235712
|
model-00034-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1031d884ea061e69e96129357494e599b5de82e9df66c715c5a7a25e0fe8a44d
|
3 |
+
size 9840235712
|
model-00035-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0a16bf83f1cb6a6e11db6db189da5832d063665f4eabe69653ce84367d4bc32
|
3 |
+
size 9840235704
|
model-00036-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7279dd73e04f747a643613cfe157dc5356901ab6b90a63993b12d70eea3c91d
|
3 |
+
size 9840235704
|
model-00037-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d01d86be4b13cbe6cd82a8566b5c326f80005627a319a6167f38c862027eea69
|
3 |
+
size 9840235704
|
model-00038-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d6095196dd1bb0edffa8be9b498661777f1f3694e0193f431765d9f0c81b6cc
|
3 |
+
size 9840235704
|
model-00039-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f7b06ade8bfb33dad961daac7058ea54409f829e809426fa5b72d804cf3b9a93
|
3 |
+
size 9840235712
|
model-00040-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0be1fed85abc8be9952bea25dcd557806f85585da62d9c0de93c008b441010d8
|
3 |
+
size 6900243904
|
model-00041-of-00080.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35210b5e3921b5ea25e26086643e163922bb9071bdd67ec205b654417f202ce3
|
3 |
+
size 9993976896
|