add data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- ._____temp/OpenDocVQA-Corpus/.gitattributes +59 -0
- ._____temp/OpenDocVQA-Corpus/LICENSE +154 -0
- ._____temp/OpenDocVQA-Corpus/README.md +312 -0
- ._____temp/OpenDocVQA-Corpus/arxivqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/chartqa/test-00000-of-00003.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/chartqa/test-00001-of-00003.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/chartqa/test-00002-of-00003.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/data/train-00000-of-00004.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/data/train-00001-of-00004.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/data/train-00002-of-00004.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/data/train-00003-of-00004.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/docvqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/infovqa/test-00000-of-00005.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/infovqa/test-00001-of-00005.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/infovqa/test-00002-of-00005.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/infovqa/test-00003-of-00005.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/infovqa/test-00004-of-00005.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/plotqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00000-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00001-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00002-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00003-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00004-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00005-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00006-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00007-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00008-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00009-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00010-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00011-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00012-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA-Corpus/slidevqa/test-00013-of-00014.parquet +3 -0
- ._____temp/OpenDocVQA/.gitattributes +59 -0
- ._____temp/OpenDocVQA/LICENSE +154 -0
- ._____temp/OpenDocVQA/README.md +384 -0
- ._____temp/OpenDocVQA/arxivqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA/chartqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA/data/train-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA/docvqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA/infovqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA/plotqa/test-00000-of-00001.parquet +3 -0
- ._____temp/OpenDocVQA/slidevqa/test-00000-of-00001.parquet +3 -0
- ._____temp/Phi3/.gitattributes +35 -0
- ._____temp/Phi3/CODE_OF_CONDUCT.md +9 -0
- ._____temp/Phi3/LICENSE +21 -0
- ._____temp/Phi3/README.md +231 -0
- ._____temp/Phi3/SECURITY.md +41 -0
- ._____temp/Phi3/SUPPORT.md +25 -0
- ._____temp/Phi3/config.json +148 -0
- ._____temp/Phi3/configuration_phi3_v.py +217 -0
._____temp/OpenDocVQA-Corpus/.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
._____temp/OpenDocVQA-Corpus/LICENSE
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SOFTWARE LICENSE AGREEMENT FOR EVALUATION
|
| 2 |
+
|
| 3 |
+
This SOFTWARE EVALUATION LICENSE AGREEMENT (this "Agreement") is a legal
|
| 4 |
+
contract between a person who uses or otherwise accesses or installs the
|
| 5 |
+
Software ("User(s)"), and Nippon Telegraph and Telephone corporation ("NTT").
|
| 6 |
+
READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY BEFORE INSTALLING OR
|
| 7 |
+
OTHERWISE ACCESSING OR USING NTT'S PROPRIETARY SOFTWARE ACCOMPANIED BY THIS
|
| 8 |
+
AGREEMENT (the "SOFTWARE"). THE SOFTWARE IS COPYRIGHTED AND IT IS LICENSED TO
|
| 9 |
+
USER UNDER THIS AGREEMENT, NOT SOLD TO USER. BY INSTALLING OR OTHERWISE
|
| 10 |
+
ACCESSING OR USING THE SOFTWARE, USER ACKNOWLEDGES THAT USER HAS READ THIS
|
| 11 |
+
AGREEMENT, THAT USER UNDERSTANDS IT, AND THAT USER ACCEPTS AND AGREES TO BE
|
| 12 |
+
BOUND BY ITS TERMS. IF AT ANY TIME USER IS NOT WILLING TO BE BOUND BY THE
|
| 13 |
+
TERMS OF THIS AGREEMENT, USER SHOULD TERMINATE THE INSTALLATION PROCESS,
|
| 14 |
+
IMMEDIATELY CEASE AND REFRAIN FROM ACCESSING OR USING THE SOFTWARE AND DELETE
|
| 15 |
+
ANY COPIES USER MAY HAVE. THIS AGREEMENT REPRESENTS THE ENTIRE AGREEMENT
|
| 16 |
+
BETWEEN USER AND NTT CONCERNING THE SOFTWARE.
|
| 17 |
+
|
| 18 |
+
BACKGROUND
|
| 19 |
+
|
| 20 |
+
A. NTT is the owner of all rights, including all patent rights, copyrights and
|
| 21 |
+
trade secret rights, in and to the Software and related documentation listed
|
| 22 |
+
in Exhibit A to this Agreement.
|
| 23 |
+
|
| 24 |
+
B. User wishes to obtain a royalty free license to use the Software to enable
|
| 25 |
+
User to evaluate, and NTT wishes to grant such a license to User, pursuant and
|
| 26 |
+
subject to the terms and conditions of this Agreement.
|
| 27 |
+
|
| 28 |
+
C. As a condition to NTT's provision of the Software to User, NTT has required
|
| 29 |
+
User to execute this Agreement.
|
| 30 |
+
|
| 31 |
+
In consideration of these premises, and the mutual promises and conditions in
|
| 32 |
+
this Agreement, the parties hereby agree as follows:
|
| 33 |
+
|
| 34 |
+
1. Grant of Evaluation License. NTT hereby grants to User, and User hereby
|
| 35 |
+
accepts, under the terms and conditions of this Agreement, a royalty free,
|
| 36 |
+
nontransferable and nonexclusive license to use the Software internally for
|
| 37 |
+
the purposes of testing, analyzing, and evaluating the methods or mechanisms
|
| 38 |
+
as shown in the research paper submitted by NTT to a certain academy. User may
|
| 39 |
+
make a reasonable number of backup copies of the Software solely for User's
|
| 40 |
+
internal use pursuant to the license granted in this Section 1.
|
| 41 |
+
|
| 42 |
+
2. Shipment and Installation. NTT will ship or deliver the Software by any
|
| 43 |
+
method that NTT deems appropriate. User shall be solely responsible for proper
|
| 44 |
+
installation of the Software.
|
| 45 |
+
|
| 46 |
+
3. Term. This Agreement is effective whichever is earlier (i) upon User's
|
| 47 |
+
acceptance of the Agreement, or (ii) upon User's installing, accessing, and
|
| 48 |
+
using the Software, even if User has not expressly accepted this Agreement.
|
| 49 |
+
Without prejudice to any other rights, NTT may terminate this Agreement
|
| 50 |
+
without notice to User (i) if User breaches or fails to comply with any of the
|
| 51 |
+
limitations or other requirements described herein, and (ii) if NTT receives a
|
| 52 |
+
notice from the academy stating that the research paper would not be
|
| 53 |
+
published, and in any such case User agrees that NTT may, in addition to any
|
| 54 |
+
other remedies it may have at law or in equity, remotely disable the Software.
|
| 55 |
+
User may terminate this Agreement at any time by User's decision to terminate
|
| 56 |
+
the Agreement to NTT and ceasing use of the Software. Upon any termination or
|
| 57 |
+
expiration of this Agreement for any reason, User agrees to uninstall the
|
| 58 |
+
Software and either return to NTT the Software and all copies thereof, or to
|
| 59 |
+
destroy all such materials and provide written verification of such
|
| 60 |
+
destruction to NTT.
|
| 61 |
+
|
| 62 |
+
4. Proprietary Rights
|
| 63 |
+
|
| 64 |
+
(a) The Software is the valuable, confidential, and proprietary property of
|
| 65 |
+
NTT, and NTT shall retain exclusive title to this property both during the
|
| 66 |
+
term and after the termination of this Agreement. Without limitation, User
|
| 67 |
+
acknowledges that all patent rights, copyrights and trade secret rights in the
|
| 68 |
+
Software shall remain the exclusive property of NTT at all times. User shall
|
| 69 |
+
use not less than reasonable care in safeguarding the confidentiality of the
|
| 70 |
+
Software.
|
| 71 |
+
|
| 72 |
+
(b) USER SHALL NOT, IN WHOLE OR IN PART, AT ANY TIME DURING THE TERM OF OR
|
| 73 |
+
AFTER THE TERMINATION OF THIS AGREEMENT: (i) SELL, ASSIGN, LEASE, DISTRIBUTE,
|
| 74 |
+
OR OTHERWISE TRANSFER THE SOFTWARE TO ANY THIRD PARTY; (ii) EXCEPT AS
|
| 75 |
+
OTHERWISE PROVIDED HEREIN, COPY OR REPRODUCE THE SOFTWARE IN ANY MANNER; (iii)
|
| 76 |
+
DISCLOSE THE SOFTWARE TO ANY THIRD PARTY, EXCEPT TO USER'S EMPLOYEES WHO
|
| 77 |
+
REQUIRE ACCESS TO THE SOFTWARE FOR THE PURPOSES OF THIS AGREEMENT; (iv)
|
| 78 |
+
MODIFY, DISASSEMBLE, DECOMPILE, REVERSE ENGINEER OR TRANSLATE THE SOFTWARE; OR
|
| 79 |
+
(v) ALLOW ANY PERSON OR ENTITY TO COMMIT ANY OF THE ACTIONS DESCRIBED IN (i)
|
| 80 |
+
THROUGH (iv) ABOVE.
|
| 81 |
+
|
| 82 |
+
(c) User shall take appropriate action, by instruction, agreement, or
|
| 83 |
+
otherwise, with respect to its employees permitted under this Agreement to
|
| 84 |
+
have access to the Software to ensure that all of User's obligations under
|
| 85 |
+
this Section 4 shall be satisfied.
|
| 86 |
+
|
| 87 |
+
5. Indemnity. User shall defend, indemnify and hold harmless NTT, its agents
|
| 88 |
+
and employees, from any loss, damage, or liability arising in connection with
|
| 89 |
+
User's improper or unauthorized use of the Software. NTT SHALL HAVE THE SOLE
|
| 90 |
+
RIGHT TO CONDUCT DEFEND ANY ACTTION RELATING TO THE SOFTWARE.
|
| 91 |
+
|
| 92 |
+
6. Disclaimer. THE SOFTWARE IS LICENSED TO USER "AS IS," WITHOUT ANY
|
| 93 |
+
TRAINING, MAINTENANCE, OR SERVICE OBLIGATIONS WHATSOEVER ON THE PART OF NTT.
|
| 94 |
+
NTT MAKES NO EXPRESS OR IMPLIED WARRANTIES OF ANY TYPE WHATSOEVER, INCLUDING
|
| 95 |
+
WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A
|
| 96 |
+
PARTICULAR PURPOSE AND OF NON-INFRINGEMENT ON COPYRIGHT OR ANY OTHER RIGHT OF
|
| 97 |
+
THIRD PARTIES. USER ASSUMES ALL RISKS ASSOCIATED WITH ITS USE OF THE
|
| 98 |
+
SOFTWARE, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, PERFORMANCE,
|
| 99 |
+
DATA LOSS, AND UTILITY IN A PRODUCTION ENVIRONMENT.
|
| 100 |
+
|
| 101 |
+
7. Limitation of Liability. IN NO EVENT SHALL NTT BE LIABLE TO USER OR TO ANY
|
| 102 |
+
THIRD PARTY FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
| 103 |
+
INCLUDING BUT NOT LIMITED TO DAMAGES FOR PERSONAL INJURY, PROPERTY DAMAGE,
|
| 104 |
+
LOST PROFITS, OR OTHER ECONOMIC LOSS, ARISING IN CONNECTION WITH USER'S USE OF
|
| 105 |
+
OR INABILITY TO USE THE SOFTWARE, IN CONNECTION WITH NTT'S PROVISION OF OR
|
| 106 |
+
FAILURE TO PROVIDE SERVICES PERTAINING TO THE SOFTWARE, OR AS A RESULT OF ANY
|
| 107 |
+
DEFECT IN THE SOFTWARE. THIS DISCLAIMER OF LIABILITY SHALL APPLY REGARD¬LESS
|
| 108 |
+
OF THE FORM OF ACTION THAT MAY BE BROUGHT AGAINST NTT, WHETHER IN CONTRACT OR
|
| 109 |
+
TORT, INCLUDING WITHOUT LIMITATION ANY ACTION FOR NEGLIGENCE. USER'S SOLE
|
| 110 |
+
REMEDY IN THE EVENT OF ANY BREACH OF THIS AGREEMENT BY NTT SHALL BE
|
| 111 |
+
TERMINATION PURSUANT TO SECTION 3.
|
| 112 |
+
|
| 113 |
+
8. No Assignment or Sublicense. Neither this Agreement nor any right or
|
| 114 |
+
license under this Agreement, nor the Software, may be sublicensed, assigned,
|
| 115 |
+
or otherwise transferred by User without NTT's prior written consent.
|
| 116 |
+
|
| 117 |
+
9. General
|
| 118 |
+
|
| 119 |
+
(a) If any provision, or part of a provision, of this Agreement is or becomes
|
| 120 |
+
illegal, unenforceable, or invalidated, by operation of law or otherwise, that
|
| 121 |
+
provision or part shall to that extent be deemed omitted, and the remainder of
|
| 122 |
+
this Agreement shall remain in full force and effect.
|
| 123 |
+
|
| 124 |
+
(b) This Agreement is the complete and exclusive statement of the agreement
|
| 125 |
+
between the parties with respect to the subject matter hereof, and supersedes
|
| 126 |
+
all written and oral contracts, proposals, and other communications between
|
| 127 |
+
the parties relating to that subject matter.
|
| 128 |
+
|
| 129 |
+
(c) Subject to Section 8, this Agreement shall be binding on, and shall inure
|
| 130 |
+
to the benefit of, the respective successors and assigns of NTT and User.
|
| 131 |
+
|
| 132 |
+
(d) If either party to this Agreement initiates a legal action or proceeding
|
| 133 |
+
to enforce or interpret any part of this Agreement, the prevailing party in
|
| 134 |
+
such action shall be entitled to recover, as an element of the costs of such
|
| 135 |
+
action and not as damages, its attorneys' fees and other costs associated with
|
| 136 |
+
such action or proceeding.
|
| 137 |
+
|
| 138 |
+
(e) This Agreement shall be governed by and interpreted under the laws of
|
| 139 |
+
Japan, without reference to conflicts of law principles. All disputes arising
|
| 140 |
+
out of or in connection with this Agreement shall be finally settled by
|
| 141 |
+
arbitration in Tokyo in accordance with the Commercial Arbitration Rules of
|
| 142 |
+
the Japan Commercial Arbitration Association. The arbitration shall be
|
| 143 |
+
conducted by three (3) arbitrators and in Japanese. The award rendered by the
|
| 144 |
+
arbitrators shall be final and binding upon the parties. Judgment upon the
|
| 145 |
+
award may be entered in any court having jurisdiction thereof.
|
| 146 |
+
|
| 147 |
+
(f) NTT shall not be liable to the User or to any third party for any delay or
|
| 148 |
+
failure to perform NTT's obligation set forth under this Agreement due to any
|
| 149 |
+
cause beyond NTT's reasonable control.
|
| 150 |
+
|
| 151 |
+
EXHIBIT A
|
| 152 |
+
The software and related data include the following files,
|
| 153 |
+
- all (visualmrc, slidevqa)
|
| 154 |
+
- slidevqa
|
._____temp/OpenDocVQA-Corpus/README.md
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
- config_name: all
|
| 4 |
+
features:
|
| 5 |
+
- name: doc_id
|
| 6 |
+
dtype: string
|
| 7 |
+
- name: image
|
| 8 |
+
dtype: image
|
| 9 |
+
- name: dataset_name
|
| 10 |
+
dtype: string
|
| 11 |
+
splits:
|
| 12 |
+
- name: test
|
| 13 |
+
num_bytes: 33863176699.362
|
| 14 |
+
num_examples: 206267
|
| 15 |
+
download_size: 39444733971
|
| 16 |
+
dataset_size: 33863176699.362
|
| 17 |
+
- config_name: chartqa
|
| 18 |
+
features:
|
| 19 |
+
- name: doc_id
|
| 20 |
+
dtype: string
|
| 21 |
+
- name: image
|
| 22 |
+
dtype: image
|
| 23 |
+
- name: dataset_name
|
| 24 |
+
dtype: string
|
| 25 |
+
splits:
|
| 26 |
+
- name: test
|
| 27 |
+
num_bytes: 1002602606.782
|
| 28 |
+
num_examples: 20882
|
| 29 |
+
download_size: 955114086
|
| 30 |
+
dataset_size: 1002602606.782
|
| 31 |
+
- config_name: default
|
| 32 |
+
features:
|
| 33 |
+
- name: doc_id
|
| 34 |
+
dtype: string
|
| 35 |
+
- name: image
|
| 36 |
+
dtype: image
|
| 37 |
+
- name: dataset_name
|
| 38 |
+
dtype: string
|
| 39 |
+
splits:
|
| 40 |
+
- name: train
|
| 41 |
+
num_bytes: 1957342799.05
|
| 42 |
+
num_examples: 12230
|
| 43 |
+
download_size: 5075559665
|
| 44 |
+
dataset_size: 1957342799.05
|
| 45 |
+
- config_name: dude
|
| 46 |
+
features:
|
| 47 |
+
- name: doc_id
|
| 48 |
+
dtype: string
|
| 49 |
+
- name: image
|
| 50 |
+
dtype: image
|
| 51 |
+
- name: dataset_name
|
| 52 |
+
dtype: string
|
| 53 |
+
splits:
|
| 54 |
+
- name: test
|
| 55 |
+
num_bytes: 10850355002.6
|
| 56 |
+
num_examples: 27955
|
| 57 |
+
download_size: 9918891043
|
| 58 |
+
dataset_size: 10850355002.6
|
| 59 |
+
- config_name: infovqa
|
| 60 |
+
features:
|
| 61 |
+
- name: doc_id
|
| 62 |
+
dtype: string
|
| 63 |
+
- name: image
|
| 64 |
+
dtype: image
|
| 65 |
+
- name: dataset_name
|
| 66 |
+
dtype: string
|
| 67 |
+
splits:
|
| 68 |
+
- name: test
|
| 69 |
+
num_bytes: 2037249851.38
|
| 70 |
+
num_examples: 5485
|
| 71 |
+
download_size: 1821864668
|
| 72 |
+
dataset_size: 2037249851.38
|
| 73 |
+
- config_name: slidevqa
|
| 74 |
+
features:
|
| 75 |
+
- name: doc_id
|
| 76 |
+
dtype: string
|
| 77 |
+
- name: image
|
| 78 |
+
dtype: image
|
| 79 |
+
- name: dataset_name
|
| 80 |
+
dtype: string
|
| 81 |
+
splits:
|
| 82 |
+
- name: test
|
| 83 |
+
num_bytes: 6852775381.32
|
| 84 |
+
num_examples: 52380
|
| 85 |
+
download_size: 6477479204
|
| 86 |
+
dataset_size: 6852775381.32
|
| 87 |
+
configs:
|
| 88 |
+
- config_name: all
|
| 89 |
+
data_files:
|
| 90 |
+
- split: test
|
| 91 |
+
path: all/test-*
|
| 92 |
+
- config_name: chartqa
|
| 93 |
+
data_files:
|
| 94 |
+
- split: test
|
| 95 |
+
path: chartqa/test-*
|
| 96 |
+
- config_name: default
|
| 97 |
+
data_files:
|
| 98 |
+
- split: train
|
| 99 |
+
path: data/train-*
|
| 100 |
+
- config_name: dude
|
| 101 |
+
data_files:
|
| 102 |
+
- split: test
|
| 103 |
+
path: dude/test-*
|
| 104 |
+
- config_name: infovqa
|
| 105 |
+
data_files:
|
| 106 |
+
- split: test
|
| 107 |
+
path: infovqa/test-*
|
| 108 |
+
- config_name: slidevqa
|
| 109 |
+
data_files:
|
| 110 |
+
- split: test
|
| 111 |
+
path: slidevqa/test-*
|
| 112 |
+
task_categories:
|
| 113 |
+
- visual-question-answering
|
| 114 |
+
- question-answering
|
| 115 |
+
language:
|
| 116 |
+
- en
|
| 117 |
+
size_categories:
|
| 118 |
+
- 100K<n<1M
|
| 119 |
+
extra_gated_prompt: "1.The researcher agrees to the following terms and conditions\
|
| 120 |
+
\ of data sources:\n* DocVQA: https://rrc.cvc.uab.es/?ch=17&com=downloads\n* InfoVQA:\
|
| 121 |
+
\ https://rrc.cvc.uab.es/?ch=17&com=downloads\n\n2.VisualMRC and SlideVQA datasets\
|
| 122 |
+
\ should only be used under the following NTT License.\n### SOFTWARE LICENSE AGREEMENT\
|
| 123 |
+
\ FOR EVALUATION\nThis SOFTWARE EVALUATION LICENSE AGREEMENT (this \"Agreement\"\
|
| 124 |
+
) is a legal contract between a person who uses or otherwise accesses or installs\
|
| 125 |
+
\ the Software (\"User(s)\"), and Nippon Telegraph and Telephone corporation (\"\
|
| 126 |
+
NTT\"). READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY BEFORE INSTALLING\
|
| 127 |
+
\ OR OTHERWISE ACCESSING OR USING NTT'S PROPRIETARY SOFTWARE ACCOMPANIED BY THIS\
|
| 128 |
+
\ AGREEMENT (the \"SOFTWARE\"). THE SOFTWARE IS COPYRIGHTED AND IT IS LICENSED TO\
|
| 129 |
+
\ USER UNDER THIS AGREEMENT, NOT SOLD TO USER. BY INSTALLING OR OTHERWISE ACCESSING\
|
| 130 |
+
\ OR USING THE SOFTWARE, USER ACKNOWLEDGES THAT USER HAS READ THIS AGREEMENT, THAT\
|
| 131 |
+
\ USER UNDERSTANDS IT, AND THAT USER ACCEPTS AND AGREES TO BE BOUND BY ITS TERMS.\
|
| 132 |
+
\ IF AT ANY TIME USER IS NOT WILLING TO BE BOUND BY THE TERMS OF THIS AGREEMENT,\
|
| 133 |
+
\ USER SHOULD TERMINATE THE INSTALLATION PROCESS, IMMEDIATELY CEASE AND REFRAIN\
|
| 134 |
+
\ FROM ACCESSING OR USING THE SOFTWARE AND DELETE ANY COPIES USER MAY HAVE. THIS\
|
| 135 |
+
\ AGREEMENT REPRESENTS THE ENTIRE AGREEMENT BETWEEN USER AND NTT CONCERNING THE\
|
| 136 |
+
\ SOFTWARE.\n \n## BACKGROUND\nA. NTT is the owner of all rights, including all\
|
| 137 |
+
\ patent rights, copyrights and trade secret rights, in and to the Software and\
|
| 138 |
+
\ related documentation listed in Exhibit A to this Agreement.\nB. User wishes to\
|
| 139 |
+
\ obtain a royalty free license to use the Software to enable User to evaluate,\
|
| 140 |
+
\ and NTT wishes to grant such a license to User, pursuant and subject to the terms\
|
| 141 |
+
\ and conditions of this Agreement.\nC. As a condition to NTT's provision of the\
|
| 142 |
+
\ Software to User, NTT has required User to execute this Agreement.\nIn consideration\
|
| 143 |
+
\ of these premises, and the mutual promises and conditions in this Agreement, the\
|
| 144 |
+
\ parties hereby agree as follows:\n1. Grant of Evaluation License. NTT hereby grants\
|
| 145 |
+
\ to User, and User hereby accepts, under the terms and conditions of this Agreement,\
|
| 146 |
+
\ a royalty free, nontransferable and nonexclusive license to use the Software internally\
|
| 147 |
+
\ for the purposes of testing, analyzing, and evaluating the methods or mechanisms\
|
| 148 |
+
\ as shown in the research paper submitted by NTT to a certain academy. User may\
|
| 149 |
+
\ make a reasonable number of backup copies of the Software solely for User's internal\
|
| 150 |
+
\ use pursuant to the license granted in this Section 1.\n2. Shipment and Installation.\
|
| 151 |
+
\ NTT will ship or deliver the Software by any method that NTT deems appropriate.\
|
| 152 |
+
\ User shall be solely responsible for proper installation of the Software.\n3.\
|
| 153 |
+
\ Term. This Agreement is effective whichever is earlier (i) upon User's acceptance\
|
| 154 |
+
\ of the Agreement, or (ii) upon User's installing, accessing, and using the Software,\
|
| 155 |
+
\ even if User has not expressly accepted this Agreement. Without prejudice to any\
|
| 156 |
+
\ other rights, NTT may terminate this Agreement without notice to User (i) if User\
|
| 157 |
+
\ breaches or fails to comply with any of the limitations or other requirements\
|
| 158 |
+
\ described herein, and (ii) if NTT receives a notice from the academy stating that\
|
| 159 |
+
\ the research paper would not be published, and in any such case User agrees that\
|
| 160 |
+
\ NTT may, in addition to any other remedies it may have at law or in equity, remotely\
|
| 161 |
+
\ disable the Software. User may terminate this Agreement at any time by User's\
|
| 162 |
+
\ decision to terminate the Agreement to NTT and ceasing use of the Software. Upon\
|
| 163 |
+
\ any termination or expiration of this Agreement for any reason, User agrees to\
|
| 164 |
+
\ uninstall the Software and either return to NTT the Software and all copies thereof,\
|
| 165 |
+
\ or to destroy all such materials and provide written verification of such destruction\
|
| 166 |
+
\ to NTT.\n4. Proprietary Rights\n(a) The Software is the valuable, confidential,\
|
| 167 |
+
\ and proprietary property of NTT, and NTT shall retain exclusive title to this\
|
| 168 |
+
\ property both during the term and after the termination of this Agreement. Without\
|
| 169 |
+
\ limitation, User acknowledges that all patent rights, copyrights and trade secret\
|
| 170 |
+
\ rights in the Software shall remain the exclusive property of NTT at all times.\
|
| 171 |
+
\ User shall use not less than reasonable care in safeguarding the confidentiality\
|
| 172 |
+
\ of the Software. \n(b) USER SHALL NOT, IN WHOLE OR IN PART, AT ANY TIME DURING\
|
| 173 |
+
\ THE TERM OF OR AFTER THE TERMINATION OF THIS AGREEMENT: (i) SELL, ASSIGN, LEASE,\
|
| 174 |
+
\ DISTRIBUTE, OR OTHERWISE TRANSFER THE SOFTWARE TO ANY THIRD PARTY; (ii) EXCEPT\
|
| 175 |
+
\ AS OTHERWISE PROVIDED HEREIN, COPY OR REPRODUCE THE SOFTWARE IN ANY MANNER; (iii)\
|
| 176 |
+
\ DISCLOSE THE SOFTWARE TO ANY THIRD PARTY, EXCEPT TO USER'S EMPLOYEES WHO REQUIRE\
|
| 177 |
+
\ ACCESS TO THE SOFTWARE FOR THE PURPOSES OF THIS AGREEMENT; (iv) MODIFY, DISASSEMBLE,\
|
| 178 |
+
\ DECOMPILE, REVERSE ENGINEER OR TRANSLATE THE SOFTWARE; OR (v) ALLOW ANY PERSON\
|
| 179 |
+
\ OR ENTITY TO COMMIT ANY OF THE ACTIONS DESCRIBED IN (i) THROUGH (iv) ABOVE.\n\
|
| 180 |
+
(c) User shall take appropriate action, by instruction, agreement, or otherwise,\
|
| 181 |
+
\ with respect to its employees permitted under this Agreement to have access to\
|
| 182 |
+
\ the Software to ensure that all of User's obligations under this Section 4 shall\
|
| 183 |
+
\ be satisfied. \n5. Indemnity. User shall defend, indemnify and hold harmless\
|
| 184 |
+
\ NTT, its agents and employees, from any loss, damage, or liability arising in\
|
| 185 |
+
\ connection with User's improper or unauthorized use of the Software. NTT SHALL\
|
| 186 |
+
\ HAVE THE SOLE RIGHT TO CONDUCT DEFEND ANY ACTTION RELATING TO THE SOFTWARE.\n\
|
| 187 |
+
6. Disclaimer. THE SOFTWARE IS LICENSED TO USER \"AS IS,\" WITHOUT ANY TRAINING,\
|
| 188 |
+
\ MAINTENANCE, OR SERVICE OBLIGATIONS WHATSOEVER ON THE PART OF NTT. NTT MAKES NO\
|
| 189 |
+
\ EXPRESS OR IMPLIED WARRANTIES OF ANY TYPE WHATSOEVER, INCLUDING WITHOUT LIMITATION\
|
| 190 |
+
\ THE IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR PURPOSE\
|
| 191 |
+
\ AND OF NON-INFRINGEMENT ON COPYRIGHT OR ANY OTHER RIGHT OF THIRD PARTIES. USER\
|
| 192 |
+
\ ASSUMES ALL RISKS ASSOCIATED WITH ITS USE OF THE SOFTWARE, INCLUDING WITHOUT LIMITATION\
|
| 193 |
+
\ RISKS RELATING TO QUALITY, PERFORMANCE, DATA LOSS, AND UTILITY IN A PRODUCTION\
|
| 194 |
+
\ ENVIRONMENT. \n7. Limitation of Liability. IN NO EVENT SHALL NTT BE LIABLE TO\
|
| 195 |
+
\ USER OR TO ANY THIRD PARTY FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL\
|
| 196 |
+
\ DAMAGES, INCLUDING BUT NOT LIMITED TO DAMAGES FOR PERSONAL INJURY, PROPERTY DAMAGE,\
|
| 197 |
+
\ LOST PROFITS, OR OTHER ECONOMIC LOSS, ARISING IN CONNECTION WITH USER'S USE OF\
|
| 198 |
+
\ OR INABILITY TO USE THE SOFTWARE, IN CONNECTION WITH NTT'S PROVISION OF OR FAILURE\
|
| 199 |
+
\ TO PROVIDE SERVICES PERTAINING TO THE SOFTWARE, OR AS A RESULT OF ANY DEFECT IN\
|
| 200 |
+
\ THE SOFTWARE. THIS DISCLAIMER OF LIABILITY SHALL APPLY REGARD¬LESS OF THE FORM\
|
| 201 |
+
\ OF ACTION THAT MAY BE BROUGHT AGAINST NTT, WHETHER IN CONTRACT OR TORT, INCLUDING\
|
| 202 |
+
\ WITHOUT LIMITATION ANY ACTION FOR NEGLIGENCE. USER'S SOLE REMEDY IN THE EVENT\
|
| 203 |
+
\ OF ANY BREACH OF THIS AGREEMENT BY NTT SHALL BE TERMINATION PURSUANT TO SECTION\
|
| 204 |
+
\ 3.\n8. No Assignment or Sublicense. Neither this Agreement nor any right or license\
|
| 205 |
+
\ under this Agreement, nor the Software, may be sublicensed, assigned, or otherwise\
|
| 206 |
+
\ transferred by User without NTT's prior written consent.\n9. General\n(a) If any\
|
| 207 |
+
\ provision, or part of a provision, of this Agreement is or becomes illegal, unenforceable,\
|
| 208 |
+
\ or invalidated, by operation of law or otherwise, that provision or part shall\
|
| 209 |
+
\ to that extent be deemed omitted, and the remainder of this Agreement shall remain\
|
| 210 |
+
\ in full force and effect.\n(b) This Agreement is the complete and exclusive statement\
|
| 211 |
+
\ of the agreement between the parties with respect to the subject matter hereof,\
|
| 212 |
+
\ and supersedes all written and oral contracts, proposals, and other communications\
|
| 213 |
+
\ between the parties relating to that subject matter. \n(c) Subject to Section\
|
| 214 |
+
\ 8, this Agreement shall be binding on, and shall inure to the benefit of, the\
|
| 215 |
+
\ respective successors and assigns of NTT and User. \n(d) If either party to this\
|
| 216 |
+
\ Agreement initiates a legal action or proceeding to enforce or interpret any part\
|
| 217 |
+
\ of this Agreement, the prevailing party in such action shall be entitled to recover,\
|
| 218 |
+
\ as an element of the costs of such action and not as damages, its attorneys' fees\
|
| 219 |
+
\ and other costs associated with such action or proceeding.\n(e) This Agreement\
|
| 220 |
+
\ shall be governed by and interpreted under the laws of Japan, without reference\
|
| 221 |
+
\ to conflicts of law principles. All disputes arising out of or in connection with\
|
| 222 |
+
\ this Agreement shall be finally settled by arbitration in Tokyo in accordance\
|
| 223 |
+
\ with the Commercial Arbitration Rules of the Japan Commercial Arbitration Association.\
|
| 224 |
+
\ The arbitration shall be conducted by three (3) arbitrators and in Japanese.\
|
| 225 |
+
\ The award rendered by the arbitrators shall be final and binding upon the parties.\
|
| 226 |
+
\ Judgment upon the award may be entered in any court having jurisdiction thereof.\n\
|
| 227 |
+
(f) NTT shall not be liable to the User or to any third party for any delay or failure\
|
| 228 |
+
\ to perform NTT's obligation set forth under this Agreement due to any cause beyond\
|
| 229 |
+
\ NTT's reasonable control.\nEXHIBIT A\nThe software and related data include the\
|
| 230 |
+
\ following files,\n* data (visualmrc)\n* all(visualmrc, slidevqa)\n* slidevqa"
|
| 231 |
+
extra_gated_fields:
|
| 232 |
+
By clicking Submit below, I accept the terms of the conditions and license: checkbox
|
| 233 |
+
extra_gated_button_content: Submit
|
| 234 |
+
---
|
| 235 |
+
# Dataset Card for OpenDocVQA
|
| 236 |
+
This is a training and evaluation corpus data file for [VDocRAG](https://vdocrag.github.io/), a new RAG framework that can directly understand diverse real-world documents purely from visual features.
|
| 237 |
+
|
| 238 |
+
## Dataset Description
|
| 239 |
+
|
| 240 |
+
OpenDocVQA is the first unified collection of open-domain document visual question answering datasets, encompassing diverse document types and formats.
|
| 241 |
+
|
| 242 |
+
#### Supported Tasks and Leaderboards
|
| 243 |
+
Given a large collection of document images and a question, the goal of the OpenDocVQA task is to output an answer by finding the relevant images. We decompose the task into two stages.
|
| 244 |
+
|
| 245 |
+
- **Visual document retrieval**: Given a question and a corpus of document images, the model retrieves the relevant images from which to derive the answer.
|
| 246 |
+
- **DocumentVQA**: The model takes a question and the retrieved images as input to generate an answer.
|
| 247 |
+
|
| 248 |
+
OpenDocVQA covers multiple open-domain DocumentVQA datasets with diverse document types. To reflect real-world scenarios, we evaluate models with both single-pool and all-pool settings.
|
| 249 |
+
In the single-pool setting, retrieval is performed from a specific pool of documents provided by each original dataset. The all-pool setting requires retrieving from the entire candidate pool, which includes documents from a wide range of domains.
|
| 250 |
+
|
| 251 |
+
#### Languages
|
| 252 |
+
English
|
| 253 |
+
|
| 254 |
+
## Dataset Structure
|
| 255 |
+
|
| 256 |
+
### Data Instances
|
| 257 |
+
```json
|
| 258 |
+
{
|
| 259 |
+
'doc_id': 'visualmrc/okfn.org/__about__press__releases__open-revolution-rewriting-rules-information-age01.png',
|
| 260 |
+
'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=715x433 at 0x7F07E2565750>,
|
| 261 |
+
'dataset_name': 'visualmrc'
|
| 262 |
+
}
|
| 263 |
+
```
|
| 264 |
+
|
| 265 |
+
### Data Fields
|
| 266 |
+
An example of a sample looks as follows:
|
| 267 |
+
```json
|
| 268 |
+
{
|
| 269 |
+
'doc_id': Document ID,
|
| 270 |
+
'image': PIL.Image,
|
| 271 |
+
'dataset_name': Source dataset name
|
| 272 |
+
}
|
| 273 |
+
```
|
| 274 |
+
|
| 275 |
+
### Stats about the datasets in The OpenDocVQA
|
| 276 |
+
|
| 277 |
+
| Dataset | Documents | # images | # Train&Dev | # Test |
|
| 278 |
+
|----------------------|-----------|----------|-------------|---------|
|
| 279 |
+
| DocVQA | Industry | 12,767 | 6,382 | - |
|
| 280 |
+
| InfoVQA | Infographic | 5,485 | 9,592 | 1,048 |
|
| 281 |
+
| VisualMRC | Webpage | 10,229 | 6,126 | - |
|
| 282 |
+
| ChartQA | Chart | 20,882 | - | 150 |
|
| 283 |
+
| OpenWikitable | Table | 1,257 | 4,261 | - |
|
| 284 |
+
| DUDE | Open | 27,955 | 2,135 | 496 |
|
| 285 |
+
| MPMQA | Manual | 10,018 | 3,054 | - |
|
| 286 |
+
| SlideVQA | Slide | 52,380 | - | 760 |
|
| 287 |
+
| MHDocVQA (newly created) | Open | 28,550 | 9,470 | - |
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
## Additional Information
|
| 292 |
+
|
| 293 |
+
### License
|
| 294 |
+
Each of the publicly available sub-datasets present in the OpenDocVQA is governed by specific licensing conditions.
|
| 295 |
+
Therefore, when making use of them, you must take into consideration each of the licenses governing each dataset.
|
| 296 |
+
|
| 297 |
+
The images of VisualMRC and SlideVQA datasets in this repo are released under the [NTT License](https://huggingface.co/NTT-hil-insight/OpenDocVQA/edit/main/LICENSE).
|
| 298 |
+
|
| 299 |
+
### Citation
|
| 300 |
+
```bibtex
|
| 301 |
+
@inproceedings{tanaka2025vdocrag,
|
| 302 |
+
author = {Ryota Tanaka and
|
| 303 |
+
Taichi Iki and
|
| 304 |
+
Taku Hasegawa and
|
| 305 |
+
Kyosuke Nishida and
|
| 306 |
+
Kuniko Saito and
|
| 307 |
+
Jun Suzuki},
|
| 308 |
+
title = {VDocRAG: Retrieval-Augmented Generation over Visually-Rich Documents},
|
| 309 |
+
booktitle = {CVPR},
|
| 310 |
+
year = {2025}
|
| 311 |
+
}
|
| 312 |
+
```
|
._____temp/OpenDocVQA-Corpus/arxivqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e28e79a2794d632254c274c75ae0af97d8b50c0a06f9c21dfcaa4605969a389b
|
| 3 |
+
size 1264589020
|
._____temp/OpenDocVQA-Corpus/chartqa/test-00000-of-00003.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45ea3676bf562e1ee713306f8541fe626ec014e2fb8ef837ddb2e8a8f4219ca3
|
| 3 |
+
size 318339473
|
._____temp/OpenDocVQA-Corpus/chartqa/test-00001-of-00003.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be7e3e474a9b736a3e95049fc25b5e34e92a2d782adb0d1ea4dc3cc8270c4d6d
|
| 3 |
+
size 320324734
|
._____temp/OpenDocVQA-Corpus/chartqa/test-00002-of-00003.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc55db6c58001c1fa0b3b74d1e111edd3f291bd8519b109e503fbdfa49aea265
|
| 3 |
+
size 316449879
|
._____temp/OpenDocVQA-Corpus/data/train-00000-of-00004.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e6e6d402303edd877345707663077a91c7d997977fd553ca9db1c2550d2b7cd
|
| 3 |
+
size 645325561
|
._____temp/OpenDocVQA-Corpus/data/train-00001-of-00004.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2da20d0b40ed0410211e07b5d67705f9c9aea178447f2ded58fd20c9e0f1d11f
|
| 3 |
+
size 2013239158
|
._____temp/OpenDocVQA-Corpus/data/train-00002-of-00004.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1bbdf2633fba669317b5fa44fea5a8e5e09eaebac0ab52f5b5cc2b9e8a10aea1
|
| 3 |
+
size 1420339980
|
._____temp/OpenDocVQA-Corpus/data/train-00003-of-00004.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ef1c1a91397cfd75fa6b795ebd77c24034aee3f6fb93442897ccf36a9ec233c
|
| 3 |
+
size 996654966
|
._____temp/OpenDocVQA-Corpus/docvqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17e14fd7fbaa85eae494c64d92aad644c1b4a576a96ed560934215e3e0af5223
|
| 3 |
+
size 269545940
|
._____temp/OpenDocVQA-Corpus/infovqa/test-00000-of-00005.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1780635fff946bf0c285f84af2e25da789b169fa74a43bbb91af4b34214dc087
|
| 3 |
+
size 377434520
|
._____temp/OpenDocVQA-Corpus/infovqa/test-00001-of-00005.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fa2b8586e21bf65a5beb5addc7b2192f48531505e8d69eb1b50914a56b74759
|
| 3 |
+
size 346296240
|
._____temp/OpenDocVQA-Corpus/infovqa/test-00002-of-00005.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc540db6d9dc686fcefe5a781b9d5ab3b7343894aeca740dc33c36e19ec74248
|
| 3 |
+
size 350864547
|
._____temp/OpenDocVQA-Corpus/infovqa/test-00003-of-00005.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfe71a190887c2f2a93a05908639d0f74f5b72e390695cef5a5411991b70c16d
|
| 3 |
+
size 371823578
|
._____temp/OpenDocVQA-Corpus/infovqa/test-00004-of-00005.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b05ef14979d13825a6ebaa3e0094b0159b945b5aaa4650c7049565c5582e0933
|
| 3 |
+
size 375445783
|
._____temp/OpenDocVQA-Corpus/plotqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3a2613d6e75e6c224ee21db467986baeb78bb779f01e9954ef110e7a4bcc0de
|
| 3 |
+
size 288962588
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00000-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca6221ed350307e8a73800f7c27aa882cf673396a98651ce1395844d5dc36e56
|
| 3 |
+
size 465364294
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00001-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0f8998998160477474837262abacf8b42ae9ef7a4ebc15e92b870dd455a97b4
|
| 3 |
+
size 454833814
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00002-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5101c1667b7c981aebab9dd200e8653544044f714c55d42de69b3a48d992b2de
|
| 3 |
+
size 444441667
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00003-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:885e88ba4aee8d3335e9ce6d62d03397086dd5250326761ed8bf92bb8a577d7d
|
| 3 |
+
size 444198913
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00004-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa751c6ad7bbbf53920f3184805fce11bd33c6095b5ced782bc5a8ad73558ce2
|
| 3 |
+
size 478166364
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00005-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6a7d276ace5119b61f927ca39619f1a714e37635ad4177b017c6cb404f098e1
|
| 3 |
+
size 479139422
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00006-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:224a63afa980a6d38b2df4cff347d4178151210fa9aa51c6091e9d9793869449
|
| 3 |
+
size 457281831
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00007-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2920a8f62abbd39226ce3f248aea0c7350c36a35657062d2e924a064151dbee7
|
| 3 |
+
size 458576702
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00008-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:432b928d93de8ece535a09ef3d8220d012514f7da5ad1b367cf130b651bfde94
|
| 3 |
+
size 457065706
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00009-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47c2857b3eb7a11625b26d93a306ec3c68463c4e3c11ece89c862ed1a6acebc1
|
| 3 |
+
size 467393279
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00010-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2b448f68a1e4052b7aeef0bb83c9d0b5444c9955666a24693abdc311c059194
|
| 3 |
+
size 441900801
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00011-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:862fe5bb85ab2be238a0bed710467a0a481faa615869ec41e1ca9fae4be77996
|
| 3 |
+
size 458455546
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00012-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:941bc2e177d56454e7b6ec8d6d72e9d55f5010faa13d77ca66a1bfbee879c7fa
|
| 3 |
+
size 479975187
|
._____temp/OpenDocVQA-Corpus/slidevqa/test-00013-of-00014.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80825ecb0889e5d6423a8d3fc89905f1516d31145f3580ee75b1a48bf9dcf4bd
|
| 3 |
+
size 490685678
|
._____temp/OpenDocVQA/.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
._____temp/OpenDocVQA/LICENSE
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SOFTWARE LICENSE AGREEMENT FOR EVALUATION
|
| 2 |
+
|
| 3 |
+
This SOFTWARE EVALUATION LICENSE AGREEMENT (this "Agreement") is a legal
|
| 4 |
+
contract between a person who uses or otherwise accesses or installs the
|
| 5 |
+
Software ("User(s)"), and Nippon Telegraph and Telephone corporation ("NTT").
|
| 6 |
+
READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY BEFORE INSTALLING OR
|
| 7 |
+
OTHERWISE ACCESSING OR USING NTT'S PROPRIETARY SOFTWARE ACCOMPANIED BY THIS
|
| 8 |
+
AGREEMENT (the "SOFTWARE"). THE SOFTWARE IS COPYRIGHTED AND IT IS LICENSED TO
|
| 9 |
+
USER UNDER THIS AGREEMENT, NOT SOLD TO USER. BY INSTALLING OR OTHERWISE
|
| 10 |
+
ACCESSING OR USING THE SOFTWARE, USER ACKNOWLEDGES THAT USER HAS READ THIS
|
| 11 |
+
AGREEMENT, THAT USER UNDERSTANDS IT, AND THAT USER ACCEPTS AND AGREES TO BE
|
| 12 |
+
BOUND BY ITS TERMS. IF AT ANY TIME USER IS NOT WILLING TO BE BOUND BY THE
|
| 13 |
+
TERMS OF THIS AGREEMENT, USER SHOULD TERMINATE THE INSTALLATION PROCESS,
|
| 14 |
+
IMMEDIATELY CEASE AND REFRAIN FROM ACCESSING OR USING THE SOFTWARE AND DELETE
|
| 15 |
+
ANY COPIES USER MAY HAVE. THIS AGREEMENT REPRESENTS THE ENTIRE AGREEMENT
|
| 16 |
+
BETWEEN USER AND NTT CONCERNING THE SOFTWARE.
|
| 17 |
+
|
| 18 |
+
BACKGROUND
|
| 19 |
+
|
| 20 |
+
A. NTT is the owner of all rights, including all patent rights, copyrights and
|
| 21 |
+
trade secret rights, in and to the Software and related documentation listed
|
| 22 |
+
in Exhibit A to this Agreement.
|
| 23 |
+
|
| 24 |
+
B. User wishes to obtain a royalty free license to use the Software to enable
|
| 25 |
+
User to evaluate, and NTT wishes to grant such a license to User, pursuant and
|
| 26 |
+
subject to the terms and conditions of this Agreement.
|
| 27 |
+
|
| 28 |
+
C. As a condition to NTT's provision of the Software to User, NTT has required
|
| 29 |
+
User to execute this Agreement.
|
| 30 |
+
|
| 31 |
+
In consideration of these premises, and the mutual promises and conditions in
|
| 32 |
+
this Agreement, the parties hereby agree as follows:
|
| 33 |
+
|
| 34 |
+
1. Grant of Evaluation License. NTT hereby grants to User, and User hereby
|
| 35 |
+
accepts, under the terms and conditions of this Agreement, a royalty free,
|
| 36 |
+
nontransferable and nonexclusive license to use the Software internally for
|
| 37 |
+
the purposes of testing, analyzing, and evaluating the methods or mechanisms
|
| 38 |
+
as shown in the research paper submitted by NTT to a certain academy. User may
|
| 39 |
+
make a reasonable number of backup copies of the Software solely for User's
|
| 40 |
+
internal use pursuant to the license granted in this Section 1.
|
| 41 |
+
|
| 42 |
+
2. Shipment and Installation. NTT will ship or deliver the Software by any
|
| 43 |
+
method that NTT deems appropriate. User shall be solely responsible for proper
|
| 44 |
+
installation of the Software.
|
| 45 |
+
|
| 46 |
+
3. Term. This Agreement is effective whichever is earlier (i) upon User's
|
| 47 |
+
acceptance of the Agreement, or (ii) upon User's installing, accessing, and
|
| 48 |
+
using the Software, even if User has not expressly accepted this Agreement.
|
| 49 |
+
Without prejudice to any other rights, NTT may terminate this Agreement
|
| 50 |
+
without notice to User (i) if User breaches or fails to comply with any of the
|
| 51 |
+
limitations or other requirements described herein, and (ii) if NTT receives a
|
| 52 |
+
notice from the academy stating that the research paper would not be
|
| 53 |
+
published, and in any such case User agrees that NTT may, in addition to any
|
| 54 |
+
other remedies it may have at law or in equity, remotely disable the Software.
|
| 55 |
+
User may terminate this Agreement at any time by User's decision to terminate
|
| 56 |
+
the Agreement to NTT and ceasing use of the Software. Upon any termination or
|
| 57 |
+
expiration of this Agreement for any reason, User agrees to uninstall the
|
| 58 |
+
Software and either return to NTT the Software and all copies thereof, or to
|
| 59 |
+
destroy all such materials and provide written verification of such
|
| 60 |
+
destruction to NTT.
|
| 61 |
+
|
| 62 |
+
4. Proprietary Rights
|
| 63 |
+
|
| 64 |
+
(a) The Software is the valuable, confidential, and proprietary property of
|
| 65 |
+
NTT, and NTT shall retain exclusive title to this property both during the
|
| 66 |
+
term and after the termination of this Agreement. Without limitation, User
|
| 67 |
+
acknowledges that all patent rights, copyrights and trade secret rights in the
|
| 68 |
+
Software shall remain the exclusive property of NTT at all times. User shall
|
| 69 |
+
use not less than reasonable care in safeguarding the confidentiality of the
|
| 70 |
+
Software.
|
| 71 |
+
|
| 72 |
+
(b) USER SHALL NOT, IN WHOLE OR IN PART, AT ANY TIME DURING THE TERM OF OR
|
| 73 |
+
AFTER THE TERMINATION OF THIS AGREEMENT: (i) SELL, ASSIGN, LEASE, DISTRIBUTE,
|
| 74 |
+
OR OTHERWISE TRANSFER THE SOFTWARE TO ANY THIRD PARTY; (ii) EXCEPT AS
|
| 75 |
+
OTHERWISE PROVIDED HEREIN, COPY OR REPRODUCE THE SOFTWARE IN ANY MANNER; (iii)
|
| 76 |
+
DISCLOSE THE SOFTWARE TO ANY THIRD PARTY, EXCEPT TO USER'S EMPLOYEES WHO
|
| 77 |
+
REQUIRE ACCESS TO THE SOFTWARE FOR THE PURPOSES OF THIS AGREEMENT; (iv)
|
| 78 |
+
MODIFY, DISASSEMBLE, DECOMPILE, REVERSE ENGINEER OR TRANSLATE THE SOFTWARE; OR
|
| 79 |
+
(v) ALLOW ANY PERSON OR ENTITY TO COMMIT ANY OF THE ACTIONS DESCRIBED IN (i)
|
| 80 |
+
THROUGH (iv) ABOVE.
|
| 81 |
+
|
| 82 |
+
(c) User shall take appropriate action, by instruction, agreement, or
|
| 83 |
+
otherwise, with respect to its employees permitted under this Agreement to
|
| 84 |
+
have access to the Software to ensure that all of User's obligations under
|
| 85 |
+
this Section 4 shall be satisfied.
|
| 86 |
+
|
| 87 |
+
5. Indemnity. User shall defend, indemnify and hold harmless NTT, its agents
|
| 88 |
+
and employees, from any loss, damage, or liability arising in connection with
|
| 89 |
+
User's improper or unauthorized use of the Software. NTT SHALL HAVE THE SOLE
|
| 90 |
+
RIGHT TO CONDUCT DEFEND ANY ACTTION RELATING TO THE SOFTWARE.
|
| 91 |
+
|
| 92 |
+
6. Disclaimer. THE SOFTWARE IS LICENSED TO USER "AS IS," WITHOUT ANY
|
| 93 |
+
TRAINING, MAINTENANCE, OR SERVICE OBLIGATIONS WHATSOEVER ON THE PART OF NTT.
|
| 94 |
+
NTT MAKES NO EXPRESS OR IMPLIED WARRANTIES OF ANY TYPE WHATSOEVER, INCLUDING
|
| 95 |
+
WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A
|
| 96 |
+
PARTICULAR PURPOSE AND OF NON-INFRINGEMENT ON COPYRIGHT OR ANY OTHER RIGHT OF
|
| 97 |
+
THIRD PARTIES. USER ASSUMES ALL RISKS ASSOCIATED WITH ITS USE OF THE
|
| 98 |
+
SOFTWARE, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, PERFORMANCE,
|
| 99 |
+
DATA LOSS, AND UTILITY IN A PRODUCTION ENVIRONMENT.
|
| 100 |
+
|
| 101 |
+
7. Limitation of Liability. IN NO EVENT SHALL NTT BE LIABLE TO USER OR TO ANY
|
| 102 |
+
THIRD PARTY FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
| 103 |
+
INCLUDING BUT NOT LIMITED TO DAMAGES FOR PERSONAL INJURY, PROPERTY DAMAGE,
|
| 104 |
+
LOST PROFITS, OR OTHER ECONOMIC LOSS, ARISING IN CONNECTION WITH USER'S USE OF
|
| 105 |
+
OR INABILITY TO USE THE SOFTWARE, IN CONNECTION WITH NTT'S PROVISION OF OR
|
| 106 |
+
FAILURE TO PROVIDE SERVICES PERTAINING TO THE SOFTWARE, OR AS A RESULT OF ANY
|
| 107 |
+
DEFECT IN THE SOFTWARE. THIS DISCLAIMER OF LIABILITY SHALL APPLY REGARD¬LESS
|
| 108 |
+
OF THE FORM OF ACTION THAT MAY BE BROUGHT AGAINST NTT, WHETHER IN CONTRACT OR
|
| 109 |
+
TORT, INCLUDING WITHOUT LIMITATION ANY ACTION FOR NEGLIGENCE. USER'S SOLE
|
| 110 |
+
REMEDY IN THE EVENT OF ANY BREACH OF THIS AGREEMENT BY NTT SHALL BE
|
| 111 |
+
TERMINATION PURSUANT TO SECTION 3.
|
| 112 |
+
|
| 113 |
+
8. No Assignment or Sublicense. Neither this Agreement nor any right or
|
| 114 |
+
license under this Agreement, nor the Software, may be sublicensed, assigned,
|
| 115 |
+
or otherwise transferred by User without NTT's prior written consent.
|
| 116 |
+
|
| 117 |
+
9. General
|
| 118 |
+
|
| 119 |
+
(a) If any provision, or part of a provision, of this Agreement is or becomes
|
| 120 |
+
illegal, unenforceable, or invalidated, by operation of law or otherwise, that
|
| 121 |
+
provision or part shall to that extent be deemed omitted, and the remainder of
|
| 122 |
+
this Agreement shall remain in full force and effect.
|
| 123 |
+
|
| 124 |
+
(b) This Agreement is the complete and exclusive statement of the agreement
|
| 125 |
+
between the parties with respect to the subject matter hereof, and supersedes
|
| 126 |
+
all written and oral contracts, proposals, and other communications between
|
| 127 |
+
the parties relating to that subject matter.
|
| 128 |
+
|
| 129 |
+
(c) Subject to Section 8, this Agreement shall be binding on, and shall inure
|
| 130 |
+
to the benefit of, the respective successors and assigns of NTT and User.
|
| 131 |
+
|
| 132 |
+
(d) If either party to this Agreement initiates a legal action or proceeding
|
| 133 |
+
to enforce or interpret any part of this Agreement, the prevailing party in
|
| 134 |
+
such action shall be entitled to recover, as an element of the costs of such
|
| 135 |
+
action and not as damages, its attorneys' fees and other costs associated with
|
| 136 |
+
such action or proceeding.
|
| 137 |
+
|
| 138 |
+
(e) This Agreement shall be governed by and interpreted under the laws of
|
| 139 |
+
Japan, without reference to conflicts of law principles. All disputes arising
|
| 140 |
+
out of or in connection with this Agreement shall be finally settled by
|
| 141 |
+
arbitration in Tokyo in accordance with the Commercial Arbitration Rules of
|
| 142 |
+
the Japan Commercial Arbitration Association. The arbitration shall be
|
| 143 |
+
conducted by three (3) arbitrators and in Japanese. The award rendered by the
|
| 144 |
+
arbitrators shall be final and binding upon the parties. Judgment upon the
|
| 145 |
+
award may be entered in any court having jurisdiction thereof.
|
| 146 |
+
|
| 147 |
+
(f) NTT shall not be liable to the User or to any third party for any delay or
|
| 148 |
+
failure to perform NTT's obligation set forth under this Agreement due to any
|
| 149 |
+
cause beyond NTT's reasonable control.
|
| 150 |
+
|
| 151 |
+
EXHIBIT A
|
| 152 |
+
The software and related data include the following files,
|
| 153 |
+
- data (visualmrc)
|
| 154 |
+
- slidevqa
|
._____temp/OpenDocVQA/README.md
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
- config_name: chartqa
|
| 4 |
+
features:
|
| 5 |
+
- name: query_id
|
| 6 |
+
dtype: string
|
| 7 |
+
- name: query
|
| 8 |
+
dtype: string
|
| 9 |
+
- name: answers
|
| 10 |
+
sequence: string
|
| 11 |
+
- name: relevant_doc_ids
|
| 12 |
+
sequence: string
|
| 13 |
+
- name: dataset_names
|
| 14 |
+
sequence: string
|
| 15 |
+
splits:
|
| 16 |
+
- name: test
|
| 17 |
+
num_bytes: 36856
|
| 18 |
+
num_examples: 150
|
| 19 |
+
download_size: 16709
|
| 20 |
+
dataset_size: 36856
|
| 21 |
+
- config_name: default
|
| 22 |
+
features:
|
| 23 |
+
- name: query_id
|
| 24 |
+
dtype: string
|
| 25 |
+
- name: query
|
| 26 |
+
dtype: string
|
| 27 |
+
- name: answers
|
| 28 |
+
sequence: string
|
| 29 |
+
- name: relevant_doc_ids
|
| 30 |
+
sequence: string
|
| 31 |
+
- name: dataset_names
|
| 32 |
+
sequence: string
|
| 33 |
+
splits:
|
| 34 |
+
- name: train
|
| 35 |
+
num_bytes: 12038383
|
| 36 |
+
num_examples: 41020
|
| 37 |
+
download_size: 4605381
|
| 38 |
+
dataset_size: 12038383
|
| 39 |
+
- config_name: dude
|
| 40 |
+
features:
|
| 41 |
+
- name: query_id
|
| 42 |
+
dtype: string
|
| 43 |
+
- name: query
|
| 44 |
+
dtype: string
|
| 45 |
+
- name: answers
|
| 46 |
+
sequence: string
|
| 47 |
+
- name: relevant_doc_ids
|
| 48 |
+
sequence: string
|
| 49 |
+
- name: dataset_names
|
| 50 |
+
sequence: string
|
| 51 |
+
splits:
|
| 52 |
+
- name: test
|
| 53 |
+
num_bytes: 136528
|
| 54 |
+
num_examples: 496
|
| 55 |
+
download_size: 60971
|
| 56 |
+
dataset_size: 136528
|
| 57 |
+
- config_name: infovqa
|
| 58 |
+
features:
|
| 59 |
+
- name: query_id
|
| 60 |
+
dtype: string
|
| 61 |
+
- name: query
|
| 62 |
+
dtype: string
|
| 63 |
+
- name: answers
|
| 64 |
+
sequence: string
|
| 65 |
+
- name: relevant_doc_ids
|
| 66 |
+
sequence: string
|
| 67 |
+
- name: dataset_names
|
| 68 |
+
sequence: string
|
| 69 |
+
splits:
|
| 70 |
+
- name: test
|
| 71 |
+
num_bytes: 246601
|
| 72 |
+
num_examples: 1048
|
| 73 |
+
download_size: 70905
|
| 74 |
+
dataset_size: 246601
|
| 75 |
+
- config_name: slidevqa
|
| 76 |
+
features:
|
| 77 |
+
- name: query_id
|
| 78 |
+
dtype: string
|
| 79 |
+
- name: query
|
| 80 |
+
dtype: string
|
| 81 |
+
- name: answers
|
| 82 |
+
sequence: string
|
| 83 |
+
- name: relevant_doc_ids
|
| 84 |
+
sequence: string
|
| 85 |
+
- name: dataset_names
|
| 86 |
+
sequence: string
|
| 87 |
+
splits:
|
| 88 |
+
- name: test
|
| 89 |
+
num_bytes: 271232
|
| 90 |
+
num_examples: 760
|
| 91 |
+
download_size: 78642
|
| 92 |
+
dataset_size: 271232
|
| 93 |
+
- config_name: arxivqa
|
| 94 |
+
features:
|
| 95 |
+
- name: query_id
|
| 96 |
+
dtype: string
|
| 97 |
+
- name: query
|
| 98 |
+
dtype: string
|
| 99 |
+
- name: answers
|
| 100 |
+
sequence: string
|
| 101 |
+
- name: relevant_doc_ids
|
| 102 |
+
sequence: string
|
| 103 |
+
- name: dataset_names
|
| 104 |
+
sequence: string
|
| 105 |
+
splits:
|
| 106 |
+
- name: test
|
| 107 |
+
num_bytes: 501365
|
| 108 |
+
num_examples: 816
|
| 109 |
+
download_size: 501365
|
| 110 |
+
dataset_size: 501365
|
| 111 |
+
- config_name: plotqa
|
| 112 |
+
features:
|
| 113 |
+
- name: query_id
|
| 114 |
+
dtype: string
|
| 115 |
+
- name: query
|
| 116 |
+
dtype: string
|
| 117 |
+
- name: answers
|
| 118 |
+
sequence: string
|
| 119 |
+
- name: relevant_doc_ids
|
| 120 |
+
sequence: string
|
| 121 |
+
- name: dataset_names
|
| 122 |
+
sequence: string
|
| 123 |
+
splits:
|
| 124 |
+
- name: test
|
| 125 |
+
num_bytes: 508031
|
| 126 |
+
num_examples: 863
|
| 127 |
+
download_size: 508031
|
| 128 |
+
dataset_size: 508031
|
| 129 |
+
- config_name: docvqa
|
| 130 |
+
features:
|
| 131 |
+
- name: query_id
|
| 132 |
+
dtype: string
|
| 133 |
+
- name: query
|
| 134 |
+
dtype: string
|
| 135 |
+
- name: answers
|
| 136 |
+
sequence: string
|
| 137 |
+
- name: relevant_doc_ids
|
| 138 |
+
sequence: string
|
| 139 |
+
- name: dataset_names
|
| 140 |
+
sequence: string
|
| 141 |
+
splits:
|
| 142 |
+
- name: test
|
| 143 |
+
num_bytes: 323886
|
| 144 |
+
num_examples: 585
|
| 145 |
+
download_size: 323886
|
| 146 |
+
dataset_size: 323886
|
| 147 |
+
configs:
|
| 148 |
+
- config_name: chartqa
|
| 149 |
+
data_files:
|
| 150 |
+
- split: test
|
| 151 |
+
path: chartqa/test-*
|
| 152 |
+
- config_name: default
|
| 153 |
+
data_files:
|
| 154 |
+
- split: train
|
| 155 |
+
path: data/train-*
|
| 156 |
+
- config_name: dude
|
| 157 |
+
data_files:
|
| 158 |
+
- split: test
|
| 159 |
+
path: dude/test-*
|
| 160 |
+
- config_name: infovqa
|
| 161 |
+
data_files:
|
| 162 |
+
- split: test
|
| 163 |
+
path: infovqa/test-*
|
| 164 |
+
- config_name: slidevqa
|
| 165 |
+
data_files:
|
| 166 |
+
- split: test
|
| 167 |
+
path: slidevqa/test-*
|
| 168 |
+
- config_name: arxivqa
|
| 169 |
+
data_files:
|
| 170 |
+
- split: test
|
| 171 |
+
path: arxivqa/test-*
|
| 172 |
+
- config_name: plotqa
|
| 173 |
+
data_files:
|
| 174 |
+
- split: test
|
| 175 |
+
path: plotqa/test-*
|
| 176 |
+
- config_name: docvqa
|
| 177 |
+
data_files:
|
| 178 |
+
- split: test
|
| 179 |
+
path: docvqa/test-*
|
| 180 |
+
task_categories:
|
| 181 |
+
- visual-question-answering
|
| 182 |
+
- question-answering
|
| 183 |
+
language:
|
| 184 |
+
- en
|
| 185 |
+
size_categories:
|
| 186 |
+
- 100K<n<1M
|
| 187 |
+
extra_gated_prompt: "1.The researcher agrees to the following terms and conditions\
|
| 188 |
+
\ of data sources:\n* DocVQA: https://rrc.cvc.uab.es/?ch=17&com=downloads\n* InfoVQA:\
|
| 189 |
+
\ https://rrc.cvc.uab.es/?ch=17&com=downloads\n\n2.VisualMRC and SlideVQA datasets\
|
| 190 |
+
\ should only be used under the following NTT License.\n### SOFTWARE LICENSE AGREEMENT\
|
| 191 |
+
\ FOR EVALUATION\nThis SOFTWARE EVALUATION LICENSE AGREEMENT (this \"Agreement\"\
|
| 192 |
+
) is a legal contract between a person who uses or otherwise accesses or installs\
|
| 193 |
+
\ the Software (\"User(s)\"), and Nippon Telegraph and Telephone corporation (\"\
|
| 194 |
+
NTT\"). READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY BEFORE INSTALLING\
|
| 195 |
+
\ OR OTHERWISE ACCESSING OR USING NTT'S PROPRIETARY SOFTWARE ACCOMPANIED BY THIS\
|
| 196 |
+
\ AGREEMENT (the \"SOFTWARE\"). THE SOFTWARE IS COPYRIGHTED AND IT IS LICENSED TO\
|
| 197 |
+
\ USER UNDER THIS AGREEMENT, NOT SOLD TO USER. BY INSTALLING OR OTHERWISE ACCESSING\
|
| 198 |
+
\ OR USING THE SOFTWARE, USER ACKNOWLEDGES THAT USER HAS READ THIS AGREEMENT, THAT\
|
| 199 |
+
\ USER UNDERSTANDS IT, AND THAT USER ACCEPTS AND AGREES TO BE BOUND BY ITS TERMS.\
|
| 200 |
+
\ IF AT ANY TIME USER IS NOT WILLING TO BE BOUND BY THE TERMS OF THIS AGREEMENT,\
|
| 201 |
+
\ USER SHOULD TERMINATE THE INSTALLATION PROCESS, IMMEDIATELY CEASE AND REFRAIN\
|
| 202 |
+
\ FROM ACCESSING OR USING THE SOFTWARE AND DELETE ANY COPIES USER MAY HAVE. THIS\
|
| 203 |
+
\ AGREEMENT REPRESENTS THE ENTIRE AGREEMENT BETWEEN USER AND NTT CONCERNING THE\
|
| 204 |
+
\ SOFTWARE.\n \n## BACKGROUND\nA. NTT is the owner of all rights, including all\
|
| 205 |
+
\ patent rights, copyrights and trade secret rights, in and to the Software and\
|
| 206 |
+
\ related documentation listed in Exhibit A to this Agreement.\nB. User wishes to\
|
| 207 |
+
\ obtain a royalty free license to use the Software to enable User to evaluate,\
|
| 208 |
+
\ and NTT wishes to grant such a license to User, pursuant and subject to the terms\
|
| 209 |
+
\ and conditions of this Agreement.\nC. As a condition to NTT's provision of the\
|
| 210 |
+
\ Software to User, NTT has required User to execute this Agreement.\nIn consideration\
|
| 211 |
+
\ of these premises, and the mutual promises and conditions in this Agreement, the\
|
| 212 |
+
\ parties hereby agree as follows:\n1. Grant of Evaluation License. NTT hereby grants\
|
| 213 |
+
\ to User, and User hereby accepts, under the terms and conditions of this Agreement,\
|
| 214 |
+
\ a royalty free, nontransferable and nonexclusive license to use the Software internally\
|
| 215 |
+
\ for the purposes of testing, analyzing, and evaluating the methods or mechanisms\
|
| 216 |
+
\ as shown in the research paper submitted by NTT to a certain academy. User may\
|
| 217 |
+
\ make a reasonable number of backup copies of the Software solely for User's internal\
|
| 218 |
+
\ use pursuant to the license granted in this Section 1.\n2. Shipment and Installation.\
|
| 219 |
+
\ NTT will ship or deliver the Software by any method that NTT deems appropriate.\
|
| 220 |
+
\ User shall be solely responsible for proper installation of the Software.\n3.\
|
| 221 |
+
\ Term. This Agreement is effective whichever is earlier (i) upon User's acceptance\
|
| 222 |
+
\ of the Agreement, or (ii) upon User's installing, accessing, and using the Software,\
|
| 223 |
+
\ even if User has not expressly accepted this Agreement. Without prejudice to any\
|
| 224 |
+
\ other rights, NTT may terminate this Agreement without notice to User (i) if User\
|
| 225 |
+
\ breaches or fails to comply with any of the limitations or other requirements\
|
| 226 |
+
\ described herein, and (ii) if NTT receives a notice from the academy stating that\
|
| 227 |
+
\ the research paper would not be published, and in any such case User agrees that\
|
| 228 |
+
\ NTT may, in addition to any other remedies it may have at law or in equity, remotely\
|
| 229 |
+
\ disable the Software. User may terminate this Agreement at any time by User's\
|
| 230 |
+
\ decision to terminate the Agreement to NTT and ceasing use of the Software. Upon\
|
| 231 |
+
\ any termination or expiration of this Agreement for any reason, User agrees to\
|
| 232 |
+
\ uninstall the Software and either return to NTT the Software and all copies thereof,\
|
| 233 |
+
\ or to destroy all such materials and provide written verification of such destruction\
|
| 234 |
+
\ to NTT.\n4. Proprietary Rights\n(a) The Software is the valuable, confidential,\
|
| 235 |
+
\ and proprietary property of NTT, and NTT shall retain exclusive title to this\
|
| 236 |
+
\ property both during the term and after the termination of this Agreement. Without\
|
| 237 |
+
\ limitation, User acknowledges that all patent rights, copyrights and trade secret\
|
| 238 |
+
\ rights in the Software shall remain the exclusive property of NTT at all times.\
|
| 239 |
+
\ User shall use not less than reasonable care in safeguarding the confidentiality\
|
| 240 |
+
\ of the Software. \n(b) USER SHALL NOT, IN WHOLE OR IN PART, AT ANY TIME DURING\
|
| 241 |
+
\ THE TERM OF OR AFTER THE TERMINATION OF THIS AGREEMENT: (i) SELL, ASSIGN, LEASE,\
|
| 242 |
+
\ DISTRIBUTE, OR OTHERWISE TRANSFER THE SOFTWARE TO ANY THIRD PARTY; (ii) EXCEPT\
|
| 243 |
+
\ AS OTHERWISE PROVIDED HEREIN, COPY OR REPRODUCE THE SOFTWARE IN ANY MANNER; (iii)\
|
| 244 |
+
\ DISCLOSE THE SOFTWARE TO ANY THIRD PARTY, EXCEPT TO USER'S EMPLOYEES WHO REQUIRE\
|
| 245 |
+
\ ACCESS TO THE SOFTWARE FOR THE PURPOSES OF THIS AGREEMENT; (iv) MODIFY, DISASSEMBLE,\
|
| 246 |
+
\ DECOMPILE, REVERSE ENGINEER OR TRANSLATE THE SOFTWARE; OR (v) ALLOW ANY PERSON\
|
| 247 |
+
\ OR ENTITY TO COMMIT ANY OF THE ACTIONS DESCRIBED IN (i) THROUGH (iv) ABOVE.\n\
|
| 248 |
+
(c) User shall take appropriate action, by instruction, agreement, or otherwise,\
|
| 249 |
+
\ with respect to its employees permitted under this Agreement to have access to\
|
| 250 |
+
\ the Software to ensure that all of User's obligations under this Section 4 shall\
|
| 251 |
+
\ be satisfied. \n5. Indemnity. User shall defend, indemnify and hold harmless\
|
| 252 |
+
\ NTT, its agents and employees, from any loss, damage, or liability arising in\
|
| 253 |
+
\ connection with User's improper or unauthorized use of the Software. NTT SHALL\
|
| 254 |
+
\ HAVE THE SOLE RIGHT TO CONDUCT DEFEND ANY ACTTION RELATING TO THE SOFTWARE.\n\
|
| 255 |
+
6. Disclaimer. THE SOFTWARE IS LICENSED TO USER \"AS IS,\" WITHOUT ANY TRAINING,\
|
| 256 |
+
\ MAINTENANCE, OR SERVICE OBLIGATIONS WHATSOEVER ON THE PART OF NTT. NTT MAKES NO\
|
| 257 |
+
\ EXPRESS OR IMPLIED WARRANTIES OF ANY TYPE WHATSOEVER, INCLUDING WITHOUT LIMITATION\
|
| 258 |
+
\ THE IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR PURPOSE\
|
| 259 |
+
\ AND OF NON-INFRINGEMENT ON COPYRIGHT OR ANY OTHER RIGHT OF THIRD PARTIES. USER\
|
| 260 |
+
\ ASSUMES ALL RISKS ASSOCIATED WITH ITS USE OF THE SOFTWARE, INCLUDING WITHOUT LIMITATION\
|
| 261 |
+
\ RISKS RELATING TO QUALITY, PERFORMANCE, DATA LOSS, AND UTILITY IN A PRODUCTION\
|
| 262 |
+
\ ENVIRONMENT. \n7. Limitation of Liability. IN NO EVENT SHALL NTT BE LIABLE TO\
|
| 263 |
+
\ USER OR TO ANY THIRD PARTY FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL\
|
| 264 |
+
\ DAMAGES, INCLUDING BUT NOT LIMITED TO DAMAGES FOR PERSONAL INJURY, PROPERTY DAMAGE,\
|
| 265 |
+
\ LOST PROFITS, OR OTHER ECONOMIC LOSS, ARISING IN CONNECTION WITH USER'S USE OF\
|
| 266 |
+
\ OR INABILITY TO USE THE SOFTWARE, IN CONNECTION WITH NTT'S PROVISION OF OR FAILURE\
|
| 267 |
+
\ TO PROVIDE SERVICES PERTAINING TO THE SOFTWARE, OR AS A RESULT OF ANY DEFECT IN\
|
| 268 |
+
\ THE SOFTWARE. THIS DISCLAIMER OF LIABILITY SHALL APPLY REGARD¬LESS OF THE FORM\
|
| 269 |
+
\ OF ACTION THAT MAY BE BROUGHT AGAINST NTT, WHETHER IN CONTRACT OR TORT, INCLUDING\
|
| 270 |
+
\ WITHOUT LIMITATION ANY ACTION FOR NEGLIGENCE. USER'S SOLE REMEDY IN THE EVENT\
|
| 271 |
+
\ OF ANY BREACH OF THIS AGREEMENT BY NTT SHALL BE TERMINATION PURSUANT TO SECTION\
|
| 272 |
+
\ 3.\n8. No Assignment or Sublicense. Neither this Agreement nor any right or license\
|
| 273 |
+
\ under this Agreement, nor the Software, may be sublicensed, assigned, or otherwise\
|
| 274 |
+
\ transferred by User without NTT's prior written consent.\n9. General\n(a) If any\
|
| 275 |
+
\ provision, or part of a provision, of this Agreement is or becomes illegal, unenforceable,\
|
| 276 |
+
\ or invalidated, by operation of law or otherwise, that provision or part shall\
|
| 277 |
+
\ to that extent be deemed omitted, and the remainder of this Agreement shall remain\
|
| 278 |
+
\ in full force and effect.\n(b) This Agreement is the complete and exclusive statement\
|
| 279 |
+
\ of the agreement between the parties with respect to the subject matter hereof,\
|
| 280 |
+
\ and supersedes all written and oral contracts, proposals, and other communications\
|
| 281 |
+
\ between the parties relating to that subject matter. \n(c) Subject to Section\
|
| 282 |
+
\ 8, this Agreement shall be binding on, and shall inure to the benefit of, the\
|
| 283 |
+
\ respective successors and assigns of NTT and User. \n(d) If either party to this\
|
| 284 |
+
\ Agreement initiates a legal action or proceeding to enforce or interpret any part\
|
| 285 |
+
\ of this Agreement, the prevailing party in such action shall be entitled to recover,\
|
| 286 |
+
\ as an element of the costs of such action and not as damages, its attorneys' fees\
|
| 287 |
+
\ and other costs associated with such action or proceeding.\n(e) This Agreement\
|
| 288 |
+
\ shall be governed by and interpreted under the laws of Japan, without reference\
|
| 289 |
+
\ to conflicts of law principles. All disputes arising out of or in connection with\
|
| 290 |
+
\ this Agreement shall be finally settled by arbitration in Tokyo in accordance\
|
| 291 |
+
\ with the Commercial Arbitration Rules of the Japan Commercial Arbitration Association.\
|
| 292 |
+
\ The arbitration shall be conducted by three (3) arbitrators and in Japanese.\
|
| 293 |
+
\ The award rendered by the arbitrators shall be final and binding upon the parties.\
|
| 294 |
+
\ Judgment upon the award may be entered in any court having jurisdiction thereof.\n\
|
| 295 |
+
(f) NTT shall not be liable to the User or to any third party for any delay or failure\
|
| 296 |
+
\ to perform NTT's obligation set forth under this Agreement due to any cause beyond\
|
| 297 |
+
\ NTT's reasonable control.\nEXHIBIT A\nThe software and related data include the\
|
| 298 |
+
\ following files,\n* data (visualmrc, mhdocvqa)\n* slidevqa"
|
| 299 |
+
extra_gated_fields:
|
| 300 |
+
By clicking Submit below, I accept the terms of the conditions and license: checkbox
|
| 301 |
+
extra_gated_button_content: Submit
|
| 302 |
+
---
|
| 303 |
+
# Dataset Card for OpenDocVQA
|
| 304 |
+
This is a training and evaluation QA data file for [VDocRAG](https://vdocrag.github.io/), a new RAG framework that can directly understand diverse real-world documents purely from visual features.
|
| 305 |
+
|
| 306 |
+
## Dataset Description
|
| 307 |
+
|
| 308 |
+
OpenDocVQA is the first unified collection of open-domain document visual question answering datasets, encompassing diverse document types and formats.
|
| 309 |
+
|
| 310 |
+
#### Supported Tasks and Leaderboards
|
| 311 |
+
Given a large collection of document images and a question, the goal of the OpenDocVQA task is to output an answer by finding the relevant images. We decompose the task into two stages.
|
| 312 |
+
|
| 313 |
+
- **Visual document retrieval**: Given a question and a corpus of document images, the model retrieves the relevant images from which to derive the answer.
|
| 314 |
+
- **DocumentVQA**: The model takes a question and the retrieved images as input to generate an answer.
|
| 315 |
+
|
| 316 |
+
OpenDocVQA covers multiple open-domain DocumentVQA datasets with diverse document types. To reflect real-world scenarios, we evaluate models with both single-pool and all-pool settings.
|
| 317 |
+
In the single-pool setting, retrieval is performed from a specific pool of documents provided by each original dataset. The all-pool setting requires retrieving from the entire candidate pool, which includes documents from a wide range of domains.
|
| 318 |
+
|
| 319 |
+
#### Languages
|
| 320 |
+
English
|
| 321 |
+
|
| 322 |
+
## Dataset Structure
|
| 323 |
+
|
| 324 |
+
### Data Instances
|
| 325 |
+
```json
|
| 326 |
+
{
|
| 327 |
+
'query_id': "chartqa-test_6",
|
| 328 |
+
'query': 'Instruct: Given a user query, retrieve a chart image that answers the query.\nQuery: How many more Hispanics younger than 18 tend to be Mexican than Spanish?',
|
| 329 |
+
'answers': ['65'],
|
| 330 |
+
'relevant_doc_ids': ['chartqa/9001.png'],
|
| 331 |
+
'dataset_names': ['chartqa']
|
| 332 |
+
}
|
| 333 |
+
```
|
| 334 |
+
|
| 335 |
+
### Data Fields
|
| 336 |
+
An example of a sample looks as follows:
|
| 337 |
+
```json
|
| 338 |
+
{
|
| 339 |
+
'query_id': Query ID,
|
| 340 |
+
'query': Query,
|
| 341 |
+
'answers': List of answers,
|
| 342 |
+
'relevant_doc_ids': List of relevant document IDs,
|
| 343 |
+
'dataset_names': List of source dataset names
|
| 344 |
+
}
|
| 345 |
+
```
|
| 346 |
+
|
| 347 |
+
### Stats about the datasets in The OpenDocVQA
|
| 348 |
+
|
| 349 |
+
| Dataset | Documents | # images | # Train&Dev | # Test |
|
| 350 |
+
|----------------------|-----------|----------|-------------|---------|
|
| 351 |
+
| DocVQA | Industry | 12,767 | 6,382 | - |
|
| 352 |
+
| InfoVQA | Infographic | 5,485 | 9,592 | 1,048 |
|
| 353 |
+
| VisualMRC | Webpage | 10,229 | 6,126 | - |
|
| 354 |
+
| ChartQA | Chart | 20,882 | - | 150 |
|
| 355 |
+
| OpenWikitable | Table | 1,257 | 4,261 | - |
|
| 356 |
+
| DUDE | Open | 27,955 | 2,135 | 496 |
|
| 357 |
+
| MPMQA | Manual | 10,018 | 3,054 | - |
|
| 358 |
+
| SlideVQA | Slide | 52,380 | - | 760 |
|
| 359 |
+
| MHDocVQA (newly created) | Open | 28,550 | 9,470 | - |
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
## Additional Information
|
| 364 |
+
|
| 365 |
+
### License
|
| 366 |
+
Each of the publicly available sub-datasets present in the OpenDocVQA is governed by specific licensing conditions.
|
| 367 |
+
Therefore, when making use of them, you must take into consideration each of the licenses governing each dataset.
|
| 368 |
+
|
| 369 |
+
The QA pairs of MHDocVQA, VisualMRC, and SlideVQA datasets in this repo are released under the [NTT License](https://huggingface.co/NTT-hil-insight/OpenDocVQA/edit/main/LICENSE).
|
| 370 |
+
|
| 371 |
+
### Citation
|
| 372 |
+
```bibtex
|
| 373 |
+
@inproceedings{tanaka2025vdocrag,
|
| 374 |
+
author = {Ryota Tanaka and
|
| 375 |
+
Taichi Iki and
|
| 376 |
+
Taku Hasegawa and
|
| 377 |
+
Kyosuke Nishida and
|
| 378 |
+
Kuniko Saito and
|
| 379 |
+
Jun Suzuki},
|
| 380 |
+
title = {VDocRAG: Retrieval-Augmented Generation over Visually-Rich Documents},
|
| 381 |
+
booktitle = {CVPR},
|
| 382 |
+
year = {2025}
|
| 383 |
+
}
|
| 384 |
+
```
|
._____temp/OpenDocVQA/arxivqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9b37527ad82d5dccc542e7d43e779b3ce9e40ad485885eb26c925b80bd57aa0
|
| 3 |
+
size 72641
|
._____temp/OpenDocVQA/chartqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9c9d2b7f5c1ce67753130e8ac19fbc082b267411e234a93edd03a4529859839
|
| 3 |
+
size 16709
|
._____temp/OpenDocVQA/data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:483d90ef502c4dd017d5ba088d7345332b80ea949c008206641f42e4f81a05f7
|
| 3 |
+
size 4605381
|
._____temp/OpenDocVQA/docvqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:650535f5ed786e9cdb32420717517f213d5b02a45c27189730d6971d0cb3802f
|
| 3 |
+
size 33172
|
._____temp/OpenDocVQA/infovqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac0128a164be9898db36047391c0acf54047f428c80adca661bae2e8966b8c08
|
| 3 |
+
size 70905
|
._____temp/OpenDocVQA/plotqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a09675624d9097afb9c4b9efc384c130224ac9535f931415853b992089144e80
|
| 3 |
+
size 48100
|
._____temp/OpenDocVQA/slidevqa/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ccdcbf458e0a6614dbe43d35a9c47e25e9a64df5bfc4f2b2eddba46c00b97ea
|
| 3 |
+
size 78642
|
._____temp/Phi3/.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
._____temp/Phi3/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Microsoft Open Source Code of Conduct
|
| 2 |
+
|
| 3 |
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
| 4 |
+
|
| 5 |
+
Resources:
|
| 6 |
+
|
| 7 |
+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
|
| 8 |
+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
|
| 9 |
+
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
|
._____temp/Phi3/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
._____temp/Phi3/README.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
license_link: https://huggingface.co/microsoft/Phi-3-vision-128k-instruct/resolve/main/LICENSE
|
| 4 |
+
|
| 5 |
+
language:
|
| 6 |
+
- multilingual
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- nlp
|
| 10 |
+
- code
|
| 11 |
+
- vision
|
| 12 |
+
inference:
|
| 13 |
+
parameters:
|
| 14 |
+
temperature: 0.7
|
| 15 |
+
widget:
|
| 16 |
+
- messages:
|
| 17 |
+
- role: user
|
| 18 |
+
content: <|image_1|>Can you describe what you see in the image?
|
| 19 |
+
---
|
| 20 |
+
🎉 **Phi-3.5**: [[mini-instruct]](https://huggingface.co/microsoft/Phi-3.5-mini-instruct); [[MoE-instruct]](https://huggingface.co/microsoft/Phi-3.5-MoE-instruct) ; [[vision-instruct]](https://huggingface.co/microsoft/Phi-3.5-vision-instruct)
|
| 21 |
+
|
| 22 |
+
## Model Summary
|
| 23 |
+
|
| 24 |
+
The Phi-3-Vision-128K-Instruct is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision. The model belongs to the Phi-3 model family, and the multimodal version comes with 128K context length (in tokens) it can support. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.
|
| 25 |
+
|
| 26 |
+
Resources and Technical Documentation:
|
| 27 |
+
|
| 28 |
+
+ [Phi-3 Microsoft Blog](https://aka.ms/Phi-3Build2024)
|
| 29 |
+
+ [Phi-3 Technical Report](https://aka.ms/phi3-tech-report)
|
| 30 |
+
+ [Phi-3 on Azure AI Studio](https://aka.ms/try-phi3vision)
|
| 31 |
+
+ [Phi-3 Cookbook](https://github.com/microsoft/Phi-3CookBook)
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
| | Short Context | Long Context |
|
| 35 |
+
| ------- | ------------- | ------------ |
|
| 36 |
+
| Mini | 4K [[HF]](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx) ; [[GGUF]](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf) | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-mini-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-mini-128k-instruct-onnx)|
|
| 37 |
+
| Small | 8K [[HF]](https://huggingface.co/microsoft/Phi-3-small-8k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-small-8k-instruct-onnx-cuda) | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-small-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-small-128k-instruct-onnx-cuda)|
|
| 38 |
+
| Medium | 4K [[HF]](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct-onnx-cuda) | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-medium-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-medium-128k-instruct-onnx-cuda)|
|
| 39 |
+
| Vision | | 128K [[HF]](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct) ; [[ONNX]](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct-onnx-cuda)|
|
| 40 |
+
|
| 41 |
+
## Intended Uses
|
| 42 |
+
|
| 43 |
+
**Primary use cases**
|
| 44 |
+
|
| 45 |
+
The model is intended for broad commercial and research use in English. The model provides uses for general purpose AI systems and applications with visual and text input capabilities which require
|
| 46 |
+
|
| 47 |
+
1) memory/compute constrained environments;
|
| 48 |
+
2) latency bound scenarios;
|
| 49 |
+
3) general image understanding;
|
| 50 |
+
4) OCR;
|
| 51 |
+
5) chart and table understanding.
|
| 52 |
+
|
| 53 |
+
Our model is designed to accelerate research on efficient language and multimodal models, for use as a building block for generative AI powered features.
|
| 54 |
+
|
| 55 |
+
**Use case considerations**
|
| 56 |
+
|
| 57 |
+
Our models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case, particularly for high-risk scenarios.
|
| 58 |
+
Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.
|
| 59 |
+
|
| 60 |
+
Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.
|
| 61 |
+
|
| 62 |
+
## How to Use
|
| 63 |
+
|
| 64 |
+
Phi-3-Vision-128K-Instruct has been integrated in the development version (4.40.2) of `transformers`. Until the official version is released through `pip`, ensure that you are doing one of the following:
|
| 65 |
+
* When loading the model, ensure that `trust_remote_code=True` is passed as an argument of the `from_pretrained()` function.
|
| 66 |
+
|
| 67 |
+
* Update your local `transformers` to the development version: `pip uninstall -y transformers && pip install git+https://github.com/huggingface/transformers`. The previous command is an alternative to cloning and installing from the source.
|
| 68 |
+
|
| 69 |
+
The current `transformers` version can be verified with: `pip list | grep transformers`.
|
| 70 |
+
|
| 71 |
+
Examples of required packages:
|
| 72 |
+
```
|
| 73 |
+
flash_attn==2.5.8
|
| 74 |
+
numpy==1.24.4
|
| 75 |
+
Pillow==10.3.0
|
| 76 |
+
Requests==2.31.0
|
| 77 |
+
torch==2.3.0
|
| 78 |
+
torchvision==0.18.0
|
| 79 |
+
transformers==4.40.2
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
Phi-3-Vision-128K-Instruct is also available in [Azure AI Studio](https://aka.ms/phi3-azure-ai).
|
| 83 |
+
|
| 84 |
+
### Chat Format
|
| 85 |
+
|
| 86 |
+
Given the nature of the training data, the Phi-3-Vision-128K-Instruct model is best suited for a single image input wih prompts using the chat format as follows.
|
| 87 |
+
You can provide the prompt as a single image with a generic template as follow:
|
| 88 |
+
```markdown
|
| 89 |
+
<|user|>\n<|image_1|>\n{prompt}<|end|>\n<|assistant|>\n
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
where the model generates the text after `<|assistant|>` . In case of multi-turn conversation, the prompt can be formatted as follows:
|
| 93 |
+
|
| 94 |
+
```markdown
|
| 95 |
+
<|user|>\n<|image_1|>\n{prompt_1}<|end|>\n<|assistant|>\n{response_1}<|end|>\n<|user|>\n{prompt_2}<|end|>\n<|assistant|>\n
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
### Sample inference code
|
| 99 |
+
|
| 100 |
+
This code snippets show how to get quickly started with running the model on a GPU:
|
| 101 |
+
|
| 102 |
+
```python
|
| 103 |
+
from PIL import Image
|
| 104 |
+
import requests
|
| 105 |
+
from transformers import AutoModelForCausalLM
|
| 106 |
+
from transformers import AutoProcessor
|
| 107 |
+
|
| 108 |
+
model_id = "microsoft/Phi-3-vision-128k-instruct"
|
| 109 |
+
|
| 110 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="cuda", trust_remote_code=True, torch_dtype="auto", _attn_implementation='flash_attention_2') # use _attn_implementation='eager' to disable flash attention
|
| 111 |
+
|
| 112 |
+
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
| 113 |
+
|
| 114 |
+
messages = [
|
| 115 |
+
{"role": "user", "content": "<|image_1|>\nWhat is shown in this image?"},
|
| 116 |
+
{"role": "assistant", "content": "The chart displays the percentage of respondents who agree with various statements about their preparedness for meetings. It shows five categories: 'Having clear and pre-defined goals for meetings', 'Knowing where to find the information I need for a meeting', 'Understanding my exact role and responsibilities when I'm invited', 'Having tools to manage admin tasks like note-taking or summarization', and 'Having more focus time to sufficiently prepare for meetings'. Each category has an associated bar indicating the level of agreement, measured on a scale from 0% to 100%."},
|
| 117 |
+
{"role": "user", "content": "Provide insightful questions to spark discussion."}
|
| 118 |
+
]
|
| 119 |
+
|
| 120 |
+
url = "https://assets-c4akfrf5b4d3f4b7.z01.azurefd.net/assets/2024/04/BMDataViz_661fb89f3845e.png"
|
| 121 |
+
image = Image.open(requests.get(url, stream=True).raw)
|
| 122 |
+
|
| 123 |
+
prompt = processor.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 124 |
+
|
| 125 |
+
inputs = processor(prompt, [image], return_tensors="pt").to("cuda:0")
|
| 126 |
+
|
| 127 |
+
generation_args = {
|
| 128 |
+
"max_new_tokens": 500,
|
| 129 |
+
"temperature": 0.0,
|
| 130 |
+
"do_sample": False,
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
generate_ids = model.generate(**inputs, eos_token_id=processor.tokenizer.eos_token_id, **generation_args)
|
| 134 |
+
|
| 135 |
+
# remove input tokens
|
| 136 |
+
generate_ids = generate_ids[:, inputs['input_ids'].shape[1]:]
|
| 137 |
+
response = processor.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
|
| 138 |
+
|
| 139 |
+
print(response)
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
Additional basic examples are provided [here](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct/blob/main/sample_inference.py).
|
| 143 |
+
|
| 144 |
+
### How to finetune?
|
| 145 |
+
We recommend user to take a look at the [Phi-3 CookBook finetuning recipe for Vision](https://github.com/microsoft/Phi-3CookBook/blob/main/md/04.Fine-tuning/FineTuning_Vision.md)
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
## Responsible AI Considerations
|
| 149 |
+
|
| 150 |
+
Like other models, the Phi family of models can potentially behave in ways that are unfair, unreliable, or offensive. Some of the limiting behaviors to be aware of include:
|
| 151 |
+
|
| 152 |
+
+ Quality of Service: The Phi models are trained primarily on English text. Languages other than English will experience worse performance. English language varieties with less representation in the training data might experience worse performance than standard American English.
|
| 153 |
+
+ Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.
|
| 154 |
+
+ Inappropriate or Offensive Content: These models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.
|
| 155 |
+
+ Information Reliability: Language models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.
|
| 156 |
+
+ Limited Scope for Code: Majority of Phi-3 training data is based in Python and use common packages such as "typing, math, random, collections, datetime, itertools". If the model generates Python scripts that utilize other packages or scripts in other languages, we strongly recommend users manually verify all API uses.
|
| 157 |
+
|
| 158 |
+
Developers should apply responsible AI best practices and are responsible for ensuring that a specific use case complies with relevant laws and regulations (e.g. privacy, trade, etc.). Important areas for consideration include:
|
| 159 |
+
|
| 160 |
+
+ Allocation: Models may not be suitable for scenarios that could have consequential impact on legal status or the allocation of resources or life opportunities (ex: housing, employment, credit, etc.) without further assessments and additional debiasing techniques.
|
| 161 |
+
+ High-Risk Scenarios: Developers should assess suitability of using models in high-risk scenarios where unfair, unreliable or offensive outputs might be extremely costly or lead to harm. This includes providing advice in sensitive or expert domains where accuracy and reliability are critical (ex: legal or health advice). Additional safeguards should be implemented at the application level according to the deployment context.
|
| 162 |
+
+ Misinformation: Models may produce inaccurate information. Developers should follow transparency best practices and inform end-users they are interacting with an AI system. At the application level, developers can build feedback mechanisms and pipelines to ground responses in use-case specific, contextual information, a technique known as Retrieval Augmented Generation (RAG).
|
| 163 |
+
+ Generation of Harmful Content: Developers should assess outputs for their context and use available safety classifiers or custom solutions appropriate for their use case.
|
| 164 |
+
+ Misuse: Other forms of misuse such as fraud, spam, or malware production may be possible, and developers should ensure that their applications do not violate applicable laws and regulations.
|
| 165 |
+
+ Identification of individuals: models with vision capabilities may have the potential to uniquely identify individuals in images. Safety post-training steers the model to refuse such requests, but developers should consider and implement, as appropriate, additional mitigations or user consent flows as required in their respective jurisdiction, (e.g., building measures to blur faces in image inputs before processing.
|
| 166 |
+
|
| 167 |
+
## Training
|
| 168 |
+
|
| 169 |
+
### Model
|
| 170 |
+
|
| 171 |
+
* Architecture: Phi-3-Vision-128K-Instruct has 4.2B parameters and contains image encoder, connector, projector, and Phi-3 Mini language model.
|
| 172 |
+
* Inputs: Text and Image. It’s best suited for prompts using the chat format.
|
| 173 |
+
* Context length: 128K tokens
|
| 174 |
+
* GPUs: 512 H100-80G
|
| 175 |
+
* Training time: 1.5 days
|
| 176 |
+
* Training data: 500B vision and text tokens
|
| 177 |
+
* Outputs: Generated text in response to the input
|
| 178 |
+
* Dates: Our models were trained between February and April 2024
|
| 179 |
+
* Status: This is a static model trained on an offline text dataset with cutoff date Mar 15, 2024. Future versions of the tuned models may be released as we improve models.
|
| 180 |
+
* Release Type: Open weight release
|
| 181 |
+
* Release dates: The model weight is released on May 21, 2024.
|
| 182 |
+
|
| 183 |
+
### Datasets
|
| 184 |
+
|
| 185 |
+
Our training data includes a wide variety of sources, and is a combination of
|
| 186 |
+
|
| 187 |
+
1) publicly available documents filtered rigorously for quality, selected high-quality educational data and code;
|
| 188 |
+
2) selected high-quality image-text interleave;
|
| 189 |
+
3) newly created synthetic, “textbook-like” data for the purpose of teaching math, coding, common sense reasoning, general knowledge of the world (science, daily activities, theory of mind, etc.), newly created image data, e.g., chart/table/diagram/slides;
|
| 190 |
+
4) high quality chat format supervised data covering various topics to reflect human preferences on different aspects such as instruct-following, truthfulness, honesty and helpfulness.
|
| 191 |
+
|
| 192 |
+
The data collection process involved sourcing information from publicly available documents, with a meticulous approach to filtering out undesirable documents and images. To safeguard privacy, we carefully filtered various image and text data sources to remove or scrub any potentially personal data from the training data.
|
| 193 |
+
|
| 194 |
+
More details can be found in the [Phi-3 Technical Report](https://aka.ms/phi3-tech-report).
|
| 195 |
+
|
| 196 |
+
## Benchmarks
|
| 197 |
+
|
| 198 |
+
To understand the capabilities, we compare Phi-3-Vision-128K-Instruct with a set of models over a variety of zero-shot benchmarks using our internal benchmark platform.
|
| 199 |
+
|
| 200 |
+
|Benchmark|Phi-3 Vision-128K-In|LlaVA-1.6 Vicuna-7B|QWEN-VL Chat|Llama3-Llava-Next-8B|Claude-3 Haiku|Gemini 1.0 Pro V|GPT-4V-Turbo|
|
| 201 |
+
|---------|---------------------|------------------|------------|--------------------|--------------|----------------|------------|
|
| 202 |
+
|MMMU|40.4|34.2|39.0|36.4|40.7|42.0|55.5|
|
| 203 |
+
|MMBench|80.5|76.3|75.8|79.4|62.4|80.0|86.1|
|
| 204 |
+
|ScienceQA|90.8|70.6|67.2|73.7|72.0|79.7|75.7|
|
| 205 |
+
|MathVista|44.5|31.5|29.4|34.8|33.2|35.0|47.5|
|
| 206 |
+
|InterGPS|38.1|20.5|22.3|24.6|32.1|28.6|41.0|
|
| 207 |
+
|AI2D|76.7|63.1|59.8|66.9|60.3|62.8|74.7|
|
| 208 |
+
|ChartQA|81.4|55.0|50.9|65.8|59.3|58.0|62.3|
|
| 209 |
+
|TextVQA|70.9|64.6|59.4|55.7|62.7|64.7|68.1|
|
| 210 |
+
|POPE|85.8|87.2|82.6|87.0|74.4|84.2|83.7|
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
## Software
|
| 214 |
+
|
| 215 |
+
* [PyTorch](https://github.com/pytorch/pytorch)
|
| 216 |
+
* [Transformers](https://github.com/huggingface/transformers)
|
| 217 |
+
* [Flash-Attention](https://github.com/HazyResearch/flash-attention)
|
| 218 |
+
|
| 219 |
+
## Hardware
|
| 220 |
+
Note that by default, the Phi-3-Vision-128K model uses flash attention, which requires certain types of GPU hardware to run. We have tested on the following GPU types:
|
| 221 |
+
* NVIDIA A100
|
| 222 |
+
* NVIDIA A6000
|
| 223 |
+
* NVIDIA H100
|
| 224 |
+
|
| 225 |
+
## License
|
| 226 |
+
|
| 227 |
+
The model is licensed under the [MIT license](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct/resolve/main/LICENSE).
|
| 228 |
+
|
| 229 |
+
## Trademarks
|
| 230 |
+
|
| 231 |
+
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.
|
._____temp/Phi3/SECURITY.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->
|
| 2 |
+
|
| 3 |
+
## Security
|
| 4 |
+
|
| 5 |
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
|
| 6 |
+
|
| 7 |
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
|
| 8 |
+
|
| 9 |
+
## Reporting Security Issues
|
| 10 |
+
|
| 11 |
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
| 12 |
+
|
| 13 |
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
|
| 14 |
+
|
| 15 |
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
|
| 16 |
+
|
| 17 |
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
|
| 18 |
+
|
| 19 |
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
| 20 |
+
|
| 21 |
+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
| 22 |
+
* Full paths of source file(s) related to the manifestation of the issue
|
| 23 |
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
| 24 |
+
* Any special configuration required to reproduce the issue
|
| 25 |
+
* Step-by-step instructions to reproduce the issue
|
| 26 |
+
* Proof-of-concept or exploit code (if possible)
|
| 27 |
+
* Impact of the issue, including how an attacker might exploit the issue
|
| 28 |
+
|
| 29 |
+
This information will help us triage your report more quickly.
|
| 30 |
+
|
| 31 |
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
|
| 32 |
+
|
| 33 |
+
## Preferred Languages
|
| 34 |
+
|
| 35 |
+
We prefer all communications to be in English.
|
| 36 |
+
|
| 37 |
+
## Policy
|
| 38 |
+
|
| 39 |
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
|
| 40 |
+
|
| 41 |
+
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
._____temp/Phi3/SUPPORT.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TODO: The maintainer of this repo has not yet edited this file
|
| 2 |
+
|
| 3 |
+
**REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project?
|
| 4 |
+
|
| 5 |
+
- **No CSS support:** Fill out this template with information about how to file issues and get help.
|
| 6 |
+
- **Yes CSS support:** Fill out an intake form at [aka.ms/onboardsupport](https://aka.ms/onboardsupport). CSS will work with/help you to determine next steps.
|
| 7 |
+
- **Not sure?** Fill out an intake as though the answer were "Yes". CSS will help you decide.
|
| 8 |
+
|
| 9 |
+
*Then remove this first heading from this SUPPORT.MD file before publishing your repo.*
|
| 10 |
+
|
| 11 |
+
# Support
|
| 12 |
+
|
| 13 |
+
## How to file issues and get help
|
| 14 |
+
|
| 15 |
+
This project uses GitHub Issues to track bugs and feature requests. Please search the existing
|
| 16 |
+
issues before filing new issues to avoid duplicates. For new issues, file your bug or
|
| 17 |
+
feature request as a new Issue.
|
| 18 |
+
|
| 19 |
+
For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE
|
| 20 |
+
FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER
|
| 21 |
+
CHANNEL. WHERE WILL YOU HELP PEOPLE?**.
|
| 22 |
+
|
| 23 |
+
## Microsoft Support Policy
|
| 24 |
+
|
| 25 |
+
Support for this **PROJECT or PRODUCT** is limited to the resources listed above.
|
._____temp/Phi3/config.json
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Phi-3-vision-128k-instruct",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Phi3VForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_phi3_v.Phi3VConfig",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_phi3_v.Phi3VForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 1,
|
| 12 |
+
"embd_layer": {
|
| 13 |
+
"embedding_cls": "image",
|
| 14 |
+
"hd_transform_order": "sub_glb",
|
| 15 |
+
"projection_cls": "mlp",
|
| 16 |
+
"use_hd_transform": true,
|
| 17 |
+
"with_learnable_separator": true
|
| 18 |
+
},
|
| 19 |
+
"eos_token_id": 2,
|
| 20 |
+
"hidden_act": "silu",
|
| 21 |
+
"hidden_size": 3072,
|
| 22 |
+
"img_processor": {
|
| 23 |
+
"image_dim_out": 1024,
|
| 24 |
+
"model_name": "openai/clip-vit-large-patch14-336",
|
| 25 |
+
"name": "clip_vision_model",
|
| 26 |
+
"num_img_tokens": 144
|
| 27 |
+
},
|
| 28 |
+
"initializer_range": 0.02,
|
| 29 |
+
"intermediate_size": 8192,
|
| 30 |
+
"max_position_embeddings": 131072,
|
| 31 |
+
"model_type": "phi3_v",
|
| 32 |
+
"num_attention_heads": 32,
|
| 33 |
+
"num_hidden_layers": 32,
|
| 34 |
+
"num_key_value_heads": 32,
|
| 35 |
+
"original_max_position_embeddings": 4096,
|
| 36 |
+
"rms_norm_eps": 1e-05,
|
| 37 |
+
"rope_scaling": {
|
| 38 |
+
"long_factor": [
|
| 39 |
+
1.0299999713897705,
|
| 40 |
+
1.0499999523162842,
|
| 41 |
+
1.0499999523162842,
|
| 42 |
+
1.0799999237060547,
|
| 43 |
+
1.2299998998641968,
|
| 44 |
+
1.2299998998641968,
|
| 45 |
+
1.2999999523162842,
|
| 46 |
+
1.4499999284744263,
|
| 47 |
+
1.5999999046325684,
|
| 48 |
+
1.6499998569488525,
|
| 49 |
+
1.8999998569488525,
|
| 50 |
+
2.859999895095825,
|
| 51 |
+
3.68999981880188,
|
| 52 |
+
5.419999599456787,
|
| 53 |
+
5.489999771118164,
|
| 54 |
+
5.489999771118164,
|
| 55 |
+
9.09000015258789,
|
| 56 |
+
11.579999923706055,
|
| 57 |
+
15.65999984741211,
|
| 58 |
+
15.769999504089355,
|
| 59 |
+
15.789999961853027,
|
| 60 |
+
18.360000610351562,
|
| 61 |
+
21.989999771118164,
|
| 62 |
+
23.079999923706055,
|
| 63 |
+
30.009998321533203,
|
| 64 |
+
32.35000228881836,
|
| 65 |
+
32.590003967285156,
|
| 66 |
+
35.56000518798828,
|
| 67 |
+
39.95000457763672,
|
| 68 |
+
53.840003967285156,
|
| 69 |
+
56.20000457763672,
|
| 70 |
+
57.95000457763672,
|
| 71 |
+
59.29000473022461,
|
| 72 |
+
59.77000427246094,
|
| 73 |
+
59.920005798339844,
|
| 74 |
+
61.190006256103516,
|
| 75 |
+
61.96000671386719,
|
| 76 |
+
62.50000762939453,
|
| 77 |
+
63.3700065612793,
|
| 78 |
+
63.48000717163086,
|
| 79 |
+
63.48000717163086,
|
| 80 |
+
63.66000747680664,
|
| 81 |
+
63.850006103515625,
|
| 82 |
+
64.08000946044922,
|
| 83 |
+
64.760009765625,
|
| 84 |
+
64.80001068115234,
|
| 85 |
+
64.81001281738281,
|
| 86 |
+
64.81001281738281
|
| 87 |
+
],
|
| 88 |
+
"short_factor": [
|
| 89 |
+
1.05,
|
| 90 |
+
1.05,
|
| 91 |
+
1.05,
|
| 92 |
+
1.1,
|
| 93 |
+
1.1,
|
| 94 |
+
1.1,
|
| 95 |
+
1.2500000000000002,
|
| 96 |
+
1.2500000000000002,
|
| 97 |
+
1.4000000000000004,
|
| 98 |
+
1.4500000000000004,
|
| 99 |
+
1.5500000000000005,
|
| 100 |
+
1.8500000000000008,
|
| 101 |
+
1.9000000000000008,
|
| 102 |
+
2.000000000000001,
|
| 103 |
+
2.000000000000001,
|
| 104 |
+
2.000000000000001,
|
| 105 |
+
2.000000000000001,
|
| 106 |
+
2.000000000000001,
|
| 107 |
+
2.000000000000001,
|
| 108 |
+
2.000000000000001,
|
| 109 |
+
2.000000000000001,
|
| 110 |
+
2.000000000000001,
|
| 111 |
+
2.000000000000001,
|
| 112 |
+
2.000000000000001,
|
| 113 |
+
2.000000000000001,
|
| 114 |
+
2.000000000000001,
|
| 115 |
+
2.000000000000001,
|
| 116 |
+
2.000000000000001,
|
| 117 |
+
2.000000000000001,
|
| 118 |
+
2.000000000000001,
|
| 119 |
+
2.000000000000001,
|
| 120 |
+
2.000000000000001,
|
| 121 |
+
2.1000000000000005,
|
| 122 |
+
2.1000000000000005,
|
| 123 |
+
2.2,
|
| 124 |
+
2.3499999999999996,
|
| 125 |
+
2.3499999999999996,
|
| 126 |
+
2.3499999999999996,
|
| 127 |
+
2.3499999999999996,
|
| 128 |
+
2.3999999999999995,
|
| 129 |
+
2.3999999999999995,
|
| 130 |
+
2.6499999999999986,
|
| 131 |
+
2.6999999999999984,
|
| 132 |
+
2.8999999999999977,
|
| 133 |
+
2.9499999999999975,
|
| 134 |
+
3.049999999999997,
|
| 135 |
+
3.049999999999997,
|
| 136 |
+
3.049999999999997
|
| 137 |
+
],
|
| 138 |
+
"type": "su"
|
| 139 |
+
},
|
| 140 |
+
"rope_theta": 10000.0,
|
| 141 |
+
"sliding_window": 131072,
|
| 142 |
+
"tie_word_embeddings": false,
|
| 143 |
+
"torch_dtype": "bfloat16",
|
| 144 |
+
"transformers_version": "4.38.1",
|
| 145 |
+
"use_cache": true,
|
| 146 |
+
"vocab_size": 32064,
|
| 147 |
+
"_attn_implementation": "flash_attention_2"
|
| 148 |
+
}
|
._____temp/Phi3/configuration_phi3_v.py
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2024 Microsoft and the HuggingFace Inc. team. All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
|
| 16 |
+
""" Phi-3-V model configuration"""
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 20 |
+
from transformers.utils import logging
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
logger = logging.get_logger(__name__)
|
| 24 |
+
|
| 25 |
+
PHI3V_PRETRAINED_CONFIG_ARCHIVE_MAP = {
|
| 26 |
+
"microsoft/Phi-3-vision-128k-instruct": "https://huggingface.co/microsoft/Phi-3-vision-128k-instruct/resolve/main/config.json",
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class Phi3VConfig(PretrainedConfig):
|
| 31 |
+
r"""
|
| 32 |
+
This is the configuration class to store the configuration of a [`Phi3VModel`]. It is used to instantiate a Phi-3
|
| 33 |
+
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
|
| 34 |
+
defaults will yield a similar configuration to that of the
|
| 35 |
+
[microsoft/Phi-3-vision-128k-instruct](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct).
|
| 36 |
+
|
| 37 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 38 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 39 |
+
|
| 40 |
+
Args:
|
| 41 |
+
vocab_size (`int`, *optional*, defaults to 32064):
|
| 42 |
+
Vocabulary size of the Phi-3-V model. Defines the number of different tokens that can be represented by the
|
| 43 |
+
`inputs_ids` passed when calling [`Phi3VModel`].
|
| 44 |
+
hidden_size (`int`, *optional*, defaults to 3072):
|
| 45 |
+
Dimension of the hidden representations.
|
| 46 |
+
intermediate_size (`int`, *optional*, defaults to 8192):
|
| 47 |
+
Dimension of the MLP representations.
|
| 48 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
| 49 |
+
Number of hidden layers in the Transformer decoder.
|
| 50 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
| 51 |
+
Number of attention heads for each attention layer in the Transformer decoder.
|
| 52 |
+
num_key_value_heads (`int`, *optional*):
|
| 53 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
| 54 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
| 55 |
+
`num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
| 56 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
| 57 |
+
by meanpooling all the original heads within that group. For more details checkout [this
|
| 58 |
+
paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
|
| 59 |
+
`num_attention_heads`.
|
| 60 |
+
resid_pdrop (`float`, *optional*, defaults to 0.0):
|
| 61 |
+
Dropout probability for mlp outputs.
|
| 62 |
+
embd_pdrop (`int`, *optional*, defaults to 0.0):
|
| 63 |
+
The dropout ratio for the embeddings.
|
| 64 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 65 |
+
The dropout ratio after computing the attention scores.
|
| 66 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
| 67 |
+
The non-linear activation function (function or string) in the decoder.
|
| 68 |
+
max_position_embeddings (`int`, *optional*, defaults to 4096):
|
| 69 |
+
The maximum sequence length that this model might ever be used with.
|
| 70 |
+
original_max_position_embeddings (`int`, *optional*, defaults to 4096):
|
| 71 |
+
The maximum sequence length that this model was trained with. This is used to determine the size of the
|
| 72 |
+
original RoPE embeddings when using long scaling.
|
| 73 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 74 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 75 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-05):
|
| 76 |
+
The epsilon value used for the RMSNorm.
|
| 77 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
| 78 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
| 79 |
+
relevant if `config.is_decoder=True`. Whether to tie weight embeddings or not.
|
| 80 |
+
tie_word_embeddings (`bool`, *optional*, defaults to `False`):
|
| 81 |
+
Whether to tie weight embeddings
|
| 82 |
+
rope_theta (`float`, *optional*, defaults to 10000.0):
|
| 83 |
+
The base period of the RoPE embeddings.
|
| 84 |
+
rope_scaling (`dict`, *optional*):
|
| 85 |
+
The scaling strategy for the RoPE embeddings. If `None`, no scaling is applied. If a dictionary, it must
|
| 86 |
+
contain the following keys: `type`, `short_factor` and `long_factor`. The `type` must be either `su` or `yarn` and
|
| 87 |
+
the `short_factor` and `long_factor` must be lists of numbers with the same length as the hidden size
|
| 88 |
+
divided by the number of attention heads divided by 2.
|
| 89 |
+
bos_token_id (`int`, *optional*, defaults to 1):
|
| 90 |
+
The id of the "beginning-of-sequence" token.
|
| 91 |
+
eos_token_id (`int`, *optional*, defaults to 32000):
|
| 92 |
+
The id of the "end-of-sequence" token.
|
| 93 |
+
pad_token_id (`int`, *optional*, defaults to 32000):
|
| 94 |
+
The id of the padding token.
|
| 95 |
+
sliding_window (`int`, *optional*):
|
| 96 |
+
Sliding window attention window size. If `None`, no sliding window is applied.
|
| 97 |
+
embd_layer (`str`, *optional*, defaults to `"default"`):
|
| 98 |
+
The embedding layer to use. Can be either `"default"` or `"image"`. "default" uses the standard embedding for text.
|
| 99 |
+
|
| 100 |
+
Example:
|
| 101 |
+
|
| 102 |
+
```python
|
| 103 |
+
>>> from transformers import Phi3VModel, Phi3VConfig
|
| 104 |
+
|
| 105 |
+
>>> # Initializing a Phi-3-V style configuration
|
| 106 |
+
>>> configuration = Phi3Config.from_pretrained("microsoft/Phi-3-vision-128k-instruct")
|
| 107 |
+
|
| 108 |
+
>>> # Initializing a model from the configuration
|
| 109 |
+
>>> model = Phi3VModel(configuration)
|
| 110 |
+
|
| 111 |
+
>>> # Accessing the model configuration
|
| 112 |
+
>>> configuration = model.config
|
| 113 |
+
```"""
|
| 114 |
+
|
| 115 |
+
model_type = "phi3_v"
|
| 116 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 117 |
+
|
| 118 |
+
def __init__(
|
| 119 |
+
self,
|
| 120 |
+
vocab_size=32064,
|
| 121 |
+
hidden_size=3072,
|
| 122 |
+
intermediate_size=8192,
|
| 123 |
+
num_hidden_layers=32,
|
| 124 |
+
num_attention_heads=32,
|
| 125 |
+
num_key_value_heads=None,
|
| 126 |
+
resid_pdrop=0.0,
|
| 127 |
+
embd_pdrop=0.0,
|
| 128 |
+
attention_dropout=0.0,
|
| 129 |
+
hidden_act="silu",
|
| 130 |
+
max_position_embeddings=4096,
|
| 131 |
+
original_max_position_embeddings=4096,
|
| 132 |
+
initializer_range=0.02,
|
| 133 |
+
rms_norm_eps=1e-5,
|
| 134 |
+
use_cache=True,
|
| 135 |
+
tie_word_embeddings=False,
|
| 136 |
+
rope_theta=10000.0,
|
| 137 |
+
rope_scaling=None,
|
| 138 |
+
bos_token_id=1,
|
| 139 |
+
eos_token_id=32000,
|
| 140 |
+
pad_token_id=32000,
|
| 141 |
+
sliding_window=None,
|
| 142 |
+
embd_layer: str = "default",
|
| 143 |
+
**kwargs,
|
| 144 |
+
):
|
| 145 |
+
self.vocab_size = vocab_size
|
| 146 |
+
self.hidden_size = hidden_size
|
| 147 |
+
self.intermediate_size = intermediate_size
|
| 148 |
+
self.num_hidden_layers = num_hidden_layers
|
| 149 |
+
self.num_attention_heads = num_attention_heads
|
| 150 |
+
|
| 151 |
+
if num_key_value_heads is None:
|
| 152 |
+
num_key_value_heads = num_attention_heads
|
| 153 |
+
|
| 154 |
+
self.num_key_value_heads = num_key_value_heads
|
| 155 |
+
self.resid_pdrop = resid_pdrop
|
| 156 |
+
self.embd_pdrop = embd_pdrop
|
| 157 |
+
self.attention_dropout = attention_dropout
|
| 158 |
+
self.hidden_act = hidden_act
|
| 159 |
+
self.max_position_embeddings = max_position_embeddings
|
| 160 |
+
self.original_max_position_embeddings = original_max_position_embeddings
|
| 161 |
+
self.initializer_range = initializer_range
|
| 162 |
+
self.rms_norm_eps = rms_norm_eps
|
| 163 |
+
self.use_cache = use_cache
|
| 164 |
+
self.rope_theta = rope_theta
|
| 165 |
+
self.rope_scaling = rope_scaling
|
| 166 |
+
self._rope_scaling_validation()
|
| 167 |
+
self.sliding_window = sliding_window
|
| 168 |
+
self.embd_layer = embd_layer
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
super().__init__(
|
| 172 |
+
bos_token_id=bos_token_id,
|
| 173 |
+
eos_token_id=eos_token_id,
|
| 174 |
+
pad_token_id=pad_token_id,
|
| 175 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 176 |
+
**kwargs,
|
| 177 |
+
)
|
| 178 |
+
|
| 179 |
+
def _rope_scaling_validation(self):
|
| 180 |
+
"""
|
| 181 |
+
Validate the `rope_scaling` configuration.
|
| 182 |
+
"""
|
| 183 |
+
if self.rope_scaling is None:
|
| 184 |
+
return
|
| 185 |
+
|
| 186 |
+
if not isinstance(self.rope_scaling, dict) or len(self.rope_scaling) != 3:
|
| 187 |
+
raise ValueError(
|
| 188 |
+
"`rope_scaling` must be a dictionary with three fields, `type`, `short_factor` and `long_factor`, "
|
| 189 |
+
f"got {self.rope_scaling}"
|
| 190 |
+
)
|
| 191 |
+
rope_scaling_type = self.rope_scaling.get("type", None)
|
| 192 |
+
rope_scaling_short_factor = self.rope_scaling.get("short_factor", None)
|
| 193 |
+
rope_scaling_long_factor = self.rope_scaling.get("long_factor", None)
|
| 194 |
+
if rope_scaling_type is None or rope_scaling_type not in ["su", "yarn"]:
|
| 195 |
+
raise ValueError(f"`rope_scaling`'s type field must be one of ['su', 'yarn'], got {rope_scaling_type}")
|
| 196 |
+
if not (
|
| 197 |
+
isinstance(rope_scaling_short_factor, list)
|
| 198 |
+
and all(isinstance(x, (int, float)) for x in rope_scaling_short_factor)
|
| 199 |
+
):
|
| 200 |
+
raise ValueError(
|
| 201 |
+
f"`rope_scaling`'s short_factor field must be a list of numbers, got {rope_scaling_short_factor}"
|
| 202 |
+
)
|
| 203 |
+
if not len(rope_scaling_short_factor) == self.hidden_size // self.num_attention_heads // 2:
|
| 204 |
+
raise ValueError(
|
| 205 |
+
f"`rope_scaling`'s short_factor field must have length {self.hidden_size // self.num_attention_heads // 2}, got {len(rope_scaling_short_factor)}"
|
| 206 |
+
)
|
| 207 |
+
if not (
|
| 208 |
+
isinstance(rope_scaling_long_factor, list)
|
| 209 |
+
and all(isinstance(x, (int, float)) for x in rope_scaling_long_factor)
|
| 210 |
+
):
|
| 211 |
+
raise ValueError(
|
| 212 |
+
f"`rope_scaling`'s long_factor field must be a list of numbers, got {rope_scaling_long_factor}"
|
| 213 |
+
)
|
| 214 |
+
if not len(rope_scaling_long_factor) == self.hidden_size // self.num_attention_heads // 2:
|
| 215 |
+
raise ValueError(
|
| 216 |
+
f"`rope_scaling`'s long_factor field must have length {self.hidden_size // self.num_attention_heads // 2}, got {len(rope_scaling_long_factor)}"
|
| 217 |
+
)
|