Append Civitai (enriched) and Sankaku encrypted multimodal records
Browse filesFiles changed (12)
- gemma4_arrow_encrypted_v1/README.mdAdded+45
- gemma4_arrow_encrypted_v1/append_report.jsonAdded+38
- gemma4_arrow_encrypted_v1/data-00000-of-00006.arrowAdded+3
- gemma4_arrow_encrypted_v1/data-00001-of-00006.arrowAdded+3
- gemma4_arrow_encrypted_v1/data-00002-of-00006.arrowAdded+3
- gemma4_arrow_encrypted_v1/data-00003-of-00006.arrowAdded+3
- gemma4_arrow_encrypted_v1/data-00004-of-00006.arrowAdded+3
- gemma4_arrow_encrypted_v1/data-00005-of-00006.arrowAdded+3
- gemma4_arrow_encrypted_v1/dataset_info.jsonAdded+36
- gemma4_arrow_encrypted_v1/encryption_manifest.jsonAdded+90
- gemma4_arrow_encrypted_v1/processing_errors.jsonAdded+1
- gemma4_arrow_encrypted_v1/state.jsonAdded+28
123456789101112131415161718192021222324252627282930313233343536373839404142434445# Two-Source Encrypted Multimodal Dataset
## Sources
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.
- Civitai (enriched): codeShare/civitai-natural-language-prompts-and-images (`enriched/captions.parquet`)- Sankaku: codeShare/sankaku_captioned_images (`preprocessed/captions.parquet`)
## Conversation format (both sources)
User text:Original `instruction` column, followed by image.
Assistant text:`prompt` + `. ` + `thinking_response` + `. ` + `written_response`.Repeated consecutive periods are reduced to a single period.
Rows are excluded only when `written_response` contains the whole word`user` or `summary` AND both `prompt` and `thinking_response` are empty.
Civitai images are stored as plain base64 (or data-URI) in JSONL shards.Sankaku images are AES-GCM encrypted at the source and decrypted during import.
## Final row order
After all source records are appended, the complete dataset is globally shuffledacross Civitai and Sankaku (including retained existing records).The shuffled order is physically materialized in Arrow. Shuffle seed: 20261116.
## Storage and encryption
- Hugging Face Datasets / Apache Arrow- AES-256-GCM- Independent encryption for image and conversation- 12-byte nonce- Scrypt key derivation- Authenticated sample IDs and field names
## Image preprocessing
- EXIF orientation correction- RGB conversion- Maximum dimension: 1024- LANCZOS resizing1234567891011121314151617181920212223242526272829303132333435363738{ "source_repositories": { "civitai": "codeShare/civitai-natural-language-prompts-and-images", "sankaku": "codeShare/sankaku_captioned_images" }, "destination_repository": "codeShare/kromoss-lora-exports", "destination_folder": "gemma4_arrow_encrypted_v1", "existing_records": 0, "new_records_by_source": { "civitai": 3783, "sankaku": 8708 }, "skipped_records_by_source": { "civitai": 0, "sankaku": 0 }, "filtered_out_before_processing": { "civitai_written_user_or_summary_with_empty_prompt_and_thinking": 0, "sankaku_written_user_or_summary_with_empty_prompt_and_thinking": 0 }, "new_records_total": 12491, "final_records": 12491, "verification": { "checked": 30, "passed": 30, "failed": 0 }, "row_order": { "method": "global_random_shuffle_after_combining_all_sources", "seed": 20261116, "physically_materialized": true, "first_30_row_source_mix": { "civitai": 13, "sankaku": 17 } }, "created_unix": 1795750975.4871633}123version https://git-lfs.github.com/spec/v1oid sha256:5e4d19e2e4d32a8b56168bc41c30b125da32534d54e6b0bca3b193a707640abesize 463358912123version https://git-lfs.github.com/spec/v1oid sha256:c3ff22862c53ada8fa4cc5ba8f37417f3b474a15d38b77f7960af67ea1be7207size 461582120123version https://git-lfs.github.com/spec/v1oid sha256:2f5ddbdf0980230c06ce2e45b06b275e0ebf4e4a3098c8bc476772de55117d36size 463705896123version https://git-lfs.github.com/spec/v1oid sha256:33e4fe0592bd5f82d58a45f86e4562007b57ce507b02693b3b7fdf07acbf79cdsize 470259968123version https://git-lfs.github.com/spec/v1oid sha256:f44291a5dc2f85c28b1f7515402c8f668f2c0276564b90660e1a8d5802328fedsize 469077360123version https://git-lfs.github.com/spec/v1oid sha256:ddef22d3f27b50c95e458b90e1b55e05f14ce63918eff9107e31e010ba5007c7size 466433056123456789101112131415161718192021222324252627282930313233343536{ "citation": "", "description": "", "features": { "idx": { "dtype": "int64", "_type": "Value" }, "sample_id": { "dtype": "string", "_type": "Value" }, "image_enc": { "dtype": "binary", "_type": "Value" }, "conversation_enc": { "dtype": "binary", "_type": "Value" }, "width": { "dtype": "int32", "_type": "Value" }, "height": { "dtype": "int32", "_type": "Value" }, "image_format": { "dtype": "string", "_type": "Value" } }, "homepage": "", "license": ""}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ "dataset_name": "two_source_encrypted_multimodal", "dataset_version": 1, "serialization": "Hugging Face Datasets / Apache Arrow", "sample_count": 12491, "image_preprocessing": { "max_dimension": 1024, "orientation": "EXIF corrected", "color_space": "RGB", "resampling": "LANCZOS" }, "text_preprocessing": { "applied": false, "description": "Source instruction and answer text preserved." }, "encryption": { "cipher": "AES-256-GCM", "nonce_bytes": 12, "kdf": "scrypt", "kdf_salt_base64": "3tRqvq4usjA0NvrEj4nLuw==", "scrypt_n": 16384, "scrypt_r": 8, "scrypt_p": 1, "key_length_bytes": 32, "aad_format": "gemma4-v1:{sample_id}:{field_name}", "encrypted_fields": [ "image_enc", "conversation_enc" ] }, "arrow_schema": { "idx": "int64 (global, zero-based row number after shuffle)", "sample_id": "string", "image_enc": "binary", "conversation_enc": "binary", "width": "int32", "height": "int32", "image_format": "string" }, "conversion_statistics": { "processed": 12491, "skipped": 0 }, "source_repositories": [ "codeShare/civitai-natural-language-prompts-and-images", "codeShare/sankaku_captioned_images" ], "created_unix": 1795750097.3507817, "row_order": { "method": "global_random_shuffle_after_combining_all_sources", "seed": 20261116, "physically_materialized": true, "includes_existing_destination_records": true, "idx": "fresh contiguous zero-based global index assigned after shuffle" }, "last_append": { "source_repositories": [ "codeShare/civitai-natural-language-prompts-and-images", "codeShare/sankaku_captioned_images" ], "records_added_by_source": { "civitai": 3783, "sankaku": 8708 }, "records_skipped_by_source": { "civitai": 0, "sankaku": 0 }, "records_filtered_out_before_processing": { "civitai_written_user_or_summary_with_empty_prompt_and_thinking": 0, "sankaku_written_user_or_summary_with_empty_prompt_and_thinking": 0 }, "verification": { "checked": 30, "passed": 30, "failed": 0 }, "shuffle": { "method": "global_random_shuffle_after_combining_all_sources", "seed": 20261116, "physically_materialized": true, "idx": "fresh contiguous zero-based global index assigned after shuffle", "first_30_row_source_mix": { "civitai": 13, "sankaku": 17 } }, "created_unix": 1795750938.1222227 }}1[]12345678910111213141516171819202122232425262728{ "_data_files": [ { "filename": "data-00000-of-00006.arrow" }, { "filename": "data-00001-of-00006.arrow" }, { "filename": "data-00002-of-00006.arrow" }, { "filename": "data-00003-of-00006.arrow" }, { "filename": "data-00004-of-00006.arrow" }, { "filename": "data-00005-of-00006.arrow" } ], "_fingerprint": "be6e3fa1e63219fe", "_format_columns": null, "_format_kwargs": {}, "_format_type": null, "_output_all_columns": false, "_split": null}gemma4_arrow_encrypted_v1/README.mdAdded+45
gemma4_arrow_encrypted_v1/append_report.jsonAdded+38
gemma4_arrow_encrypted_v1/data-00000-of-00006.arrowAdded+3
gemma4_arrow_encrypted_v1/data-00001-of-00006.arrowAdded+3
gemma4_arrow_encrypted_v1/data-00002-of-00006.arrowAdded+3
gemma4_arrow_encrypted_v1/data-00003-of-00006.arrowAdded+3
gemma4_arrow_encrypted_v1/data-00004-of-00006.arrowAdded+3
gemma4_arrow_encrypted_v1/data-00005-of-00006.arrowAdded+3
gemma4_arrow_encrypted_v1/dataset_info.jsonAdded+36
gemma4_arrow_encrypted_v1/encryption_manifest.jsonAdded+90
gemma4_arrow_encrypted_v1/processing_errors.jsonAdded+1
gemma4_arrow_encrypted_v1/state.jsonAdded+28