Upload entire folder
Browse files- .nv-meta/.info.yaml +6 -0
- .nv-meta/dataset.yaml +5 -0
- .nv-meta/sample_loader.py +14 -0
- .nv-meta/split.yaml +10 -0
.nv-meta/.info.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
shard_counts:
|
| 2 |
+
pretrain-000000.tar: 5034
|
| 3 |
+
pretrain-000001.tar: 5036
|
| 4 |
+
pretrain-000002.tar: 5039
|
| 5 |
+
pretrain-000003.tar: 5058
|
| 6 |
+
pretrain-000004.tar: 3821
|
.nv-meta/dataset.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
sample_type:
|
| 2 |
+
__module__: aiak_training_llm.data.multimodal
|
| 3 |
+
__class__: PackedCaptioningSample
|
| 4 |
+
part_filter: sample_loader.py:part_filter
|
| 5 |
+
sample_loader: sample_loader.py:sample_loader
|
.nv-meta/sample_loader.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def sample_loader(sample: dict) -> dict:
|
| 2 |
+
data = sample['json']
|
| 3 |
+
images = [sample.get(f'img{i}.jpg') for i in range(len(data['images']))]
|
| 4 |
+
captions = data['captions']
|
| 5 |
+
prompts = data['prompts']
|
| 6 |
+
return dict(
|
| 7 |
+
__key__=sample['__key__'],
|
| 8 |
+
__restore_key__=sample['__restore_key__'],
|
| 9 |
+
captions=captions,
|
| 10 |
+
prompts=prompts,
|
| 11 |
+
images=images,
|
| 12 |
+
)
|
| 13 |
+
def part_filter(part: str) -> bool:
|
| 14 |
+
return True
|
.nv-meta/split.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
exclude: []
|
| 2 |
+
split_parts:
|
| 3 |
+
test: []
|
| 4 |
+
train:
|
| 5 |
+
- pretrain-000003.tar
|
| 6 |
+
- pretrain-000001.tar
|
| 7 |
+
- pretrain-000002.tar
|
| 8 |
+
- pretrain-000004.tar
|
| 9 |
+
- pretrain-000000.tar
|
| 10 |
+
val: []
|