codeShare commited on
Commit
4314d29
·
verified ·
1 Parent(s): dfc277d

Append Civitai (enriched) and Sankaku encrypted multimodal records

Browse files
gemma4_arrow_encrypted_v1/README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Two-Source Encrypted Multimodal Dataset
2
+
3
+ ## Sources
4
+
5
+ The `idx` column is a new global zero-based row number for this combined training dataset. It is assigned after the final shuffle and runs from `0` to `N-1`. Source-specific `idx` values are used only internally to locate source images and are not retained.
6
+
7
+ - Civitai (enriched): codeShare/civitai-natural-language-prompts-and-images (`enriched/captions.parquet`)
8
+ - Sankaku: codeShare/sankaku_captioned_images (`preprocessed/captions.parquet`)
9
+
10
+ ## Conversation format (both sources)
11
+
12
+ User text:
13
+ Original `instruction` column, followed by image.
14
+
15
+ Assistant text:
16
+ `prompt` + `. ` + `thinking_response` + `. ` + `written_response`.
17
+ Repeated consecutive periods are reduced to a single period.
18
+
19
+ Rows are excluded only when `written_response` contains the whole word
20
+ `user` or `summary` AND both `prompt` and `thinking_response` are empty.
21
+
22
+ Civitai images are stored as plain base64 (or data-URI) in JSONL shards.
23
+ Sankaku images are AES-GCM encrypted at the source and decrypted during import.
24
+
25
+ ## Final row order
26
+
27
+ After all source records are appended, the complete dataset is globally shuffled
28
+ across Civitai and Sankaku (including retained existing records).
29
+ The shuffled order is physically materialized in Arrow. Shuffle seed: 20261116.
30
+
31
+ ## Storage and encryption
32
+
33
+ - Hugging Face Datasets / Apache Arrow
34
+ - AES-256-GCM
35
+ - Independent encryption for image and conversation
36
+ - 12-byte nonce
37
+ - Scrypt key derivation
38
+ - Authenticated sample IDs and field names
39
+
40
+ ## Image preprocessing
41
+
42
+ - EXIF orientation correction
43
+ - RGB conversion
44
+ - Maximum dimension: 1024
45
+ - LANCZOS resizing
gemma4_arrow_encrypted_v1/append_report.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repositories": {
3
+ "civitai": "codeShare/civitai-natural-language-prompts-and-images",
4
+ "sankaku": "codeShare/sankaku_captioned_images"
5
+ },
6
+ "destination_repository": "codeShare/kromoss-lora-exports",
7
+ "destination_folder": "gemma4_arrow_encrypted_v1",
8
+ "existing_records": 0,
9
+ "new_records_by_source": {
10
+ "civitai": 3783,
11
+ "sankaku": 8163
12
+ },
13
+ "skipped_records_by_source": {
14
+ "civitai": 0,
15
+ "sankaku": 0
16
+ },
17
+ "filtered_out_before_processing": {
18
+ "civitai_written_user_or_summary_with_empty_prompt_and_thinking": 0,
19
+ "sankaku_written_user_or_summary_with_empty_prompt_and_thinking": 0
20
+ },
21
+ "new_records_total": 11946,
22
+ "final_records": 11946,
23
+ "verification": {
24
+ "checked": 30,
25
+ "passed": 30,
26
+ "failed": 0
27
+ },
28
+ "row_order": {
29
+ "method": "global_random_shuffle_after_combining_all_sources",
30
+ "seed": 20261116,
31
+ "physically_materialized": true,
32
+ "first_30_row_source_mix": {
33
+ "civitai": 12,
34
+ "sankaku": 18
35
+ }
36
+ },
37
+ "created_unix": 1795540048.8039153
38
+ }
gemma4_arrow_encrypted_v1/data-00000-of-00006.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d4fe252d44d53c99dfec901750f79eada8fcefc640d5a0c9bf6889871e40c6a
3
+ size 433556096
gemma4_arrow_encrypted_v1/data-00001-of-00006.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eedc8c5172d05cda27d93cdc1ad43ac42e950e18e5e8f0a7dd4eac418afa3980
3
+ size 452074760
gemma4_arrow_encrypted_v1/data-00002-of-00006.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:377425a7fa44bdf708d9072c621338438669985376f6d12b9e18fbbf6642a5c8
3
+ size 447112712
gemma4_arrow_encrypted_v1/data-00003-of-00006.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0508209c487b4180fade912903640a2a706b6db0330c990c0e988cab687a3ae6
3
+ size 449225832
gemma4_arrow_encrypted_v1/data-00004-of-00006.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:933ccda0224a038a66709b521d5c885e022ec5bc3c17f16562d133e9f134322f
3
+ size 450837832
gemma4_arrow_encrypted_v1/data-00005-of-00006.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cbd8298451a5de4b9d2e5d1fe0e62854ae5142fc905c517c7e36076951af0a0
3
+ size 447008952
gemma4_arrow_encrypted_v1/dataset_info.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "citation": "",
3
+ "description": "",
4
+ "features": {
5
+ "idx": {
6
+ "dtype": "int64",
7
+ "_type": "Value"
8
+ },
9
+ "sample_id": {
10
+ "dtype": "string",
11
+ "_type": "Value"
12
+ },
13
+ "image_enc": {
14
+ "dtype": "binary",
15
+ "_type": "Value"
16
+ },
17
+ "conversation_enc": {
18
+ "dtype": "binary",
19
+ "_type": "Value"
20
+ },
21
+ "width": {
22
+ "dtype": "int32",
23
+ "_type": "Value"
24
+ },
25
+ "height": {
26
+ "dtype": "int32",
27
+ "_type": "Value"
28
+ },
29
+ "image_format": {
30
+ "dtype": "string",
31
+ "_type": "Value"
32
+ }
33
+ },
34
+ "homepage": "",
35
+ "license": ""
36
+ }
gemma4_arrow_encrypted_v1/encryption_manifest.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_name": "two_source_encrypted_multimodal",
3
+ "dataset_version": 1,
4
+ "serialization": "Hugging Face Datasets / Apache Arrow",
5
+ "sample_count": 11946,
6
+ "image_preprocessing": {
7
+ "max_dimension": 1024,
8
+ "orientation": "EXIF corrected",
9
+ "color_space": "RGB",
10
+ "resampling": "LANCZOS"
11
+ },
12
+ "text_preprocessing": {
13
+ "applied": false,
14
+ "description": "Source instruction and answer text preserved."
15
+ },
16
+ "encryption": {
17
+ "cipher": "AES-256-GCM",
18
+ "nonce_bytes": 12,
19
+ "kdf": "scrypt",
20
+ "kdf_salt_base64": "doIF+ILPSuAo956u6LPKBA==",
21
+ "scrypt_n": 16384,
22
+ "scrypt_r": 8,
23
+ "scrypt_p": 1,
24
+ "key_length_bytes": 32,
25
+ "aad_format": "gemma4-v1:{sample_id}:{field_name}",
26
+ "encrypted_fields": [
27
+ "image_enc",
28
+ "conversation_enc"
29
+ ]
30
+ },
31
+ "arrow_schema": {
32
+ "idx": "int64 (global, zero-based row number after shuffle)",
33
+ "sample_id": "string",
34
+ "image_enc": "binary",
35
+ "conversation_enc": "binary",
36
+ "width": "int32",
37
+ "height": "int32",
38
+ "image_format": "string"
39
+ },
40
+ "conversion_statistics": {
41
+ "processed": 11946,
42
+ "skipped": 0
43
+ },
44
+ "source_repositories": [
45
+ "codeShare/civitai-natural-language-prompts-and-images",
46
+ "codeShare/sankaku_captioned_images"
47
+ ],
48
+ "created_unix": 1795539182.7410142,
49
+ "row_order": {
50
+ "method": "global_random_shuffle_after_combining_all_sources",
51
+ "seed": 20261116,
52
+ "physically_materialized": true,
53
+ "includes_existing_destination_records": true,
54
+ "idx": "fresh contiguous zero-based global index assigned after shuffle"
55
+ },
56
+ "last_append": {
57
+ "source_repositories": [
58
+ "codeShare/civitai-natural-language-prompts-and-images",
59
+ "codeShare/sankaku_captioned_images"
60
+ ],
61
+ "records_added_by_source": {
62
+ "civitai": 3783,
63
+ "sankaku": 8163
64
+ },
65
+ "records_skipped_by_source": {
66
+ "civitai": 0,
67
+ "sankaku": 0
68
+ },
69
+ "records_filtered_out_before_processing": {
70
+ "civitai_written_user_or_summary_with_empty_prompt_and_thinking": 0,
71
+ "sankaku_written_user_or_summary_with_empty_prompt_and_thinking": 0
72
+ },
73
+ "verification": {
74
+ "checked": 30,
75
+ "passed": 30,
76
+ "failed": 0
77
+ },
78
+ "shuffle": {
79
+ "method": "global_random_shuffle_after_combining_all_sources",
80
+ "seed": 20261116,
81
+ "physically_materialized": true,
82
+ "idx": "fresh contiguous zero-based global index assigned after shuffle",
83
+ "first_30_row_source_mix": {
84
+ "civitai": 12,
85
+ "sankaku": 18
86
+ }
87
+ },
88
+ "created_unix": 1795540023.4106724
89
+ }
90
+ }
gemma4_arrow_encrypted_v1/processing_errors.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
gemma4_arrow_encrypted_v1/state.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00006.arrow"
5
+ },
6
+ {
7
+ "filename": "data-00001-of-00006.arrow"
8
+ },
9
+ {
10
+ "filename": "data-00002-of-00006.arrow"
11
+ },
12
+ {
13
+ "filename": "data-00003-of-00006.arrow"
14
+ },
15
+ {
16
+ "filename": "data-00004-of-00006.arrow"
17
+ },
18
+ {
19
+ "filename": "data-00005-of-00006.arrow"
20
+ }
21
+ ],
22
+ "_fingerprint": "5920db9a1049377b",
23
+ "_format_columns": null,
24
+ "_format_kwargs": {},
25
+ "_format_type": null,
26
+ "_output_all_columns": false,
27
+ "_split": null
28
+ }