{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/omnibal-towards-fast-instruct-tuning-for","title":"OmniBal: Towards Fast Instruct-tuning for Vision-Language Models via Omniverse Computation Balance","arxiv_id":"2407.20761","date":"2024-07-30","proceeding":null,"authors":["Yongqiang Yao","Jingru Tan","Jiahao Hu","Feizhao Zhang","Xin Jin","Bo Li","Ruihao Gong","PengFei Liu"],"abstract":"Recently, vision-language instruct-tuning models have made significant progress due to their more comprehensive understanding of the world. In this work, we discovered that large-scale 3D parallel training on those models leads to an imbalanced computation load across different devices. The vision and language parts are inherently heterogeneous: their data distribution and model architecture differ significantly, which affects distributed training efficiency. We rebalanced the computational loads from data, model, and memory perspectives to address this issue, achieving more balanced computation across devices. These three components are not independent but are closely connected, forming an omniverse balanced training framework. Specifically, for the data, we grouped instances into new balanced mini-batches within and across devices. For the model, we employed a search-based method to achieve a more balanced partitioning. For memory optimization, we adaptively adjusted the re-computation strategy for each partition to utilize the available memory fully. We conducted extensive experiments to validate the effectiveness of our method. Compared with the open-source training code of InternVL-Chat, we significantly reduced GPU days, achieving about 1.8x speed-up. Our method's efficacy and generalizability were further demonstrated across various models and datasets. Codes will be released at https://github.com/ModelTC/OmniBal.","url_abs":"https://arxiv.org/abs/2407.20761v2","url_pdf":"https://arxiv.org/pdf/2407.20761v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"omnibal-towards-fast-instruct-tuning-for","repo_url":"https://github.com/modeltc/omnibal","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":null,"task_name":"GPU"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2407.20761","atlas_url":"https://app.syntology.ai/?focus=2407.20761","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.20761"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/ModelTC/OmniBal","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/modeltc/omnibal","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":1,"ran_honours":2,"unverified":2},"by_repo_kind":{"official":{"samples":5,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"bca40cc122c9e2c2","entry":"get_sp_groups","repo":"modeltc/omnibal","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/modeltc/omnibal/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bca40cc122c9e2c2"}},{"code_sha256_prefix":"247c4331ff8ffd71","entry":"get_token_sum","repo":"modeltc/omnibal","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/modeltc/omnibal/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"247c4331ff8ffd71"}},{"code_sha256_prefix":"4ec67a8cb2818342","entry":"get_vit_num","repo":"modeltc/omnibal","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/modeltc/omnibal/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4ec67a8cb2818342"}},{"code_sha256_prefix":"b95b1c76bb746221","entry":"BalancedDataset","repo":"modeltc/omnibal","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/modeltc/omnibal/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b95b1c76bb746221"}},{"code_sha256_prefix":"55ca6282c82aa63a","entry":"get_sp_dist_pad_ratio","repo":"modeltc/omnibal","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/modeltc/omnibal/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"55ca6282c82aa63a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}