fixensydev commited on
Commit
a725a4f
·
verified ·
1 Parent(s): b30fe2f

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. README.md +110 -0
  2. data/train-00000-of-00001.parquet +3 -0
  3. data/validation-00000-of-00001.parquet +3 -0
  4. documents/train-00000-of-00001.parquet +3 -0
  5. feedback.jsonl +0 -0
  6. images/AIR_WAYBILL_VAR1_EMIRATES_SKYCARGO_e6a94b.png +3 -0
  7. images/AIR_WAYBILL_VAR2_QATAR_CARGO_29013c.png +3 -0
  8. images/AIR_WAYBILL_VAR3_SINGAPORE_CARGO_603a23.png +3 -0
  9. images/AIR_WAYBILL_VAR4_LUFTHANSA_CARGO_de92e8.png +3 -0
  10. images/BILL_OF_ENTRY_VAR1_CHATTOGRAM_101_d9f691.png +3 -0
  11. images/BILL_OF_ENTRY_VAR2_DHAKA_ICD_301_5c13b3.png +3 -0
  12. images/BILL_OF_ENTRY_VAR2_DHAKA_ICD_301_5c13b3_5b48be.png +3 -0
  13. images/BILL_OF_ENTRY_VAR2_DHAKA_ICD_301_5c13b3_be4dd0.png +3 -0
  14. images/BILL_OF_ENTRY_VAR3_BENAPOLE_501_5bee8f.png +3 -0
  15. images/BILL_OF_ENTRY_VAR4_MONGLA_201_c7c7f1.png +3 -0
  16. images/CamScanner_12-09-2026_11_49_compressed_85638c.png +3 -0
  17. images/CamScanner_12-09-2026_11_49_compressed_85638c_723bb8.png +3 -0
  18. images/CamScanner_12-09-2026_11_49_compressed_8e9f45.png +3 -0
  19. images/DOC_01_commercial_lca.png +3 -0
  20. images/DOC_01_commercial_lca_adece2.png +3 -0
  21. images/DOC_02_commercial_lca_2af5b0.png +3 -0
  22. images/DOC_02_industrial_lca.png +3 -0
  23. images/DOC_03_bill_of_entry.png +3 -0
  24. images/DOC_03_commercial_lca_d241bd.png +3 -0
  25. images/DOC_04_commercial_lca_95926d.png +3 -0
  26. images/DOC_04_exp_form.png +3 -0
  27. images/DOC_05_commercial_lca_468313.png +3 -0
  28. images/DOC_05_final_invoice.png +3 -0
  29. images/DOC_06_commercial_lca_aab69e.png +3 -0
  30. images/DOC_06_imp_form.png +3 -0
  31. images/DOC_07_air_waybill.png +3 -0
  32. images/DOC_07_commercial_lca_3ad138.png +3 -0
  33. images/DOC_08_industrial_lca_0cfdc8.png +3 -0
  34. images/DOC_08_ocean_bl.png +3 -0
  35. images/DOC_09_commercial_lca.png +3 -0
  36. images/DOC_09_industrial_lca_25d74f.png +3 -0
  37. images/DOC_100_exp_form.png +3 -0
  38. images/DOC_101_final_invoice.png +3 -0
  39. images/DOC_102_imp_form.png +3 -0
  40. images/DOC_103_air_waybill.png +3 -0
  41. images/DOC_104_ocean_bl.png +3 -0
  42. images/DOC_105_commercial_lca.png +3 -0
  43. images/DOC_106_industrial_lca.png +3 -0
  44. images/DOC_107_bill_of_entry.png +3 -0
  45. images/DOC_108_exp_form.png +3 -0
  46. images/DOC_109_final_invoice.png +3 -0
  47. images/DOC_10_industrial_lca.png +3 -0
  48. images/DOC_10_industrial_lca_958563.png +3 -0
  49. images/DOC_110_imp_form.png +3 -0
  50. images/DOC_111_air_waybill.png +3 -0
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - image-to-text
5
+ - visual-question-answering
6
+ tags:
7
+ - vlm
8
+ - unsloth
9
+ - qwen-vl
10
+ - document-ai
11
+ - trade-finance
12
+ - bangladesh-bank
13
+ size_categories:
14
+ - n<1K
15
+ ---
16
+
17
+ # 🏦 Bangladesh Bank Trade Finance IDP — Multi-User Collaborative Fine-Tuning Dataset
18
+
19
+ This dataset contains human-reviewed, verified, and corrected document extractions for the **8 official Bangladesh Bank regulatory trade-finance document types**.
20
+
21
+ It is **completely self-contained** and structured for immediate Vision-Language Model (VLM) fine-tuning anytime from any environment (Colab, Kaggle, GPU cluster, or local), with built-in multi-annotator merge support and incremental delta uploads.
22
+
23
+ ---
24
+
25
+ ## 📊 Dataset Structure & Splits
26
+
27
+ | Split / Subset | Description | Examples |
28
+ |---|---|---|
29
+ | **`train`** | Ready-to-train multi-task VLM conversations (`messages` format) | 264 |
30
+ | **`validation`** | Stratified held-out evaluation conversations for monitoring eval loss | 56 |
31
+ | **`documents`** | Full document-level feedback records with model outputs, human corrections, confidence scores & DPO pairs (subset: `documents`) | 160 |
32
+
33
+ ### 📑 Document Types Represented
34
+ | Document Type | Document Count |
35
+ |---|---|
36
+ | `air_waybill` | 18 |
37
+ | `bill_of_entry` | 22 |
38
+ | `commercial_lca` | 20 |
39
+ | `exp_form` | 19 |
40
+ | `final_invoice` | 23 |
41
+ | `imp_form` | 19 |
42
+ | `industrial_lca` | 20 |
43
+ | `ocean_bl` | 19 |
44
+
45
+ **Total DPO Preference Pairs Available:** 9 (for Direct Preference Optimization)
46
+
47
+ ---
48
+
49
+ ## 🚀 Quickstart: Train in 10 Lines with Unsloth / TRL
50
+
51
+ You can fine-tune Qwen3-VL / Qwen2.5-VL directly on this dataset without ANY manual data wrangling:
52
+
53
+ ```python
54
+ from datasets import load_dataset
55
+ from unsloth import FastVisionModel
56
+ from unsloth.trainer import UnslothVisionDataCollator
57
+ from trl import SFTTrainer, SFTConfig
58
+
59
+ # 1. Load the ready-to-train dataset directly from Hugging Face
60
+ ds = load_dataset("jihadv4/bb-trade-idp-feedback")
61
+ train_data = ds["train"]
62
+ eval_data = ds.get("validation")
63
+
64
+ # 2. Load model & attach vision LoRA adapters
65
+ model, tokenizer = FastVisionModel.from_pretrained(
66
+ "unsloth/Qwen3-VL-Max-Instruct",
67
+ load_in_4bit=True,
68
+ max_seq_length=2048,
69
+ )
70
+ model = FastVisionModel.get_peft_model(
71
+ model,
72
+ finetune_vision_layers=True,
73
+ finetune_language_layers=True,
74
+ finetune_attention_modules=True,
75
+ finetune_mlp_modules=True,
76
+ r=16,
77
+ lora_alpha=16,
78
+ lora_dropout=0.05,
79
+ )
80
+ FastVisionModel.for_training(model)
81
+
82
+ # 3. Train with SFTTrainer
83
+ trainer = SFTTrainer(
84
+ model=model,
85
+ tokenizer=tokenizer,
86
+ data_collator=UnslothVisionDataCollator(model, tokenizer),
87
+ train_dataset=train_data,
88
+ eval_dataset=eval_data,
89
+ args=SFTConfig(
90
+ per_device_train_batch_size=2,
91
+ gradient_accumulation_steps=4,
92
+ learning_rate=1e-4,
93
+ num_train_epochs=3,
94
+ optim="adamw_8bit",
95
+ output_dir="./lora_checkpoints",
96
+ ),
97
+ )
98
+ trainer.train()
99
+ ```
100
+
101
+ ---
102
+
103
+ ## 📦 Standalone Artifacts in this Repository
104
+
105
+ - **`images/`**: Content-addressed directory containing every verified document page image (LFS deduplicated).
106
+ - **`images_backup.tar.gz`**: Standalone compressed archive of all page images for raw PyTorch / non-parquet workflows.
107
+ - **`feedback.jsonl`**: Exact raw JSONL feedback log with per-record `batch_id` and `synced_at` watermarks.
108
+ - **`schemas_bundle.json`**: Official Bangladesh Bank JSON schemas, field definitions, and XML templates.
109
+ - **`trade_ontology.json`**: Concept synonym mappings and bilingual hints.
110
+ - **`training_config.json`**: Recommended hyperparameters, target modules, and runtime compatibility settings.
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c91e819c4ff62098c18eeb2f6745be13f36fa9cc61b05b4484fe69478bea3c0f
3
+ size 84986199
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f04e1dc403f0c9c814b6c4c8502e7988b2e2c4a608221a9b45abafb8372df017
3
+ size 17706093
documents/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3266a5342cad5af30be410591bd9ab1ee993086a333f69332c56a3b9c2cf553
3
+ size 52124424
feedback.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
images/AIR_WAYBILL_VAR1_EMIRATES_SKYCARGO_e6a94b.png ADDED

Git LFS Details

  • SHA256: 1e2966ae4d1c35fcb17a29f9e27986ec92f88fe02145e7716d0fd92b40cf4876
  • Pointer size: 131 Bytes
  • Size of remote file: 742 kB
images/AIR_WAYBILL_VAR2_QATAR_CARGO_29013c.png ADDED

Git LFS Details

  • SHA256: fdb07188e39e9bde7ea9ec5c856abdc29ad23cd03cbe7539184d4710bb45cf17
  • Pointer size: 131 Bytes
  • Size of remote file: 733 kB
images/AIR_WAYBILL_VAR3_SINGAPORE_CARGO_603a23.png ADDED

Git LFS Details

  • SHA256: 133f271b0c2a2c14e52ccd353a7b53893bc1c072b1e620714e74f99e39eb0810
  • Pointer size: 131 Bytes
  • Size of remote file: 733 kB
images/AIR_WAYBILL_VAR4_LUFTHANSA_CARGO_de92e8.png ADDED

Git LFS Details

  • SHA256: fe8521e5d375dee3105754134cddd4cdd0a905dfd710675152dba67ab5fdd98e
  • Pointer size: 131 Bytes
  • Size of remote file: 735 kB
images/BILL_OF_ENTRY_VAR1_CHATTOGRAM_101_d9f691.png ADDED

Git LFS Details

  • SHA256: ce44d02d1576d95d90564120f99ccbfe9a503d94a392ebcb97ecff40114f250b
  • Pointer size: 131 Bytes
  • Size of remote file: 727 kB
images/BILL_OF_ENTRY_VAR2_DHAKA_ICD_301_5c13b3.png ADDED

Git LFS Details

  • SHA256: 144600518885f28fa790dfdb5d58782c76a2118a50ea22576e9f1149ce4c4eba
  • Pointer size: 131 Bytes
  • Size of remote file: 729 kB
images/BILL_OF_ENTRY_VAR2_DHAKA_ICD_301_5c13b3_5b48be.png ADDED

Git LFS Details

  • SHA256: eb1b558fc32076a8f4c8f5a48664f527e0e2125d0fefe67e9016bd9b65e0c82a
  • Pointer size: 131 Bytes
  • Size of remote file: 427 kB
images/BILL_OF_ENTRY_VAR2_DHAKA_ICD_301_5c13b3_be4dd0.png ADDED

Git LFS Details

  • SHA256: eb1b558fc32076a8f4c8f5a48664f527e0e2125d0fefe67e9016bd9b65e0c82a
  • Pointer size: 131 Bytes
  • Size of remote file: 427 kB
images/BILL_OF_ENTRY_VAR3_BENAPOLE_501_5bee8f.png ADDED

Git LFS Details

  • SHA256: a6b646fd2c7553ad24ffd855e5d4e40e2fdfdee75d6bd4f71a0f0757cff3466a
  • Pointer size: 131 Bytes
  • Size of remote file: 721 kB
images/BILL_OF_ENTRY_VAR4_MONGLA_201_c7c7f1.png ADDED

Git LFS Details

  • SHA256: 0bfa0dc0522eadec826660cf96bb7eed6235eb4a76635da9533093bbe34b85fd
  • Pointer size: 131 Bytes
  • Size of remote file: 728 kB
images/CamScanner_12-09-2026_11_49_compressed_85638c.png ADDED

Git LFS Details

  • SHA256: d16614bd43f2013161e252f7f66a54fee43dce5f84b6ec1e6c8d839351501386
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
images/CamScanner_12-09-2026_11_49_compressed_85638c_723bb8.png ADDED

Git LFS Details

  • SHA256: 418169a229cf37f19f1ac5471abc368373e5003ea2389ed9408eb7c509b32de2
  • Pointer size: 131 Bytes
  • Size of remote file: 258 kB
images/CamScanner_12-09-2026_11_49_compressed_8e9f45.png ADDED

Git LFS Details

  • SHA256: d16614bd43f2013161e252f7f66a54fee43dce5f84b6ec1e6c8d839351501386
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
images/DOC_01_commercial_lca.png ADDED

Git LFS Details

  • SHA256: 989494a073a4b02d50f29a060d8a11a8df464c2a1733a1e8a7fdf01fe3ddd54a
  • Pointer size: 131 Bytes
  • Size of remote file: 329 kB
images/DOC_01_commercial_lca_adece2.png ADDED

Git LFS Details

  • SHA256: 7211bf80494f56b202e97ea700eaf8ccbf0a42bcbe1c7720289a621e4c2e55e6
  • Pointer size: 131 Bytes
  • Size of remote file: 426 kB
images/DOC_02_commercial_lca_2af5b0.png ADDED

Git LFS Details

  • SHA256: d2f9206bab43b7a6f419ca5df9670fddd85549545b46c0387f98a605994c1a48
  • Pointer size: 131 Bytes
  • Size of remote file: 423 kB
images/DOC_02_industrial_lca.png ADDED

Git LFS Details

  • SHA256: 1bf728393e2710e7bf4c0b5e635013f56b433885a4027c88cb23dc297017c071
  • Pointer size: 131 Bytes
  • Size of remote file: 319 kB
images/DOC_03_bill_of_entry.png ADDED

Git LFS Details

  • SHA256: 726c9554ae7b3f38a4939e6fe9f79b18c14c10c2d90b92ce381e68c72b2e1616
  • Pointer size: 131 Bytes
  • Size of remote file: 346 kB
images/DOC_03_commercial_lca_d241bd.png ADDED

Git LFS Details

  • SHA256: 2b82d85643135dade26e222287a58284e3af928feb9f7e9b71bd0256ca04ebe9
  • Pointer size: 131 Bytes
  • Size of remote file: 425 kB
images/DOC_04_commercial_lca_95926d.png ADDED

Git LFS Details

  • SHA256: 81d7ad865c84fe2c8f24fc84799e9c6c32d9a363ddd9b6254e707d134f91430e
  • Pointer size: 131 Bytes
  • Size of remote file: 427 kB
images/DOC_04_exp_form.png ADDED

Git LFS Details

  • SHA256: 82ad087d97eebd0e5075cd5205b4d2978bcf291ded24f115349b9455733735cc
  • Pointer size: 131 Bytes
  • Size of remote file: 326 kB
images/DOC_05_commercial_lca_468313.png ADDED

Git LFS Details

  • SHA256: 87c15fa1fd6269a187c9bac98e59f1124563160df72aaf7ba53f2bcdb958aee2
  • Pointer size: 131 Bytes
  • Size of remote file: 425 kB
images/DOC_05_final_invoice.png ADDED

Git LFS Details

  • SHA256: 8b011775424cadf51182c1bbad72b69eb16d01a114127074a77ced212a3be3a7
  • Pointer size: 131 Bytes
  • Size of remote file: 341 kB
images/DOC_06_commercial_lca_aab69e.png ADDED

Git LFS Details

  • SHA256: 0f3583b00e5db52388958f916efbd9f12ad426be883efb5e167ed95241b3313e
  • Pointer size: 131 Bytes
  • Size of remote file: 426 kB
images/DOC_06_imp_form.png ADDED

Git LFS Details

  • SHA256: 0a55b30da73c3ce7a06f3553f4621432fac12fac50885ea2d73820e1131a9b58
  • Pointer size: 131 Bytes
  • Size of remote file: 308 kB
images/DOC_07_air_waybill.png ADDED

Git LFS Details

  • SHA256: 59d8d7a5d3a34de7311ea5216ec25ba041513f0da73674e854adbece600f81d5
  • Pointer size: 131 Bytes
  • Size of remote file: 332 kB
images/DOC_07_commercial_lca_3ad138.png ADDED

Git LFS Details

  • SHA256: a056e698fa1c08b97331c4922e10d1b66b23eb61f98282493cde66eb1d53e499
  • Pointer size: 131 Bytes
  • Size of remote file: 432 kB
images/DOC_08_industrial_lca_0cfdc8.png ADDED

Git LFS Details

  • SHA256: 49815be1efab518ebc508f14164c654190c261a16e0609e26a790cdda2f5d91d
  • Pointer size: 131 Bytes
  • Size of remote file: 436 kB
images/DOC_08_ocean_bl.png ADDED

Git LFS Details

  • SHA256: 048f3fd8c0cde133ac95b2e58159aa0e561b435aee373991d17a3ab400d060a4
  • Pointer size: 131 Bytes
  • Size of remote file: 335 kB
images/DOC_09_commercial_lca.png ADDED

Git LFS Details

  • SHA256: c684b46ba0ee2968684122b1462009d757654ae62f243370b8851974c75754ae
  • Pointer size: 131 Bytes
  • Size of remote file: 345 kB
images/DOC_09_industrial_lca_25d74f.png ADDED

Git LFS Details

  • SHA256: 58fec80bd16368f4dbcf82d93a09cee9c3075dee98471536f17c4dbf906b7819
  • Pointer size: 131 Bytes
  • Size of remote file: 430 kB
images/DOC_100_exp_form.png ADDED

Git LFS Details

  • SHA256: f7e3cfa6596a9c420a4360dc05785a203d7707fbfc5da6c617085914790bcc69
  • Pointer size: 131 Bytes
  • Size of remote file: 331 kB
images/DOC_101_final_invoice.png ADDED

Git LFS Details

  • SHA256: b60d9b1afa3b127de78867443c543075aeefeb5d5ba1a0c1ec1ce02add134f2c
  • Pointer size: 131 Bytes
  • Size of remote file: 327 kB
images/DOC_102_imp_form.png ADDED

Git LFS Details

  • SHA256: a646a18d20f7097fca137d8c8ccc3eb6f379e1d8be7508b2bee905b898bf77b3
  • Pointer size: 131 Bytes
  • Size of remote file: 316 kB
images/DOC_103_air_waybill.png ADDED

Git LFS Details

  • SHA256: d772b39f671f42e1d76d95610ae0969373ed593d025698253083a51ac7d3d560
  • Pointer size: 131 Bytes
  • Size of remote file: 337 kB
images/DOC_104_ocean_bl.png ADDED

Git LFS Details

  • SHA256: 43111031833a9e1b4e50c7e3e80fe6040b17aaea81370d779f403b9e04e33664
  • Pointer size: 131 Bytes
  • Size of remote file: 334 kB
images/DOC_105_commercial_lca.png ADDED

Git LFS Details

  • SHA256: b64800d67131637b60988207c7e04891b4c4d4e30a65bd8c4d32757fe7babfbe
  • Pointer size: 131 Bytes
  • Size of remote file: 341 kB
images/DOC_106_industrial_lca.png ADDED

Git LFS Details

  • SHA256: 569d577dfa57f823f79c3c782f339313a0b313ba48029f1448b33d01be0714a4
  • Pointer size: 131 Bytes
  • Size of remote file: 311 kB
images/DOC_107_bill_of_entry.png ADDED

Git LFS Details

  • SHA256: 4b5eb04b4bfa4cecfa029b32a2ef81b886fd0de4c7a441060f43d516f201df02
  • Pointer size: 131 Bytes
  • Size of remote file: 349 kB
images/DOC_108_exp_form.png ADDED

Git LFS Details

  • SHA256: db1ae2ff191bc7f45c040b169f4a6544e3776420ab8f398ae20843f5b42db009
  • Pointer size: 131 Bytes
  • Size of remote file: 341 kB
images/DOC_109_final_invoice.png ADDED

Git LFS Details

  • SHA256: 82500d213ded20afef6541bfced56b6c2571715d0e6f903b8facda4c4177a2fb
  • Pointer size: 131 Bytes
  • Size of remote file: 341 kB
images/DOC_10_industrial_lca.png ADDED

Git LFS Details

  • SHA256: bb20cfe20c73e198e1578b84dfbf12cf6ccc68b07fba8cdf0d18e6b9e415e496
  • Pointer size: 131 Bytes
  • Size of remote file: 327 kB
images/DOC_10_industrial_lca_958563.png ADDED

Git LFS Details

  • SHA256: d2034ef08d6704cc82094ed8418af8b641c07a2e307aff599ff97fdccdc2e861
  • Pointer size: 131 Bytes
  • Size of remote file: 427 kB
images/DOC_110_imp_form.png ADDED

Git LFS Details

  • SHA256: 1d5842123944bced683df79a496a9b74ec1abd9e463b04054d47880e1607fbbd
  • Pointer size: 131 Bytes
  • Size of remote file: 324 kB
images/DOC_111_air_waybill.png ADDED

Git LFS Details

  • SHA256: a7250eb91bf196e8486f7fcd4cf61da12736eae7711582e5d9250c8ba3e84214
  • Pointer size: 131 Bytes
  • Size of remote file: 322 kB