OneScience commited on
Commit
cfbc06c
·
verified ·
1 Parent(s): 20ad887

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +27 -10
  2. LICENSE +467 -0
  3. README.md +321 -0
  4. checkpoints/evo2_nemo_7b/context/io.json +1 -0
  5. checkpoints/evo2_nemo_7b/context/model.yaml +302 -0
  6. checkpoints/evo2_nemo_7b/weights/.metadata +3 -0
  7. checkpoints/evo2_nemo_7b/weights/__0_0.distcp +3 -0
  8. checkpoints/evo2_nemo_7b/weights/__0_1.distcp +3 -0
  9. checkpoints/evo2_nemo_7b/weights/common.pt +3 -0
  10. checkpoints/evo2_nemo_7b/weights/metadata.json +1 -0
  11. config/config.yaml +13 -0
  12. config/genome_data_config.yaml +9 -0
  13. config/genome_preprocess_config.yaml +31 -0
  14. config/opengenome2.yml +177 -0
  15. configuration.json +15 -0
  16. data/data_mini/genome_data/chr20.fa +3 -0
  17. data/data_mini/genome_data/chr20.fa.gz +3 -0
  18. data/data_mini/genome_data/chr20_21_22.fa +3 -0
  19. data/data_mini/genome_data/chr21.fa +3 -0
  20. data/data_mini/genome_data/chr21.fa.gz +3 -0
  21. data/data_mini/genome_data/chr22.fa +3 -0
  22. data/data_mini/genome_data/chr22.fa.gz +3 -0
  23. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test.bin +3 -0
  24. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test.idx +0 -0
  25. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-description.txt +13 -0
  26. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-document_index.npy +3 -0
  27. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-sample_index.npy +3 -0
  28. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-shuffle_index.npy +3 -0
  29. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-description.txt +13 -0
  30. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-document_index.npy +3 -0
  31. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-sample_index.npy +3 -0
  32. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-shuffle_index.npy +3 -0
  33. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train.bin +3 -0
  34. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train.idx +0 -0
  35. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-description.txt +13 -0
  36. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-document_index.npy +3 -0
  37. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-sample_index.npy +3 -0
  38. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-shuffle_index.npy +3 -0
  39. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-description.txt +13 -0
  40. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-document_index.npy +3 -0
  41. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-sample_index.npy +3 -0
  42. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-shuffle_index.npy +3 -0
  43. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val.bin +3 -0
  44. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val.idx +0 -0
  45. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-description.txt +13 -0
  46. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-document_index.npy +3 -0
  47. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-sample_index.npy +3 -0
  48. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-shuffle_index.npy +3 -0
  49. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/cccf4722f9a5df3869a82454d596a5e6-GPTDataset-valid-description.txt +13 -0
  50. data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/cccf4722f9a5df3869a82454d596a5e6-GPTDataset-valid-document_index.npy +3 -0
.gitattributes CHANGED
@@ -1,35 +1,52 @@
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
 
 
 
 
 
 
 
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
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
  *.bz2 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
  *.model filter=lfs diff=lfs merge=lfs -text
12
  *.msgpack filter=lfs diff=lfs merge=lfs -text
 
 
13
  *.onnx filter=lfs diff=lfs merge=lfs -text
14
  *.ot filter=lfs diff=lfs merge=lfs -text
15
  *.parquet filter=lfs diff=lfs merge=lfs -text
16
  *.pb filter=lfs diff=lfs merge=lfs -text
 
 
 
17
  *.pth filter=lfs diff=lfs merge=lfs -text
18
  *.rar filter=lfs diff=lfs merge=lfs -text
 
19
  saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
  *.tar.* filter=lfs diff=lfs merge=lfs -text
 
21
  *.tflite filter=lfs diff=lfs merge=lfs -text
22
  *.tgz filter=lfs diff=lfs merge=lfs -text
 
23
  *.xz filter=lfs diff=lfs merge=lfs -text
24
  *.zip filter=lfs diff=lfs merge=lfs -text
25
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
26
+ *.tfevents* filter=lfs diff=lfs merge=lfs -text
27
+ *.db* filter=lfs diff=lfs merge=lfs -text
28
+ *.ark* filter=lfs diff=lfs merge=lfs -text
29
+ **/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
30
+ **/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
31
+ **/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
32
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
33
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
34
+ *.gguf* filter=lfs diff=lfs merge=lfs -text
35
+ *.ggml filter=lfs diff=lfs merge=lfs -text
36
+ *.llamafile* filter=lfs diff=lfs merge=lfs -text
37
+ *.pt2 filter=lfs diff=lfs merge=lfs -text
38
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
39
+ *.npy filter=lfs diff=lfs merge=lfs -text
40
+ *.npz filter=lfs diff=lfs merge=lfs -text
41
+ *.pickle filter=lfs diff=lfs merge=lfs -text
42
+ *.pkl filter=lfs diff=lfs merge=lfs -text
43
+ *.tar filter=lfs diff=lfs merge=lfs -text
44
+ *.wasm filter=lfs diff=lfs merge=lfs -text
45
  *.zst filter=lfs diff=lfs merge=lfs -text
46
  *tfevents* filter=lfs diff=lfs merge=lfs -text
47
+ checkpoints/evo2_nemo_7b/weights/__0_1.distcp filter=lfs diff=lfs merge=lfs -text
48
+ checkpoints/evo2_nemo_7b/weights/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
49
+ checkpoints/evo2_nemo_7b/weights/common.pt filter=lfs diff=lfs merge=lfs -text
50
+ *.fa filter=lfs diff=lfs merge=lfs -text
51
+ *.fa.gz filter=lfs diff=lfs merge=lfs -text
52
+ checkpoints/evo2_nemo_7b/weights/.metadata filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,467 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+ --
204
+
205
+ This repository also contains code from Hugging Face Inc., Google Research,
206
+ and Facebook (from their Fairseq project). Files from these
207
+ organizations have notices at the top of each file. Below are licenses
208
+ used in those files, as indicated.
209
+
210
+
211
+ ------------- LICENSE FOR NVIDIA code --------------
212
+
213
+
214
+ # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
215
+ #
216
+ # Redistribution and use in source and binary forms, with or without
217
+ # modification, are permitted provided that the following conditions
218
+ # are met:
219
+ # * Redistributions of source code must retain the above copyright
220
+ # notice, this list of conditions and the following disclaimer.
221
+ # * Redistributions in binary form must reproduce the above copyright
222
+ # notice, this list of conditions and the following disclaimer in the
223
+ # documentation and/or other materials provided with the distribution.
224
+ # * Neither the name of NVIDIA CORPORATION nor the names of its
225
+ # contributors may be used to endorse or promote products derived
226
+ # from this software without specific prior written permission.
227
+ #
228
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
229
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
230
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
231
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
232
+ # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
233
+ # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
234
+ # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
235
+ # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
236
+ # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
237
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
238
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
239
+
240
+ ------------- LICENSE FOR huggingface and Google Research code --------------
241
+
242
+
243
+ Apache License
244
+ Version 2.0, January 2004
245
+ http://www.apache.org/licenses/
246
+
247
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
248
+
249
+ 1. Definitions.
250
+
251
+ "License" shall mean the terms and conditions for use, reproduction,
252
+ and distribution as defined by Sections 1 through 9 of this document.
253
+
254
+ "Licensor" shall mean the copyright owner or entity authorized by
255
+ the copyright owner that is granting the License.
256
+
257
+ "Legal Entity" shall mean the union of the acting entity and all
258
+ other entities that control, are controlled by, or are under common
259
+ control with that entity. For the purposes of this definition,
260
+ "control" means (i) the power, direct or indirect, to cause the
261
+ direction or management of such entity, whether by contract or
262
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
263
+ outstanding shares, or (iii) beneficial ownership of such entity.
264
+
265
+ "You" (or "Your") shall mean an individual or Legal Entity
266
+ exercising permissions granted by this License.
267
+
268
+ "Source" form shall mean the preferred form for making modifications,
269
+ including but not limited to software source code, documentation
270
+ source, and configuration files.
271
+
272
+ "Object" form shall mean any form resulting from mechanical
273
+ transformation or translation of a Source form, including but
274
+ not limited to compiled object code, generated documentation,
275
+ and conversions to other media types.
276
+
277
+ "Work" shall mean the work of authorship, whether in Source or
278
+ Object form, made available under the License, as indicated by a
279
+ copyright notice that is included in or attached to the work
280
+ (an example is provided in the Appendix below).
281
+
282
+ "Derivative Works" shall mean any work, whether in Source or Object
283
+ form, that is based on (or derived from) the Work and for which the
284
+ editorial revisions, annotations, elaborations, or other modifications
285
+ represent, as a whole, an original work of authorship. For the purposes
286
+ of this License, Derivative Works shall not include works that remain
287
+ separable from, or merely link (or bind by name) to the interfaces of,
288
+ the Work and Derivative Works thereof.
289
+
290
+ "Contribution" shall mean any work of authorship, including
291
+ the original version of the Work and any modifications or additions
292
+ to that Work or Derivative Works thereof, that is intentionally
293
+ submitted to Licensor for inclusion in the Work by the copyright owner
294
+ or by an individual or Legal Entity authorized to submit on behalf of
295
+ the copyright owner. For the purposes of this definition, "submitted"
296
+ means any form of electronic, verbal, or written communication sent
297
+ to the Licensor or its representatives, including but not limited to
298
+ communication on electronic mailing lists, source code control systems,
299
+ and issue tracking systems that are managed by, or on behalf of, the
300
+ Licensor for the purpose of discussing and improving the Work, but
301
+ excluding communication that is conspicuously marked or otherwise
302
+ designated in writing by the copyright owner as "Not a Contribution."
303
+
304
+ "Contributor" shall mean Licensor and any individual or Legal Entity
305
+ on behalf of whom a Contribution has been received by Licensor and
306
+ subsequently incorporated within the Work.
307
+
308
+ 2. Grant of Copyright License. Subject to the terms and conditions of
309
+ this License, each Contributor hereby grants to You a perpetual,
310
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
311
+ copyright license to reproduce, prepare Derivative Works of,
312
+ publicly display, publicly perform, sublicense, and distribute the
313
+ Work and such Derivative Works in Source or Object form.
314
+
315
+ 3. Grant of Patent License. Subject to the terms and conditions of
316
+ this License, each Contributor hereby grants to You a perpetual,
317
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
318
+ (except as stated in this section) patent license to make, have made,
319
+ use, offer to sell, sell, import, and otherwise transfer the Work,
320
+ where such license applies only to those patent claims licensable
321
+ by such Contributor that are necessarily infringed by their
322
+ Contribution(s) alone or by combination of their Contribution(s)
323
+ with the Work to which such Contribution(s) was submitted. If You
324
+ institute patent litigation against any entity (including a
325
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
326
+ or a Contribution incorporated within the Work constitutes direct
327
+ or contributory patent infringement, then any patent licenses
328
+ granted to You under this License for that Work shall terminate
329
+ as of the date such litigation is filed.
330
+
331
+ 4. Redistribution. You may reproduce and distribute copies of the
332
+ Work or Derivative Works thereof in any medium, with or without
333
+ modifications, and in Source or Object form, provided that You
334
+ meet the following conditions:
335
+
336
+ (a) You must give any other recipients of the Work or
337
+ Derivative Works a copy of this License; and
338
+
339
+ (b) You must cause any modified files to carry prominent notices
340
+ stating that You changed the files; and
341
+
342
+ (c) You must retain, in the Source form of any Derivative Works
343
+ that You distribute, all copyright, patent, trademark, and
344
+ attribution notices from the Source form of the Work,
345
+ excluding those notices that do not pertain to any part of
346
+ the Derivative Works; and
347
+
348
+ (d) If the Work includes a "NOTICE" text file as part of its
349
+ distribution, then any Derivative Works that You distribute must
350
+ include a readable copy of the attribution notices contained
351
+ within such NOTICE file, excluding those notices that do not
352
+ pertain to any part of the Derivative Works, in at least one
353
+ of the following places: within a NOTICE text file distributed
354
+ as part of the Derivative Works; within the Source form or
355
+ documentation, if provided along with the Derivative Works; or,
356
+ within a display generated by the Derivative Works, if and
357
+ wherever such third-party notices normally appear. The contents
358
+ of the NOTICE file are for informational purposes only and
359
+ do not modify the License. You may add Your own attribution
360
+ notices within Derivative Works that You distribute, alongside
361
+ or as an addendum to the NOTICE text from the Work, provided
362
+ that such additional attribution notices cannot be construed
363
+ as modifying the License.
364
+
365
+ You may add Your own copyright statement to Your modifications and
366
+ may provide additional or different license terms and conditions
367
+ for use, reproduction, or distribution of Your modifications, or
368
+ for any such Derivative Works as a whole, provided Your use,
369
+ reproduction, and distribution of the Work otherwise complies with
370
+ the conditions stated in this License.
371
+
372
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
373
+ any Contribution intentionally submitted for inclusion in the Work
374
+ by You to the Licensor shall be under the terms and conditions of
375
+ this License, without any additional terms or conditions.
376
+ Notwithstanding the above, nothing herein shall supersede or modify
377
+ the terms of any separate license agreement you may have executed
378
+ with Licensor regarding such Contributions.
379
+
380
+ 6. Trademarks. This License does not grant permission to use the trade
381
+ names, trademarks, service marks, or product names of the Licensor,
382
+ except as required for reasonable and customary use in describing the
383
+ origin of the Work and reproducing the content of the NOTICE file.
384
+
385
+ 7. Disclaimer of Warranty. Unless required by applicable law or
386
+ agreed to in writing, Licensor provides the Work (and each
387
+ Contributor provides its Contributions) on an "AS IS" BASIS,
388
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
389
+ implied, including, without limitation, any warranties or conditions
390
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
391
+ PARTICULAR PURPOSE. You are solely responsible for determining the
392
+ appropriateness of using or redistributing the Work and assume any
393
+ risks associated with Your exercise of permissions under this License.
394
+
395
+ 8. Limitation of Liability. In no event and under no legal theory,
396
+ whether in tort (including negligence), contract, or otherwise,
397
+ unless required by applicable law (such as deliberate and grossly
398
+ negligent acts) or agreed to in writing, shall any Contributor be
399
+ liable to You for damages, including any direct, indirect, special,
400
+ incidental, or consequential damages of any character arising as a
401
+ result of this License or out of the use or inability to use the
402
+ Work (including but not limited to damages for loss of goodwill,
403
+ work stoppage, computer failure or malfunction, or any and all
404
+ other commercial damages or losses), even if such Contributor
405
+ has been advised of the possibility of such damages.
406
+
407
+ 9. Accepting Warranty or Additional Liability. While redistributing
408
+ the Work or Derivative Works thereof, You may choose to offer,
409
+ and charge a fee for, acceptance of support, warranty, indemnity,
410
+ or other liability obligations and/or rights consistent with this
411
+ License. However, in accepting such obligations, You may act only
412
+ on Your own behalf and on Your sole responsibility, not on behalf
413
+ of any other Contributor, and only if You agree to indemnify,
414
+ defend, and hold each Contributor harmless for any liability
415
+ incurred by, or claims asserted against, such Contributor by reason
416
+ of your accepting any such warranty or additional liability.
417
+
418
+ END OF TERMS AND CONDITIONS
419
+
420
+ APPENDIX: How to apply the Apache License to your work.
421
+
422
+ To apply the Apache License to your work, attach the following
423
+ boilerplate notice, with the fields enclosed by brackets "[]"
424
+ replaced with your own identifying information. (Don't include
425
+ the brackets!) The text should be enclosed in the appropriate
426
+ comment syntax for the file format. We also recommend that a
427
+ file or class name and description of purpose be included on the
428
+ same "printed page" as the copyright notice for easier
429
+ identification within third-party archives.
430
+
431
+ Copyright [yyyy] [name of copyright owner]
432
+
433
+ Licensed under the Apache License, Version 2.0 (the "License");
434
+ you may not use this file except in compliance with the License.
435
+ You may obtain a copy of the License at
436
+
437
+ http://www.apache.org/licenses/LICENSE-2.0
438
+
439
+ Unless required by applicable law or agreed to in writing, software
440
+ distributed under the License is distributed on an "AS IS" BASIS,
441
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
442
+ See the License for the specific language governing permissions and
443
+ limitations under the License.
444
+
445
+ ------------- LICENSE FOR Facebook Fairseq code --------------
446
+
447
+ MIT License
448
+
449
+ Copyright (c) Facebook, Inc. and its affiliates.
450
+
451
+ Permission is hereby granted, free of charge, to any person obtaining a copy
452
+ of this software and associated documentation files (the "Software"), to deal
453
+ in the Software without restriction, including without limitation the rights
454
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
455
+ copies of the Software, and to permit persons to whom the Software is
456
+ furnished to do so, subject to the following conditions:
457
+
458
+ The above copyright notice and this permission notice shall be included in all
459
+ copies or substantial portions of the Software.
460
+
461
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
462
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
463
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
464
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
465
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
466
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
467
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ frameworks:
3
+ - ""
4
+ language:
5
+ - en
6
+ - zh
7
+ license: apache-2.0
8
+ tags:
9
+ - OneScience
10
+ - life-science
11
+ - genomic-sequence-modeling
12
+ - DNA/RNA
13
+ tasks: []
14
+ ---
15
+
16
+ <p align="center">
17
+ <strong><span style="font-size: 30px;">Evo2</span></strong>
18
+ </p>
19
+
20
+ # Model Introduction
21
+
22
+ Evo2 is a large-scale foundation model for genomic sequences. It can generate, complete, and predict functions for DNA/RNA sequences. The model supports pretraining on large-scale genomic datasets and can be rapidly adapted to downstream tasks such as regulatory element prediction and variant effect assessment, providing a unified sequence modeling tool for genomics research.
23
+
24
+ # Model Description
25
+
26
+ Evo2 is built on a hybrid architecture that combines Hyena operators with convolutional gating, and supports context windows at the million-token scale. The model is pretrained on multi-species genomic data containing trillions of base pairs. It takes raw nucleotide sequences as input and supports autoregressive generation, sequence classification, and embedding extraction. Evo2 is compatible with multi-GPU distributed training and flexible data mixing, achieves leading performance on benchmarks such as GenBench, and is suitable for pretraining, fine-tuning, and downstream functional validation.
27
+
28
+ # Applicable Scenarios
29
+
30
+ | Scenario | Description |
31
+ | --- | --- |
32
+ | DNA/RNA sequence generation | Generate subsequent genomic sequence fragments from an input prompt |
33
+ | FASTA sequence prediction | Read FASTA input and output sequence prediction results |
34
+ | Local offline inference validation | Use the example inputs in this repository and a local checkpoint to verify the inference workflow end to end |
35
+ | Mini training workflow validation | Use `data/data_mini/genome_data/` to validate the training scripts, data loading, and checkpoint workflow |
36
+ | Cluster training adaptation | Use `scripts/train_slurm.py` to run training in a Slurm/cluster environment |
37
+ | Data preprocessing | Generate the `.bin/.idx` data required by the Byte-Level tokenizer from FASTA/JSON data |
38
+
39
+
40
+ # Usage
41
+
42
+ ## 1. Using OneCode
43
+
44
+ You can try intelligent one-click AI4S programming through the OneCode online environment:
45
+
46
+ [Try intelligent one-click AI4S programming](https://gitee.com/link?target=https%3A%2F%2Fweb-2069360198568017922-iaaj.ksai.scnet.cn%3A58043%2Fhome)
47
+
48
+ ## 2. Manual Installation and Usage
49
+
50
+ **Hardware Requirements**
51
+
52
+ - Running on a GPU or DCU is recommended.
53
+ - A CPU can be used for import checks and small-configuration connectivity validation, but full training and inference will be slow.
54
+ - DCU users need to install DTK in advance. DTK 25.04.2 or later is recommended, or the OneScience-recommended version that matches the current cluster.
55
+
56
+ ### Download the Model Package
57
+
58
+ ```bash
59
+ modelscope download --model OneScience/evo2 --local_dir ./evo2
60
+ cd evo2
61
+ ```
62
+
63
+ ### Install the Runtime Environment
64
+ #### DCU Environment
65
+
66
+ ```bash
67
+ # Activate DTK and CONDA first
68
+ conda create -n onescience311 python=3.11 -y
69
+ conda activate onescience311
70
+ # uv installation is supported
71
+ pip install onescience[bio] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
72
+ ```
73
+
74
+ If the scripts need to access the OneScience source code, set:
75
+
76
+ ```bash
77
+ export ONESCIENCE_ROOT=/path/to/onescience
78
+ ```
79
+
80
+ When run from this directory, the scripts automatically add the project root and `model/` to `sys.path`. You can also manually verify that the local package can be imported:
81
+
82
+ ```bash
83
+ export PYTHONPATH=$(pwd)/model:${PYTHONPATH:-}
84
+ python -c "import evo2; print('evo2 import ok')"
85
+ ```
86
+
87
+ ## 3. Quick Start
88
+
89
+ ### Quick Checks
90
+
91
+ View the entry-point arguments:
92
+
93
+ ```bash
94
+ python scripts/infer.py --help
95
+ python scripts/predict.py --help
96
+ python scripts/train.py --help
97
+ python scripts/train_slurm.py --help
98
+ ```
99
+
100
+ ## 4. Data and Weights
101
+
102
+ The example training data has been placed at:
103
+
104
+ ```text
105
+ data/data_mini/genome_data/
106
+ ```
107
+
108
+ It contains:
109
+
110
+ * `chr20.fa`, `chr21.fa`, `chr22.fa`, and their compressed versions
111
+ * Merged FASTA: `chr20_21_22.fa`
112
+ * Preprocessed binary data for training, validation, and testing: `preprocessed_data/`
113
+
114
+ The `dataset_prefix` in `config/genome_data_config.yaml` is a relative path. During actual runs, it should be used together with:
115
+
116
+ ```bash
117
+ --dataset-dir data/data_mini/genome_data
118
+ ```
119
+
120
+ By default, the 7B NeMo checkpoint is placed inside the repository:
121
+
122
+ ```text
123
+ checkpoints/evo2_nemo_7b/
124
+ ```
125
+
126
+ The inference and prediction entry points read this directory by default; training does not load a checkpoint by default. To fine-tune from existing weights or resume training, explicitly pass `--ckpt-dir checkpoints/evo2_nemo_7b` in the training command. You can also use `EVO2_CKPT_DIR` or `--ckpt-dir` to override it with another checkpoint path:
127
+
128
+ ```bash
129
+ export EVO2_CKPT_DIR=/path/to/evo2_nemo_7b
130
+ ```
131
+
132
+ The weight files are located under `/path/to/evo2/checkpoints/evo2_nemo_7b/weights`.
133
+
134
+ ## 5. Prompt-Based Generation Inference
135
+
136
+ `infer.py` writes results to `--output-file`, but it does not automatically create the parent directory. Create the output directory before the first run:
137
+
138
+ ```bash
139
+ mkdir -p outputs
140
+ ```
141
+
142
+ Minimal example:
143
+
144
+ ```bash
145
+ python scripts/infer.py \
146
+ --prompt "ATGCGT" \
147
+ --output-file outputs/evo2_generation.txt
148
+ ```
149
+
150
+ Common parameters:
151
+
152
+ | Parameter | Default | Description |
153
+ | --- | --- | --- |
154
+ | `--ckpt-dir` | `checkpoints/evo2_nemo_7b` | NeMo checkpoint directory; can be overridden with `EVO2_CKPT_DIR` |
155
+ | `--prompt` | Built-in E. coli classification-label prompt | Input sequence or text prompt |
156
+ | `--max-new-tokens` | `1024` | Maximum number of tokens to generate |
157
+ | `--temperature` | `1.0` | Sampling temperature |
158
+ | `--top-k` | `0` | top-k sampling |
159
+ | `--top-p` | `0.0` | top-p sampling |
160
+ | `--tensor-parallel-size` | `1` | Tensor parallel size |
161
+ | `--output-file` | Empty | Write to a file when specified; otherwise print logs |
162
+
163
+ ## 6. FASTA Prediction
164
+
165
+ The directory includes an example FASTA:
166
+
167
+ ```text
168
+ data/predict_example.fa
169
+ ```
170
+
171
+ Run prediction:
172
+
173
+ ```bash
174
+ python scripts/predict.py \
175
+ --fasta data/predict_example.fa \
176
+ --output-dir outputs/predict
177
+ ```
178
+
179
+ `predict.py` automatically creates `--output-dir`. If `--fasta` is not passed, it reads `data/predict_example.fa` by default; if `--output-dir` is not passed, it writes output to `outputs/predict` by default.
180
+
181
+ Common parameters:
182
+
183
+ | Parameter | Default | Description |
184
+ | --- | --- | --- |
185
+ | `--fasta` | `data/predict_example.fa` | Input FASTA file |
186
+ | `--ckpt-dir` | `checkpoints/evo2_nemo_7b` | NeMo checkpoint directory; can be overridden with `EVO2_CKPT_DIR` |
187
+ | `--output-dir` | `outputs/predict` | Prediction result directory |
188
+ | `--batch-size` | `1` | Prediction batch size |
189
+ | `--model-size` | `7b` | Model specification; available values are determined by NeMo `HYENA_MODEL_OPTIONS` |
190
+ | `--output-log-prob-seqs` | Disabled | Output sequence log probability |
191
+
192
+ `data/data_mini/genome_data/chr20.fa`, `chr21.fa`, and `chr22.fa` are relatively large chromosome-level FASTA files. Direct prediction may consume substantial GPU memory. It is recommended to split them into shorter fragments first, or use a multi-GPU parallel configuration.
193
+
194
+ ## 7. Training
195
+
196
+ The training entry point requires one of two options: pass `-d/--dataset-config`, or use `--mock-data`. For the built-in example data, `config/genome_data_config.yaml` and `data/data_mini/genome_data` are recommended.
197
+
198
+ Example for training the 1B architecture from scratch or validating the training workflow:
199
+
200
+ ```bash
201
+ python scripts/train.py \
202
+ -d config/genome_data_config.yaml \
203
+ --dataset-dir data/data_mini/genome_data \
204
+ --model-size 1b \
205
+ --result-dir results_1b \
206
+ --devices 8 \
207
+ --num-nodes 1 \
208
+ --seq-length 8192 \
209
+ --micro-batch-size 2 \
210
+ --lr 0.0001 \
211
+ --warmup-steps 5 \
212
+ --max-steps 1000 \
213
+ --clip-grad 1 \
214
+ --wd 0.01 \
215
+ --activation-checkpoint-recompute-num-layers 1 \
216
+ --val-check-interval 50 \
217
+ --limit-val-batches 2
218
+ ```
219
+
220
+ This example does not load a checkpoint and is suitable for validating the training workflow when 1B weights are unavailable. To fine-tune from a 1B NeMo checkpoint, additionally pass `--ckpt-dir /path/to/evo2_nemo_1b`.
221
+
222
+ Example for training the 7B long-context architecture from scratch or validating the training workflow:
223
+
224
+ ```bash
225
+ python scripts/train.py \
226
+ -d config/genome_data_config.yaml \
227
+ --dataset-dir data/data_mini/genome_data \
228
+ --model-size 7b_arc_longcontext \
229
+ --result-dir results_7b \
230
+ --devices 8 \
231
+ --num-nodes 1 \
232
+ --seq-length 1024 \
233
+ --micro-batch-size 1 \
234
+ --lr 0.0001 \
235
+ --warmup-steps 5 \
236
+ --max-steps 1000 \
237
+ --clip-grad 1 \
238
+ --wd 0.01 \
239
+ --activation-checkpoint-recompute-num-layers 1 \
240
+ --val-check-interval 50 \
241
+ --limit-val-batches 2
242
+ ```
243
+
244
+ This example does not load a checkpoint. If you need to fine-tune from an existing 7B NeMo checkpoint or resume training, additionally pass `--ckpt-dir checkpoints/evo2_nemo_7b` or another checkpoint path.
245
+
246
+ In a Slurm/cluster environment, replace the entry point with:
247
+
248
+ ```bash
249
+ python scripts/train_slurm.py ...
250
+ ```
251
+
252
+ Common training parameters:
253
+
254
+ The table below covers the main parameters used in the training examples above and in `scripts/train_evo2_1b.sh` and `scripts/train_evo2_7b.sh`. For more advanced parameters, run `python scripts/train.py --help`.
255
+
256
+ | Parameter | Default | Description |
257
+ | --- | --- | --- |
258
+ | `-d, --dataset-config` | Required, or use `--mock-data` | Training data configuration YAML |
259
+ | `--mock-data` | Disabled | Do not read real data; use mock data for connectivity testing. Mutually exclusive with `-d/--dataset-config` |
260
+ | `--dataset-dir` | `EVO2_DATASET_DIR` or `data/data_mini/genome_data` | Data root directory |
261
+ | `--ckpt-dir` | Empty | Initial checkpoint directory; pass explicitly when fine-tuning from existing weights or resuming training |
262
+ | `--model-size` | `7b` | Model specification. Common values include `1b`, `7b`, and `7b_arc_longcontext`; use `test` for testing |
263
+ | `--devices` | `1` | Number of devices on a single node |
264
+ | `--num-nodes` | `1` | Number of nodes |
265
+ | `--tensor-parallel-size` | `1` | Tensor parallel size |
266
+ | `--pipeline-model-parallel-size` | `1` | Pipeline model parallel size |
267
+ | `--context-parallel-size` | `1` | Context parallel size |
268
+ | `--sequence-parallel` | Disabled | Enable sequence parallel, usually used together with tensor parallelism |
269
+ | `--seq-length` | `8192` | Training sequence length |
270
+ | `--micro-batch-size` | `1` | Micro batch size |
271
+ | `--global-batch-size` | Automatically inferred | Global batch size |
272
+ | `--grad-acc-batches` | `1` | Number of gradient accumulation batches, used to infer the global batch size |
273
+ | `--lr` | `3e-4` | Learning rate, explicitly set to `0.0001` in the examples |
274
+ | `--min-lr` | `3e-5` | Minimum learning rate of the cosine scheduler |
275
+ | `--warmup-steps` | `2500` | Number of warmup steps, explicitly set to `5` in the examples |
276
+ | `--constant-steps` | `80000` | Number of steps for which the learning rate stays constant |
277
+ | `--max-steps` | `500000` | Number of training steps |
278
+ | `--wd` | `0.01` | Optimizer weight decay |
279
+ | `--clip-grad` | `1.0` | Gradient clipping threshold |
280
+ | `--workers` | `8` | Number of DataLoader workers |
281
+ | `--activation-checkpoint-recompute-num-layers` | Empty | Override the number of activation recomputation layers; explicitly set to `1` in the examples |
282
+ | `--val-check-interval` | Empty | Validation and checkpoint check interval; explicitly set to `50` in the examples |
283
+ | `--limit-val-batches` | `20` | Maximum number of batches to run per validation; explicitly set to `2` in the examples |
284
+ | `--result-dir` | `./results` | Log and result directory |
285
+ | `--experiment-name` | `evo2` | Experiment name, which affects the log directory |
286
+ | `--disable-checkpointing` | Not passed by default; checkpoint callback enabled | Pass this parameter during connectivity tests to disable the checkpoint callback |
287
+ | `--no-save-last-checkpoint` | Save the last checkpoint by default | Disable saving the last checkpoint; often used together with `--disable-checkpointing` for quick tests |
288
+ | `--save-top-k` | `5` | Number of best checkpoints to save |
289
+ | `--ckpt-async-save` | Disabled | Enable asynchronous checkpoint saving |
290
+
291
+ ## 8. Data Preprocessing
292
+
293
+ The current example training data has already been preprocessed. To process new FASTA or JSON data, use:
294
+
295
+ ```bash
296
+ bash scripts/tools/data_process/preprocess_data_fasta.sh
297
+ bash scripts/tools/data_process/preprocess_data_json.sh
298
+ ```
299
+
300
+ Related configurations:
301
+
302
+ ```text
303
+ config/genome_preprocess_config.yaml
304
+ config/genome_data_config.yaml
305
+ ```
306
+
307
+ # Official OneScience Information
308
+
309
+ | Platform | OneScience Main Repository | Skills Repository |
310
+ | --- | --- | --- |
311
+ | Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
312
+ | GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
313
+
314
+ # Citations and License
315
+
316
+ - Original Evo2 paper: [Genome modelling and design across all domains of life with Evo 2](https://doi.org/10.1038/s41586-026-10176-5).
317
+ - The original Evo2 code uses the Apache License 2.0. See `LICENSE` in this repository. Original license source: [ArcInstitute/evo2 LICENSE](https://github.com/ArcInstitute/evo2/blob/main/LICENSE).
318
+ - The Evo2 7B model weights are sourced from Hugging Face [`arcinstitute/evo2_7b`](https://huggingface.co/arcinstitute/evo2_7b). In this repository, `checkpoints/evo2_nemo_7b` is the converted NeMo checkpoint format. The original weight license is Apache-2.0.
319
+ - The example dataset `data/data_mini/genome_data/` was downloaded and preprocessed from the hg38 `chr20`, `chr21`, and `chr22` chromosome FASTA files provided by the UCSC Genome Browser. It is used only to validate the training and inference workflows. See the data download directory: [UCSC hg38 chromosomes](https://hgdownload.soe.ucsc.edu/goldenpath/hg38/chromosomes/).
320
+ - Use of UCSC hg38 data must comply with the UCSC Genome Browser data usage terms. See: [UCSC Terms of Use](https://genome.ucsc.edu/license/).
321
+ - If you use this repository, the model weights, or generated results in research, it is recommended to cite the original Evo2 paper, the model weight source, the UCSC hg38 data source, and relevant OneScience project information, and to add citations for downstream analysis tools or datasets according to the actual task.
checkpoints/evo2_nemo_7b/context/io.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"root": {"type": "ref", "key": "trainer_context_1"}, "objects": {"tuple_1": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "tensor_model_parallel_size"], ["Index(index=1)", "pipeline_model_parallel_comm_backend"], ["Index(index=2)", "pipeline_model_parallel_size"], ["Index(index=3)", "virtual_pipeline_model_parallel_size"], ["Index(index=4)", "sequence_parallel"], ["Index(index=5)", "context_parallel_size"], ["Index(index=6)", "expert_model_parallel_size"], ["Index(index=7)", "expert_tensor_parallel_size"], ["Index(index=8)", "moe_extended_tp"], ["Index(index=9)", "use_te_rng_tracker"], ["Index(index=10)", "pipeline_dtype"], ["Index(index=11)", "microbatch_group_size_per_vp_stage"], ["Index(index=12)", "num_layers_in_first_pipeline_stage"], ["Index(index=13)", "num_layers_in_last_pipeline_stage"], ["Index(index=14)", "pipeline_model_parallel_layout"], ["Index(index=15)", "account_for_embedding_in_pipeline_split"], ["Index(index=16)", "account_for_loss_in_pipeline_split"]], "metadata": null}, "dict_1": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_2": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.collections.llm.gpt.model.hyena", "name": "Hyena7bConfig"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_1"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_1"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_2"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "hyena7b_config_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='tensor_model_parallel_size')", {"type": "leaf", "value": 1, "paths": ["<root>.model.config.tensor_model_parallel_size"]}], ["Attr(name='pipeline_model_parallel_comm_backend')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.pipeline_model_parallel_comm_backend"]}], ["Attr(name='pipeline_model_parallel_size')", {"type": "leaf", "value": 1, "paths": ["<root>.model.config.pipeline_model_parallel_size"]}], ["Attr(name='virtual_pipeline_model_parallel_size')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.virtual_pipeline_model_parallel_size"]}], ["Attr(name='sequence_parallel')", {"type": "leaf", "value": false, "paths": ["<root>.model.config.sequence_parallel"]}], ["Attr(name='context_parallel_size')", {"type": "leaf", "value": 1, "paths": ["<root>.model.config.context_parallel_size"]}], ["Attr(name='expert_model_parallel_size')", {"type": "leaf", "value": 1, "paths": ["<root>.model.config.expert_model_parallel_size"]}], ["Attr(name='expert_tensor_parallel_size')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.expert_tensor_parallel_size"]}], ["Attr(name='moe_extended_tp')", {"type": "leaf", "value": false, "paths": ["<root>.model.config.moe_extended_tp"]}], ["Attr(name='use_te_rng_tracker')", {"type": "leaf", "value": false, "paths": ["<root>.model.config.use_te_rng_tracker"]}], ["Attr(name='pipeline_dtype')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.pipeline_dtype"]}], ["Attr(name='microbatch_group_size_per_vp_stage')", {"type": "leaf", "value": 1, "paths": ["<root>.model.config.microbatch_group_size_per_vp_stage"]}], ["Attr(name='num_layers_in_first_pipeline_stage')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.num_layers_in_first_pipeline_stage"]}], ["Attr(name='num_layers_in_last_pipeline_stage')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.num_layers_in_last_pipeline_stage"]}], ["Attr(name='pipeline_model_parallel_layout')", {"type": "leaf", "value": null, "paths": ["<root>.model.config.pipeline_model_parallel_layout"]}], ["Attr(name='account_for_embedding_in_pipeline_split')", {"type": "leaf", "value": false, "paths": ["<root>.model.config.account_for_embedding_in_pipeline_split"]}], ["Attr(name='account_for_loss_in_pipeline_split')", {"type": "leaf", "value": false, "paths": ["<root>.model.config.account_for_loss_in_pipeline_split"]}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_1"}, "paths": ["<root>.model.config"]}, "tuple_2": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "optimizer"], ["Index(index=1)", "lr"], ["Index(index=2)", "min_lr"], ["Index(index=3)", "decoupled_lr"], ["Index(index=4)", "decoupled_min_lr"], ["Index(index=5)", "weight_decay"], ["Index(index=6)", "fp8_recipe"], ["Index(index=7)", "fp16"], ["Index(index=8)", "bf16"], ["Index(index=9)", "reuse_grad_buf_for_mxfp8_param_ag"], ["Index(index=10)", "params_dtype"], ["Index(index=11)", "use_precision_aware_optimizer"], ["Index(index=12)", "store_param_remainders"], ["Index(index=13)", "main_grads_dtype"], ["Index(index=14)", "main_params_dtype"], ["Index(index=15)", "exp_avg_dtype"], ["Index(index=16)", "exp_avg_sq_dtype"], ["Index(index=17)", "loss_scale"], ["Index(index=18)", "initial_loss_scale"], ["Index(index=19)", "min_loss_scale"], ["Index(index=20)", "loss_scale_window"], ["Index(index=21)", "hysteresis"], ["Index(index=22)", "adam_beta1"], ["Index(index=23)", "adam_beta2"], ["Index(index=24)", "adam_eps"], ["Index(index=25)", "sgd_momentum"], ["Index(index=26)", "use_distributed_optimizer"], ["Index(index=27)", "overlap_param_gather_with_optimizer_step"], ["Index(index=28)", "optimizer_cpu_offload"], ["Index(index=29)", "optimizer_offload_fraction"], ["Index(index=30)", "use_torch_optimizer_for_cpu_offload"], ["Index(index=31)", "overlap_cpu_optimizer_d2h_h2d"], ["Index(index=32)", "pin_cpu_grads"], ["Index(index=33)", "pin_cpu_params"], ["Index(index=34)", "clip_grad"], ["Index(index=35)", "log_num_zeros_in_grad"], ["Index(index=36)", "barrier_with_L1_time"], ["Index(index=37)", "timers"], ["Index(index=38)", "config_logger_dir"]], "metadata": null}, "dict_3": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_4": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_2": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "megatron.core.optimizer.optimizer_config", "name": "OptimizerConfig"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_2"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_3"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_4"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "optimizer_config_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='optimizer')", {"type": "leaf", "value": "adam", "paths": ["<root>.model.optim.config.optimizer"]}], ["Attr(name='lr')", {"type": "leaf", "value": 0.0001, "paths": ["<root>.model.optim.config.lr"]}], ["Attr(name='min_lr')", {"type": "leaf", "value": null, "paths": ["<root>.model.optim.config.min_lr"]}], ["Attr(name='decoupled_lr')", {"type": "leaf", "value": null, "paths": ["<root>.model.optim.config.decoupled_lr"]}], ["Attr(name='decoupled_min_lr')", {"type": "leaf", "value": null, "paths": ["<root>.model.optim.config.decoupled_min_lr"]}], ["Attr(name='weight_decay')", {"type": "leaf", "value": 0.01, "paths": ["<root>.model.optim.config.weight_decay"]}], ["Attr(name='fp8_recipe')", {"type": "leaf", "value": null, "paths": ["<root>.model.optim.config.fp8_recipe"]}], ["Attr(name='fp16')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.fp16"]}], ["Attr(name='bf16')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.bf16"]}], ["Attr(name='reuse_grad_buf_for_mxfp8_param_ag')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.reuse_grad_buf_for_mxfp8_param_ag"]}], ["Attr(name='params_dtype')", {"type": "pyref", "module": "torch", "name": "float32", "paths": ["<root>.model.optim.config.params_dtype", "<root>.model.optim.config.main_grads_dtype", "<root>.model.optim.config.main_params_dtype", "<root>.model.optim.config.exp_avg_dtype", "<root>.model.optim.config.exp_avg_sq_dtype"]}], ["Attr(name='use_precision_aware_optimizer')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.use_precision_aware_optimizer"]}], ["Attr(name='store_param_remainders')", {"type": "leaf", "value": true, "paths": ["<root>.model.optim.config.store_param_remainders"]}], ["Attr(name='main_grads_dtype')", {"type": "pyref", "module": "torch", "name": "float32", "paths": ["<root>.model.optim.config.params_dtype", "<root>.model.optim.config.main_grads_dtype", "<root>.model.optim.config.main_params_dtype", "<root>.model.optim.config.exp_avg_dtype", "<root>.model.optim.config.exp_avg_sq_dtype"]}], ["Attr(name='main_params_dtype')", {"type": "pyref", "module": "torch", "name": "float32", "paths": ["<root>.model.optim.config.params_dtype", "<root>.model.optim.config.main_grads_dtype", "<root>.model.optim.config.main_params_dtype", "<root>.model.optim.config.exp_avg_dtype", "<root>.model.optim.config.exp_avg_sq_dtype"]}], ["Attr(name='exp_avg_dtype')", {"type": "pyref", "module": "torch", "name": "float32", "paths": ["<root>.model.optim.config.params_dtype", "<root>.model.optim.config.main_grads_dtype", "<root>.model.optim.config.main_params_dtype", "<root>.model.optim.config.exp_avg_dtype", "<root>.model.optim.config.exp_avg_sq_dtype"]}], ["Attr(name='exp_avg_sq_dtype')", {"type": "pyref", "module": "torch", "name": "float32", "paths": ["<root>.model.optim.config.params_dtype", "<root>.model.optim.config.main_grads_dtype", "<root>.model.optim.config.main_params_dtype", "<root>.model.optim.config.exp_avg_dtype", "<root>.model.optim.config.exp_avg_sq_dtype"]}], ["Attr(name='loss_scale')", {"type": "leaf", "value": null, "paths": ["<root>.model.optim.config.loss_scale"]}], ["Attr(name='initial_loss_scale')", {"type": "leaf", "value": 4294967296, "paths": ["<root>.model.optim.config.initial_loss_scale"]}], ["Attr(name='min_loss_scale')", {"type": "leaf", "value": 1.0, "paths": ["<root>.model.optim.config.min_loss_scale"]}], ["Attr(name='loss_scale_window')", {"type": "leaf", "value": 1000, "paths": ["<root>.model.optim.config.loss_scale_window"]}], ["Attr(name='hysteresis')", {"type": "leaf", "value": 2, "paths": ["<root>.model.optim.config.hysteresis"]}], ["Attr(name='adam_beta1')", {"type": "leaf", "value": 0.9, "paths": ["<root>.model.optim.config.adam_beta1"]}], ["Attr(name='adam_beta2')", {"type": "leaf", "value": 0.999, "paths": ["<root>.model.optim.config.adam_beta2"]}], ["Attr(name='adam_eps')", {"type": "leaf", "value": 1e-08, "paths": ["<root>.model.optim.config.adam_eps"]}], ["Attr(name='sgd_momentum')", {"type": "leaf", "value": 0.9, "paths": ["<root>.model.optim.config.sgd_momentum"]}], ["Attr(name='use_distributed_optimizer')", {"type": "leaf", "value": true, "paths": ["<root>.model.optim.config.use_distributed_optimizer"]}], ["Attr(name='overlap_param_gather_with_optimizer_step')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.overlap_param_gather_with_optimizer_step"]}], ["Attr(name='optimizer_cpu_offload')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.optimizer_cpu_offload"]}], ["Attr(name='optimizer_offload_fraction')", {"type": "leaf", "value": 0.0, "paths": ["<root>.model.optim.config.optimizer_offload_fraction"]}], ["Attr(name='use_torch_optimizer_for_cpu_offload')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.use_torch_optimizer_for_cpu_offload"]}], ["Attr(name='overlap_cpu_optimizer_d2h_h2d')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.overlap_cpu_optimizer_d2h_h2d"]}], ["Attr(name='pin_cpu_grads')", {"type": "leaf", "value": true, "paths": ["<root>.model.optim.config.pin_cpu_grads"]}], ["Attr(name='pin_cpu_params')", {"type": "leaf", "value": true, "paths": ["<root>.model.optim.config.pin_cpu_params"]}], ["Attr(name='clip_grad')", {"type": "leaf", "value": 1.0, "paths": ["<root>.model.optim.config.clip_grad"]}], ["Attr(name='log_num_zeros_in_grad')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.log_num_zeros_in_grad"]}], ["Attr(name='barrier_with_L1_time')", {"type": "leaf", "value": false, "paths": ["<root>.model.optim.config.barrier_with_L1_time"]}], ["Attr(name='timers')", {"type": "leaf", "value": null, "paths": ["<root>.model.optim.config.timers"]}], ["Attr(name='config_logger_dir')", {"type": "leaf", "value": "", "paths": ["<root>.model.optim.config.config_logger_dir"]}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_2"}, "paths": ["<root>.model.optim.config"]}, "tuple_3": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "config"]], "metadata": null}, "dict_5": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_6": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_3": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.lightning.pytorch.optim.megatron", "name": "MegatronOptimizerModule"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_3"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_5"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_6"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "megatron_optimizer_module_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='config')", {"type": "ref", "key": "optimizer_config_1"}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_3"}, "paths": ["<root>.model.optim"]}, "dict_7": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}, "paths": ["<root>.model.tokenizer.special_tokens"]}, "tuple_4": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "special_tokens"]], "metadata": null}, "dict_8": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_9": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_4": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.collections.common.tokenizers.bytelevel_tokenizers", "name": "ByteLevelTokenizer"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_4"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_8"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_9"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "byte_level_tokenizer_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='special_tokens')", {"type": "ref", "key": "dict_7"}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_4"}, "paths": ["<root>.model.tokenizer"]}, "tuple_5": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "config"], ["Index(index=1)", "optim"], ["Index(index=2)", "tokenizer"]], "metadata": null}, "dict_10": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_11": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_5": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.collections.llm.gpt.model.hyena", "name": "HyenaModel"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_5"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_10"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_11"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "hyena_model_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='config')", {"type": "ref", "key": "hyena7b_config_1"}], ["Attr(name='optim')", {"type": "ref", "key": "megatron_optimizer_module_1"}], ["Attr(name='tokenizer')", {"type": "ref", "key": "byte_level_tokenizer_1"}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_5"}, "paths": ["<root>.model"]}, "tuple_6": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "always_save_context"]], "metadata": null}, "dict_12": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [["Key(key='always_save_context')", {"type": "leaf", "value": true, "paths": ["<root>.trainer.strategy.kwargs['always_save_context']"]}]], "metadata": {"type": "ref", "key": "tuple_6"}, "paths": ["<root>.trainer.strategy.kwargs"]}, "tuple_7": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "ckpt_save_optimizer"], ["Index(index=1)", "save_ckpt_format"], ["Index(index=2)", "ckpt_async_save"], ["Index(index=3)", "kwargs"]], "metadata": null}, "dict_13": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_14": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_6": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.lightning.pytorch.strategies.megatron_strategy", "name": "MegatronStrategy"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_7"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_13"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_14"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "megatron_strategy_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='ckpt_save_optimizer')", {"type": "leaf", "value": false, "paths": ["<root>.trainer.strategy.ckpt_save_optimizer"]}], ["Attr(name='save_ckpt_format')", {"type": "leaf", "value": "torch_dist", "paths": ["<root>.trainer.strategy.save_ckpt_format"]}], ["Attr(name='ckpt_async_save')", {"type": "leaf", "value": false, "paths": ["<root>.trainer.strategy.ckpt_async_save"]}], ["Attr(name='kwargs')", {"type": "ref", "key": "dict_12"}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_6"}, "paths": ["<root>.trainer.strategy"]}, "tuple_8": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "accelerator"], ["Index(index=1)", "strategy"], ["Index(index=2)", "devices"]], "metadata": null}, "dict_15": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_16": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_7": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.lightning.pytorch.trainer", "name": "Trainer"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_8"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_15"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_16"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "trainer_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='accelerator')", {"type": "leaf", "value": "cpu", "paths": ["<root>.trainer.accelerator"]}], ["Attr(name='strategy')", {"type": "ref", "key": "megatron_strategy_1"}], ["Attr(name='devices')", {"type": "leaf", "value": 1, "paths": ["<root>.trainer.devices"]}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_7"}, "paths": ["<root>.trainer"]}, "dict_17": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}, "paths": ["<root>.extra"]}, "tuple_9": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [["Index(index=0)", "model"], ["Index(index=1)", "trainer"], ["Index(index=2)", "extra"]], "metadata": null}, "dict_18": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "dict_19": {"type": {"type": "pyref", "module": "builtins", "name": "dict"}, "items": [], "metadata": {"type": {"type": "pyref", "module": "builtins", "name": "tuple"}, "items": [], "metadata": null}}, "buildable_traverser_metadata_8": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}, "items": [["Attr(name='fn_or_cls')", {"type": "pyref", "module": "nemo.lightning.io.pl", "name": "TrainerContext"}], ["Attr(name='argument_names')", {"type": "ref", "key": "tuple_9"}], ["Attr(name='argument_tags')", {"type": "ref", "key": "dict_18"}], ["Attr(name='argument_history')", {"type": "ref", "key": "dict_19"}]], "metadata": {"type": "pyref", "module": "fiddle._src.config", "name": "BuildableTraverserMetadata"}}, "trainer_context_1": {"type": {"type": "pyref", "module": "fiddle._src.config", "name": "Config"}, "items": [["Attr(name='model')", {"type": "ref", "key": "hyena_model_1"}], ["Attr(name='trainer')", {"type": "ref", "key": "trainer_1"}], ["Attr(name='extra')", {"type": "ref", "key": "dict_17"}]], "metadata": {"type": "ref", "key": "buildable_traverser_metadata_8"}, "paths": ["<root>"]}}, "refcounts": {"tuple_1": 1, "dict_1": 1, "dict_2": 1, "buildable_traverser_metadata_1": 1, "hyena7b_config_1": 1, "tuple_2": 1, "dict_3": 1, "dict_4": 1, "buildable_traverser_metadata_2": 1, "optimizer_config_1": 1, "tuple_3": 1, "dict_5": 1, "dict_6": 1, "buildable_traverser_metadata_3": 1, "megatron_optimizer_module_1": 1, "dict_7": 1, "tuple_4": 1, "dict_8": 1, "dict_9": 1, "buildable_traverser_metadata_4": 1, "byte_level_tokenizer_1": 1, "tuple_5": 1, "dict_10": 1, "dict_11": 1, "buildable_traverser_metadata_5": 1, "hyena_model_1": 1, "tuple_6": 1, "dict_12": 1, "tuple_7": 1, "dict_13": 1, "dict_14": 1, "buildable_traverser_metadata_6": 1, "megatron_strategy_1": 1, "tuple_8": 1, "dict_15": 1, "dict_16": 1, "buildable_traverser_metadata_7": 1, "trainer_1": 1, "dict_17": 1, "tuple_9": 1, "dict_18": 1, "dict_19": 1, "buildable_traverser_metadata_8": 1, "trainer_context_1": 1}, "version": "0.0.1"}
checkpoints/evo2_nemo_7b/context/model.yaml ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _target_: nemo.collections.llm.gpt.model.hyena.HyenaModel
2
+ config:
3
+ _cpu_offloading_context: null
4
+ _target_: nemo.collections.llm.gpt.model.hyena.Hyena7bConfig
5
+ account_for_embedding_in_pipeline_split: false
6
+ account_for_loss_in_pipeline_split: false
7
+ activation_func:
8
+ _call_: false
9
+ _target_: torch._C._nn.gelu
10
+ activation_func_fp8_input_store: false
11
+ add_attn_proj_bias: true
12
+ add_bias_linear: false
13
+ add_bias_output: false
14
+ add_qkv_bias: false
15
+ apply_query_key_layer_scaling: false
16
+ apply_residual_connection_post_layernorm: false
17
+ apply_rope_fusion: true
18
+ async_tensor_model_parallel_allreduce: false
19
+ attention_backend:
20
+ _call_: true
21
+ _target_: megatron.core.transformer.enums.AttnBackend
22
+ attention_dropout: 0.0
23
+ attention_softmax_in_fp32: true
24
+ autocast_dtype: null
25
+ barrier_with_L1_time: true
26
+ batch_p2p_comm: true
27
+ batch_p2p_sync: true
28
+ bf16: true
29
+ bias_activation_fusion: true
30
+ bias_dropout_add_fusion: true
31
+ bias_dropout_fusion: false
32
+ calculate_per_token_loss: false
33
+ clone_scatter_output_in_embedding: true
34
+ config_logger_dir: ''
35
+ context_parallel_size: 1
36
+ cp_comm_type: null
37
+ cpu_offloading: false
38
+ cpu_offloading_activations: true
39
+ cpu_offloading_num_layers: 0
40
+ cpu_offloading_weights: true
41
+ cross_entropy_fusion_impl: native
42
+ cross_entropy_loss_fusion: false
43
+ cuda_graph_retain_backward_graph: false
44
+ cuda_graph_scope: full
45
+ cuda_graph_use_single_mempool: false
46
+ cuda_graph_warmup_steps: 3
47
+ data_step_fn:
48
+ _call_: false
49
+ _target_: nemo.collections.llm.gpt.model.base.gpt_data_step
50
+ deallocate_pipeline_outputs: false
51
+ defer_embedding_wgrad_compute: false
52
+ delay_wgrad_compute: false
53
+ deterministic_mode: false
54
+ disable_bf16_reduced_precision_matmul: false
55
+ disable_parameter_transpose_cache: false
56
+ distribute_saved_activations: null
57
+ embedding_init_method: null
58
+ embedding_init_method_std: null
59
+ enable_autocast: false
60
+ enable_cuda_graph: false
61
+ expert_model_parallel_size: 1
62
+ expert_tensor_parallel_size: null
63
+ external_cuda_graph: false
64
+ ffn_hidden_size: 11008
65
+ finalize_model_grads_func: null
66
+ first_last_layers_bf16: false
67
+ flash_decode: false
68
+ forward_step_fn:
69
+ _call_: false
70
+ _target_: nemo.collections.llm.gpt.model.hyena.hyena_forward_step
71
+ fp16: false
72
+ fp16_lm_cross_entropy: false
73
+ fp32_residual_connection: true
74
+ fp8: null
75
+ fp8_amax_compute_algo: most_recent
76
+ fp8_amax_history_len: 1
77
+ fp8_dot_product_attention: false
78
+ fp8_interval: 1
79
+ fp8_margin: 0
80
+ fp8_multi_head_attention: false
81
+ fp8_param: false
82
+ fp8_recipe: delayed
83
+ fp8_wgrad: true
84
+ gated_linear_unit: true
85
+ get_attention_mask_from_fusion: false
86
+ grad_scale_func: null
87
+ grad_sync_func: null
88
+ gradient_accumulation_fusion: false
89
+ hetereogenous_dist_checkpoint: false
90
+ heterogeneous_block_specs: false
91
+ hidden_dropout: 0.0
92
+ hidden_size: 4096
93
+ hierarchical_context_parallel_sizes: null
94
+ hybrid_attention_ratio: 0.0
95
+ hybrid_mlp_ratio: 0.0
96
+ hybrid_override_pattern: SDH*SDHSDH*SDHSDH*SDHSDH*SDHSDH*
97
+ hyena_filter_no_wd: true
98
+ hyena_init_method: small_init
99
+ hyena_output_layer_init_method: wang_init
100
+ inference_rng_tracker: false
101
+ init_method: null
102
+ init_method_std: 0.02
103
+ init_model_with_meta_device: false
104
+ is_hybrid_model: false
105
+ kv_channels: null
106
+ layernorm_epsilon: 1.0e-06
107
+ layernorm_zero_centered_gamma: false
108
+ make_vocab_size_divisible_by: 8
109
+ mamba_head_dim: 64
110
+ mamba_num_groups: 8
111
+ mamba_num_heads: null
112
+ mamba_state_dim: 128
113
+ mapping_type: base
114
+ masked_softmax_fusion: false
115
+ memory_efficient_layer_norm: false
116
+ microbatch_group_size_per_vp_stage: 1
117
+ mlp_chunks_for_prefill: 1
118
+ moe_apply_probs_on_input: false
119
+ moe_aux_loss_coeff: 0
120
+ moe_deepep_num_sms: 20
121
+ moe_enable_deepep: false
122
+ moe_expert_capacity_factor: null
123
+ moe_extended_tp: false
124
+ moe_ffn_hidden_size: null
125
+ moe_grouped_gemm: false
126
+ moe_input_jitter_eps: null
127
+ moe_layer_freq: 1
128
+ moe_layer_recompute: false
129
+ moe_pad_expert_input_to_capacity: false
130
+ moe_per_layer_logging: false
131
+ moe_permute_fusion: false
132
+ moe_router_bias_update_rate: 0.001
133
+ moe_router_dtype: null
134
+ moe_router_enable_expert_bias: false
135
+ moe_router_force_load_balancing: false
136
+ moe_router_group_topk: null
137
+ moe_router_load_balancing_type: aux_loss
138
+ moe_router_num_groups: null
139
+ moe_router_padding_for_fp8: false
140
+ moe_router_pre_softmax: false
141
+ moe_router_score_function: softmax
142
+ moe_router_topk: 2
143
+ moe_router_topk_limited_devices: null
144
+ moe_router_topk_scaling_factor: null
145
+ moe_shared_expert_intermediate_size: null
146
+ moe_shared_expert_overlap: false
147
+ moe_token_dispatcher_type: allgather
148
+ moe_token_drop_policy: probs
149
+ moe_token_dropping: false
150
+ moe_use_legacy_grouped_gemm: false
151
+ moe_z_loss_coeff: null
152
+ mrope_section: null
153
+ mtp_loss_scaling_factor: null
154
+ mtp_num_layers: null
155
+ multi_latent_attention: false
156
+ no_rope_freq: null
157
+ no_sync_func: null
158
+ normalization: RMSNorm
159
+ num_attention_heads: 32
160
+ num_groups_hyena: 4096
161
+ num_groups_hyena_medium: 256
162
+ num_groups_hyena_short: 256
163
+ num_layers: 32
164
+ num_layers_at_end_in_bf16: 1
165
+ num_layers_at_start_in_bf16: 1
166
+ num_layers_in_first_pipeline_stage: null
167
+ num_layers_in_last_pipeline_stage: null
168
+ num_microbatches_with_partial_activation_checkpoints: null
169
+ num_moe_experts: null
170
+ num_query_groups: null
171
+ output_layer_init_method: null
172
+ overlap_p2p_comm: false
173
+ overlap_p2p_comm_warmup_flush: false
174
+ parallel_output: true
175
+ param_sync_func: null
176
+ params_dtype:
177
+ _call_: false
178
+ _target_: torch.bfloat16
179
+ perform_initialization: true
180
+ persist_layer_norm: false
181
+ pipeline_dtype: null
182
+ pipeline_model_parallel_comm_backend: null
183
+ pipeline_model_parallel_layout: null
184
+ pipeline_model_parallel_size: 1
185
+ pipeline_model_parallel_split_rank: null
186
+ position_embedding_type: rope
187
+ post_process: true
188
+ pre_process: true
189
+ qk_layernorm: false
190
+ quant_recipe: null
191
+ recompute_granularity: full
192
+ recompute_method: uniform
193
+ recompute_modules: null
194
+ recompute_num_layers: 4
195
+ remove_activation_post_first_layer: true
196
+ rotary_base: 10000
197
+ rotary_interleaved: false
198
+ rotary_percent: 1.0
199
+ seq_len_interpolation_factor: null
200
+ seq_length: 8192
201
+ sequence_parallel: false
202
+ softmax_scale: null
203
+ symmetric_ar_type: null
204
+ tensor_model_parallel_size: 1
205
+ test_mode: false
206
+ timers: null
207
+ to_upper: normalized_weighted
208
+ tokenizer_library: byte-level
209
+ tokenizer_model_path: null
210
+ tp_comm_atomic_ag: false
211
+ tp_comm_atomic_rs: false
212
+ tp_comm_bootstrap_backend: nccl
213
+ tp_comm_bulk_dgrad: true
214
+ tp_comm_bulk_wgrad: true
215
+ tp_comm_overlap: false
216
+ tp_comm_overlap_ag: true
217
+ tp_comm_overlap_disable_fc1: false
218
+ tp_comm_overlap_disable_qkv: false
219
+ tp_comm_overlap_rs: true
220
+ tp_comm_overlap_rs_dgrad: false
221
+ tp_comm_split_ag: true
222
+ tp_comm_split_rs: true
223
+ tp_only_amax_red: false
224
+ use_b2b_causal_conv1d: false
225
+ use_cpu_initialization: false
226
+ use_kitchen: false
227
+ use_mamba_mem_eff_path: true
228
+ use_ring_exchange_p2p: false
229
+ use_short_conv_bias: false
230
+ use_te: true
231
+ use_te_rng_tracker: false
232
+ variable_seq_lengths: false
233
+ virtual_pipeline_model_parallel_size: null
234
+ vortex_style_fp8: false
235
+ wgrad_deferral_limit: 0
236
+ window_size: null
237
+ model_context_managers: []
238
+ model_transform: null
239
+ optim:
240
+ _target_: nemo.lightning.pytorch.optim.megatron.MegatronOptimizerModule
241
+ config:
242
+ _target_: megatron.core.optimizer.optimizer_config.OptimizerConfig
243
+ adam_beta1: 0.9
244
+ adam_beta2: 0.999
245
+ adam_eps: 1.0e-08
246
+ barrier_with_L1_time: false
247
+ bf16: false
248
+ clip_grad: 1.0
249
+ config_logger_dir: ''
250
+ decoupled_lr: null
251
+ decoupled_min_lr: null
252
+ exp_avg_dtype:
253
+ _call_: false
254
+ _target_: torch.float32
255
+ exp_avg_sq_dtype:
256
+ _call_: false
257
+ _target_: torch.float32
258
+ fp16: false
259
+ fp8_recipe: null
260
+ hysteresis: 2
261
+ initial_loss_scale: 4294967296
262
+ log_num_zeros_in_grad: false
263
+ loss_scale: null
264
+ loss_scale_window: 1000
265
+ lr: 0.0001
266
+ main_grads_dtype:
267
+ _call_: false
268
+ _target_: torch.float32
269
+ main_params_dtype:
270
+ _call_: false
271
+ _target_: torch.float32
272
+ min_loss_scale: 1.0
273
+ min_lr: null
274
+ optimizer: adam
275
+ optimizer_cpu_offload: false
276
+ optimizer_offload_fraction: 0.0
277
+ overlap_cpu_optimizer_d2h_h2d: false
278
+ overlap_param_gather_with_optimizer_step: false
279
+ params_dtype:
280
+ _call_: false
281
+ _target_: torch.float32
282
+ pin_cpu_grads: true
283
+ pin_cpu_params: true
284
+ reuse_grad_buf_for_mxfp8_param_ag: false
285
+ sgd_momentum: 0.9
286
+ store_param_remainders: true
287
+ timers: null
288
+ use_distributed_optimizer: true
289
+ use_precision_aware_optimizer: false
290
+ use_torch_optimizer_for_cpu_offload: false
291
+ weight_decay: 0.01
292
+ lr_mult: 1.0
293
+ lr_scheduler: null
294
+ no_weight_decay_cond: null
295
+ scale_lr_cond: null
296
+ tokenizer:
297
+ _bos_id: null
298
+ _eos_id: 0
299
+ _pad_id: 1
300
+ _target_: nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer
301
+ special_tokens: {}
302
+ vocab_size: 512
checkpoints/evo2_nemo_7b/weights/.metadata ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9136c78b4ec769bcbcaae649bbb9fd2b8f9d563b1547279a77c5eb09fd27bd36
3
+ size 180057
checkpoints/evo2_nemo_7b/weights/__0_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0adb229a170471e48f3526b7c52e31d01f41b617f7deeabc06bfbf37d15928d
3
+ size 6482259480
checkpoints/evo2_nemo_7b/weights/__0_1.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35c492de6332f4e423f26186c76115ee43ecdc45eb1289b006d40226c520c60c
3
+ size 6482293876
checkpoints/evo2_nemo_7b/weights/common.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74760670a728a4aed7567efcb15c1572ce7388cf389dbf5102c55569ea31498a
3
+ size 2839
checkpoints/evo2_nemo_7b/weights/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"sharded_backend": "torch_dist", "sharded_backend_version": 1, "common_backend": "torch", "common_backend_version": 1}
config/config.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ name: Evo2
3
+ package_path: ../model/evo2
4
+ base_dependency: OneScience
5
+ runtime:
6
+ pythonpath: ../model
7
+ onescience_root_env: ONESCIENCE_ROOT
8
+ train:
9
+ entry: ../scripts/train.py
10
+ config: ./opengenome2.yml
11
+ inference:
12
+ entry: ../scripts/infer.py
13
+ checkpoint_dir: ../checkpoints
config/genome_data_config.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ - dataset_prefix: ./preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train
2
+ dataset_split: train
3
+ dataset_weight: 1.0
4
+ - dataset_prefix: ./preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val
5
+ dataset_split: validation
6
+ dataset_weight: 1.0
7
+ - dataset_prefix: ./preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test
8
+ dataset_split: test
9
+ dataset_weight: 1.0
config/genome_preprocess_config.yaml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ - datapaths: ["chr20_21_22.fa"]
3
+ output_dir: "./preprocessed_data"
4
+ output_prefix: chr20_21_22_uint8_distinct
5
+ train_split: 0.9
6
+ valid_split: 0.05
7
+ test_split: 0.05
8
+ overwrite: True
9
+ embed_reverse_complement: true
10
+ random_reverse_complement: 0.0
11
+ random_lineage_dropout: 0.0
12
+ include_sequence_id: false
13
+ transcribe: "back_transcribe"
14
+ force_uppercase: false
15
+ indexed_dataset_dtype: "uint8"
16
+ tokenizer_type: "Byte-Level"
17
+ vocab_file: null
18
+ vocab_size: null
19
+ merges_file: null
20
+ pretrained_tokenizer_model: null
21
+ special_tokens: null
22
+ fast_hf_tokenizer: true
23
+ append_eod: true
24
+ enforce_sample_length: null
25
+ ftfy: false
26
+ workers: 1
27
+ preproc_concurrency: 100000
28
+ chunksize: 25
29
+ drop_empty_sequences: true
30
+ nnn_filter: false # If you split your fasta on NNN (in human these are contigs), then you should set this to true.
31
+ seed: 12342 # Not relevant because we are not using random reverse complement or lineage dropout.
config/opengenome2.yml ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "train-data-paths": [
3
+ "/datasets/evo2/metagenomics/pretraining_data_metagenomics/data_metagenomics_train_text_CharLevelTokenizer_document",
4
+ "/datasets/evo2/gtdb_imgpr/pretraining_data_gtdb_imgpr/data_gtdb_imgpr_train_text_CharLevelTokenizer_document",
5
+ "/datasets/evo2/imgvr/pretraining_data_imgvr/data_imgvr_train_text_CharLevelTokenizer_document",
6
+ "/datasets/evo2/hg38/pretraining_data_hg38/data_hg38_all_text_CharLevelTokenizer_document",
7
+ "/datasets/evo2/ncrna/pretraining_data_ncrna/data_ncrna_train_text_CharLevelTokenizer_document",
8
+ "/datasets/evo2/mrna_splice/pretraining_data_mrna_splice/data_mrna_splice_train_text_CharLevelTokenizer_document",
9
+ "/datasets/evo2/promoters/pretraining_data_promoters/data_promoters_train_text_CharLevelTokenizer_document",
10
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch1_animalia_text_CharLevelTokenizer_document",
11
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch2_animalia_text_CharLevelTokenizer_document",
12
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch3_animalia_text_CharLevelTokenizer_document",
13
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch4_animalia_text_CharLevelTokenizer_document",
14
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch5_animalia_text_CharLevelTokenizer_document",
15
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch6_animalia_text_CharLevelTokenizer_document",
16
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch7_animalia_text_CharLevelTokenizer_document",
17
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch8_animalia_text_CharLevelTokenizer_document",
18
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch1_fungi_text_CharLevelTokenizer_document",
19
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch2_fungi_text_CharLevelTokenizer_document",
20
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch3_fungi_text_CharLevelTokenizer_document",
21
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch4_fungi_text_CharLevelTokenizer_document",
22
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch5_fungi_text_CharLevelTokenizer_document",
23
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch6_fungi_text_CharLevelTokenizer_document",
24
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch7_fungi_text_CharLevelTokenizer_document",
25
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch8_fungi_text_CharLevelTokenizer_document",
26
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch1_plantae_text_CharLevelTokenizer_document",
27
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch2_plantae_text_CharLevelTokenizer_document",
28
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch3_plantae_text_CharLevelTokenizer_document",
29
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch4_plantae_text_CharLevelTokenizer_document",
30
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch5_plantae_text_CharLevelTokenizer_document",
31
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch6_plantae_text_CharLevelTokenizer_document",
32
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch7_plantae_text_CharLevelTokenizer_document",
33
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch8_plantae_text_CharLevelTokenizer_document",
34
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch1_chromista_text_CharLevelTokenizer_document",
35
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch2_chromista_text_CharLevelTokenizer_document",
36
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch3_chromista_text_CharLevelTokenizer_document",
37
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch4_chromista_text_CharLevelTokenizer_document",
38
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch5_chromista_text_CharLevelTokenizer_document",
39
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch6_chromista_text_CharLevelTokenizer_document",
40
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch7_chromista_text_CharLevelTokenizer_document",
41
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch8_chromista_text_CharLevelTokenizer_document",
42
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch1_protista_text_CharLevelTokenizer_document",
43
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch2_protista_text_CharLevelTokenizer_document",
44
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch3_protista_text_CharLevelTokenizer_document",
45
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch4_protista_text_CharLevelTokenizer_document",
46
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch5_protista_text_CharLevelTokenizer_document",
47
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch6_protista_text_CharLevelTokenizer_document",
48
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch7_protista_text_CharLevelTokenizer_document",
49
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_train_batch8_protista_text_CharLevelTokenizer_document",
50
+
51
+ ],
52
+
53
+ # note no hg38
54
+ "valid-data-paths": [
55
+ "/datasets/evo2/metagenomics/pretraining_data_metagenomics/data_metagenomics_valid_text_CharLevelTokenizer_document",
56
+ "/datasets/evo2/gtdb_imgpr/pretraining_data_gtdb_imgpr/data_gtdb_imgpr_valid_text_CharLevelTokenizer_document",
57
+ "/datasets/evo2/imgvr/pretraining_data_imgvr/data_imgvr_valid_text_CharLevelTokenizer_document",
58
+ "/datasets/evo2/ncrna/pretraining_data_ncrna/data_ncrna_valid_text_CharLevelTokenizer_document",
59
+ "/datasets/evo2/mrna_splice/pretraining_data_mrna_splice/data_mrna_splice_valid_text_CharLevelTokenizer_document",
60
+ "/datasets/evo2/promoters/pretraining_data_promoters/data_promoters_valid_text_CharLevelTokenizer_document",
61
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch1_animalia_text_CharLevelTokenizer_document",
62
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch2_animalia_text_CharLevelTokenizer_document",
63
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch3_animalia_text_CharLevelTokenizer_document",
64
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch4_animalia_text_CharLevelTokenizer_document",
65
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch5_animalia_text_CharLevelTokenizer_document",
66
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch6_animalia_text_CharLevelTokenizer_document",
67
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch7_animalia_text_CharLevelTokenizer_document",
68
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch8_animalia_text_CharLevelTokenizer_document",
69
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch1_fungi_text_CharLevelTokenizer_document",
70
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch2_fungi_text_CharLevelTokenizer_document",
71
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch3_fungi_text_CharLevelTokenizer_document",
72
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch4_fungi_text_CharLevelTokenizer_document",
73
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch5_fungi_text_CharLevelTokenizer_document",
74
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch6_fungi_text_CharLevelTokenizer_document",
75
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch7_fungi_text_CharLevelTokenizer_document",
76
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch8_fungi_text_CharLevelTokenizer_document",
77
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch1_plantae_text_CharLevelTokenizer_document",
78
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch2_plantae_text_CharLevelTokenizer_document",
79
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch3_plantae_text_CharLevelTokenizer_document",
80
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch4_plantae_text_CharLevelTokenizer_document",
81
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch5_plantae_text_CharLevelTokenizer_document",
82
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch6_plantae_text_CharLevelTokenizer_document",
83
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch7_plantae_text_CharLevelTokenizer_document",
84
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch8_plantae_text_CharLevelTokenizer_document",
85
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch1_chromista_text_CharLevelTokenizer_document",
86
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch2_chromista_text_CharLevelTokenizer_document",
87
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch3_chromista_text_CharLevelTokenizer_document",
88
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch4_chromista_text_CharLevelTokenizer_document",
89
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch5_chromista_text_CharLevelTokenizer_document",
90
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch6_chromista_text_CharLevelTokenizer_document",
91
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch7_chromista_text_CharLevelTokenizer_document",
92
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch8_chromista_text_CharLevelTokenizer_document",
93
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch1_protista_text_CharLevelTokenizer_document",
94
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch2_protista_text_CharLevelTokenizer_document",
95
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch3_protista_text_CharLevelTokenizer_document",
96
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch4_protista_text_CharLevelTokenizer_document",
97
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch5_protista_text_CharLevelTokenizer_document",
98
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch6_protista_text_CharLevelTokenizer_document",
99
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch7_protista_text_CharLevelTokenizer_document",
100
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_valid_batch8_protista_text_CharLevelTokenizer_document",
101
+ ],
102
+
103
+ # note no hg38
104
+ "test-data-paths": [
105
+ "/datasets/evo2/metagenomics/pretraining_data_metagenomics/data_metagenomics_test_text_CharLevelTokenizer_document",
106
+ "/datasets/evo2/gtdb_imgpr/pretraining_data_gtdb_imgpr/data_gtdb_imgpr_test_text_CharLevelTokenizer_document",
107
+ "/datasets/evo2/imgvr/pretraining_data_imgvr/data_imgvr_test_text_CharLevelTokenizer_document",
108
+ "/datasets/evo2/ncrna/pretraining_data_ncrna/data_ncrna_test_text_CharLevelTokenizer_document",
109
+ "/datasets/evo2/mrna_splice/pretraining_data_mrna_splice/data_mrna_splice_test_text_CharLevelTokenizer_document",
110
+ "/datasets/evo2/promoters/pretraining_data_promoters/data_promoters_test_text_CharLevelTokenizer_document",
111
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch1_animalia_text_CharLevelTokenizer_document",
112
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch2_animalia_text_CharLevelTokenizer_document",
113
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch3_animalia_text_CharLevelTokenizer_document",
114
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch4_animalia_text_CharLevelTokenizer_document",
115
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch5_animalia_text_CharLevelTokenizer_document",
116
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch6_animalia_text_CharLevelTokenizer_document",
117
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch7_animalia_text_CharLevelTokenizer_document",
118
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch8_animalia_text_CharLevelTokenizer_document",
119
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch1_fungi_text_CharLevelTokenizer_document",
120
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch2_fungi_text_CharLevelTokenizer_document",
121
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch3_fungi_text_CharLevelTokenizer_document",
122
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch4_fungi_text_CharLevelTokenizer_document",
123
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch5_fungi_text_CharLevelTokenizer_document",
124
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch6_fungi_text_CharLevelTokenizer_document",
125
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch7_fungi_text_CharLevelTokenizer_document",
126
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch8_fungi_text_CharLevelTokenizer_document",
127
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch1_plantae_text_CharLevelTokenizer_document",
128
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch2_plantae_text_CharLevelTokenizer_document",
129
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch3_plantae_text_CharLevelTokenizer_document",
130
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch4_plantae_text_CharLevelTokenizer_document",
131
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch5_plantae_text_CharLevelTokenizer_document",
132
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch6_plantae_text_CharLevelTokenizer_document",
133
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch7_plantae_text_CharLevelTokenizer_document",
134
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch8_plantae_text_CharLevelTokenizer_document",
135
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch1_chromista_text_CharLevelTokenizer_document",
136
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch2_chromista_text_CharLevelTokenizer_document",
137
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch3_chromista_text_CharLevelTokenizer_document",
138
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch4_chromista_text_CharLevelTokenizer_document",
139
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch5_chromista_text_CharLevelTokenizer_document",
140
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch6_chromista_text_CharLevelTokenizer_document",
141
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch7_chromista_text_CharLevelTokenizer_document",
142
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch8_chromista_text_CharLevelTokenizer_document",
143
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch1_protista_text_CharLevelTokenizer_document",
144
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch2_protista_text_CharLevelTokenizer_document",
145
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch3_protista_text_CharLevelTokenizer_document",
146
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch4_protista_text_CharLevelTokenizer_document",
147
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch5_protista_text_CharLevelTokenizer_document",
148
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch6_protista_text_CharLevelTokenizer_document",
149
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch7_protista_text_CharLevelTokenizer_document",
150
+ "/datasets/evo2/eukaryote_ncbi/pretraining_data/data_test_batch8_protista_text_CharLevelTokenizer_document",
151
+ ],
152
+ "train-data-weights": [
153
+ 0.09, 0.15, 0.017, 0.003, 0.02, 0.09, 0.0002, 0.05625, 0.05625,
154
+ 0.05625, 0.05625, 0.05625, 0.05625, 0.05625, 0.05625, 0.01, 0.01, 0.01, 0.01,
155
+ 0.01, 0.01, 0.01, 0.01, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725,
156
+ 0.010725, 0.010725, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075,
157
+ 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001
158
+ ],
159
+ "test-data-weights": [
160
+ 0.09, 0.15, 0.017, 0.02, 0.09, 0.0002, 0.05625, 0.05625, 0.05625, 0.05625,
161
+ 0.05625, 0.05625, 0.05625, 0.05625, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01,
162
+ 0.01, 0.01, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725,
163
+ 0.010725, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075,
164
+ 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001
165
+ ],
166
+ "valid-data-weights": [
167
+ 0.09, 0.15, 0.017, 0.02, 0.09, 0.0002, 0.05625, 0.05625, 0.05625,
168
+ 0.05625, 0.05625, 0.05625, 0.05625, 0.05625, 0.01, 0.01, 0.01, 0.01, 0.01,
169
+ 0.01, 0.01, 0.01, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725, 0.010725,
170
+ 0.010725, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075, 0.00075,
171
+ 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001
172
+ ],
173
+ "checkpoint_validation_with_forward_pass": False,
174
+ # "use_wandb": false,
175
+ "wandb_host": "https://api.wandb.ai",
176
+ "wandb_project": "evo2"
177
+ }
configuration.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "Evo2",
3
+ "framework": "PyTorch/NeMo",
4
+ "task": "genomic-sequence-modeling",
5
+ "entry_points": {
6
+ "train": "scripts/train.py",
7
+ "inference": "scripts/infer.py",
8
+ "predict": "scripts/predict.py"
9
+ },
10
+ "source_package": "model/evo2",
11
+ "base_dependency": "onescience",
12
+ "config": "config/config.yaml",
13
+ "weight_dir": "checkpoints",
14
+ "license": "Apache-2.0"
15
+ }
data/data_mini/genome_data/chr20.fa ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a704b3a25c698bb5219b750d0ba6a333ddb0043904b4921992d5f709771c2666
3
+ size 65733058
data/data_mini/genome_data/chr20.fa.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:271ca0ee4247c2fa30c8491764ad8acd4bdde8eb3cf314f0720235010ae85c9f
3
+ size 20350590
data/data_mini/genome_data/chr20_21_22.fa ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c65fe1f46bb7949ab4e670a004e01f4815501f5f949c5b75cd06cd6df229059
3
+ size 165212093
data/data_mini/genome_data/chr21.fa ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35c71b68436d1a278ecb6a1e875af3ba4020738a028a7feac769a6d62790ae1f
3
+ size 47644190
data/data_mini/genome_data/chr21.fa.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c979ca1e5065c2521a50773473e0d0cc018fd6f3e9bb3aa90493fe7b45d57d1b
3
+ size 12709705
data/data_mini/genome_data/chr22.fa ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce3ee1ca39356238f7aee438a40a88b4f1b9d80b316b263e16fb12402212d10f
3
+ size 51834845
data/data_mini/genome_data/chr22.fa.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05f9d97d6fbfd08a44ca45b50837ca2ae9c471f35ba79dffec04d2cb5eaaf695
3
+ size 12255678
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c03f70b9b67e85e9dd37277ec7d18ec69ff8bf18e822dfb8300d944c18c2e5a2
3
+ size 101636938
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test.idx ADDED
Binary file (82 Bytes). View file
 
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-description.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class": "GPTDataset",
3
+ "dataset_path": "data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test",
4
+ "num_samples": 16,
5
+ "index_split": "test",
6
+ "random_seed": 1234,
7
+ "sequence_length": 8192,
8
+ "split": null,
9
+ "split_matrix": null,
10
+ "tokenizer": {
11
+ "class": "nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer"
12
+ }
13
+ }
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-document_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28d4b63fdadd72ed19f8fad1638746569959d59ee50d3e10d67810fced9dc78f
3
+ size 136
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-sample_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4b37f6c8f8a94fd66ed63489802ee9b633c786b3a3c94ac900fb0e5ef4f617d
3
+ size 99384
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/342ca946fce706bd1bebace29d20c889-GPTDataset-test-shuffle_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a68f8b87962dfc3d24757b2869592ab15741d2326a29cdb30b4df150912cfe7a
3
+ size 49752
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-description.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class": "GPTDataset",
3
+ "dataset_path": "data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test",
4
+ "num_samples": 8,
5
+ "index_split": "test",
6
+ "random_seed": 1234,
7
+ "sequence_length": 1024,
8
+ "split": null,
9
+ "split_matrix": null,
10
+ "tokenizer": {
11
+ "class": "nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer"
12
+ }
13
+ }
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-document_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28d4b63fdadd72ed19f8fad1638746569959d59ee50d3e10d67810fced9dc78f
3
+ size 136
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-sample_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53f2655dac75ebf3e3bb0454ffe82e61bcda93a47b3c8df90401d123e0be8bb5
3
+ size 794168
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_test/cache/GPTDataset_indices/bdd3bfe88a1201b3e8f83953f7072ca6-GPTDataset-test-shuffle_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c33ad031b614ec8043d296f2ecc4ebd4a21d1cf636f40ebfa0af56bc7fa0eb8c
3
+ size 397144
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f3d2d68af61f62bd11cbc0c13648029637baaf6a3a0d2ce228db6724ac60b7e
3
+ size 128888336
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train.idx ADDED
Binary file (82 Bytes). View file
 
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-description.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class": "GPTDataset",
3
+ "dataset_path": "data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train",
4
+ "num_samples": 8000,
5
+ "index_split": "train",
6
+ "random_seed": 1234,
7
+ "sequence_length": 1024,
8
+ "split": null,
9
+ "split_matrix": null,
10
+ "tokenizer": {
11
+ "class": "nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer"
12
+ }
13
+ }
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-document_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28d4b63fdadd72ed19f8fad1638746569959d59ee50d3e10d67810fced9dc78f
3
+ size 136
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-sample_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34f9e9c57b454b1b4888a5492aed2014952633e9b6c93639bca9c4217532d2d9
3
+ size 1007072
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/746855b0ca028bf7efd5622b8169f84e-GPTDataset-train-shuffle_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d0e161e823144594d9eef6ffd50ca778f8e1ae1f0831cf1d040c02a9f056771
3
+ size 503596
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-description.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class": "GPTDataset",
3
+ "dataset_path": "data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train",
4
+ "num_samples": 16000,
5
+ "index_split": "train",
6
+ "random_seed": 1234,
7
+ "sequence_length": 8192,
8
+ "split": null,
9
+ "split_matrix": null,
10
+ "tokenizer": {
11
+ "class": "nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer"
12
+ }
13
+ }
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-document_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc6782cd85e561058197445aef6cf1e89bb2897b69dacb26af801ba986f2322e
3
+ size 144
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-sample_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee4ef251a29baa3cdcbbefbd7a4876eccf2b69d1e1d326513a342b29382e167f
3
+ size 251864
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_train/cache/GPTDataset_indices/9f44c7ed4a3ebd5a2cfaed3f9be3b954-GPTDataset-train-shuffle_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdfdd5f02d57271a14de63780596ea8db0044311e6990ba05cdeaf5c0181255a
3
+ size 125992
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:596393be374e2a0aa08e7f4f8ba3c42a21c76f825c1b3f49c76c0f5dd44e7cd5
3
+ size 93419968
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val.idx ADDED
Binary file (82 Bytes). View file
 
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-description.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class": "GPTDataset",
3
+ "dataset_path": "data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val",
4
+ "num_samples": 672,
5
+ "index_split": "valid",
6
+ "random_seed": 1234,
7
+ "sequence_length": 8192,
8
+ "split": null,
9
+ "split_matrix": null,
10
+ "tokenizer": {
11
+ "class": "nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer"
12
+ }
13
+ }
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-document_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28d4b63fdadd72ed19f8fad1638746569959d59ee50d3e10d67810fced9dc78f
3
+ size 136
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-sample_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8ab709b3b7a8600968430e26d46a77c8d7924914d52ec076847841aa73edd81
3
+ size 91360
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/a8235fab7adf408b89a5c5806a781046-GPTDataset-valid-shuffle_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e7754043b6dd3baae0db20e3d0b8a7f04743c973a5f856f78f720c144ba8763
3
+ size 45740
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/cccf4722f9a5df3869a82454d596a5e6-GPTDataset-valid-description.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class": "GPTDataset",
3
+ "dataset_path": "data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val",
4
+ "num_samples": 336,
5
+ "index_split": "valid",
6
+ "random_seed": 1234,
7
+ "sequence_length": 1024,
8
+ "split": null,
9
+ "split_matrix": null,
10
+ "tokenizer": {
11
+ "class": "nemo.collections.common.tokenizers.bytelevel_tokenizers.ByteLevelTokenizer"
12
+ }
13
+ }
data/data_mini/genome_data/preprocessed_data/chr20_21_22_uint8_distinct_byte-level_val/cache/GPTDataset_indices/cccf4722f9a5df3869a82454d596a5e6-GPTDataset-valid-document_index.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28d4b63fdadd72ed19f8fad1638746569959d59ee50d3e10d67810fced9dc78f
3
+ size 136