{"Code":200,"Data":{"AigcAttributes":"{}","AigcIsTop":0,"AigcType":"","AlreadyStar":false,"ApplyMeta":"{}","ApprovalMode":0,"ApprovalNotifyEmail":"","Architectures":["InternVLChatModel"],"Avatar":"https://resouces.modelscope.cn/avatar/eda969c3-bc89-43c1-8538-134c38606ce1.jpg","Backbone":[],"BackendSupport":{"architectures":["InternVLChatModel"],"backend_info":{"deploy_task":["vlm","text","emb"],"lmdeploy":{"vlm":"0.9.1"},"lmdeploy_turbomind":{"vlm":"0.9.1"},"ollama":null,"sglang":{"vlm":"0.5.2"},"vllm":{"emb":"0.9.2","text":"0.9.2","vlm":"0.9.2"}},"model_id":"OpenGVLab/InternVL3_5-241B-A28B"},"BaseModel":["OpenGVLab/InternVL3_5-241B-A28B-MPO"],"BaseModelRelation":"finetune","CardReady":0,"CardUnreadyReason":"","CertificationCreateBy":"","CertificationCreatedTime":-62135596800,"ChineseName":"","CoverHeight":0,"CoverImages":[],"CoverWidth":0,"CreatedBy":"wangweiyun","CreatedTime":1756137074,"DashSdkParameter":"","Datasets":{"train":["OpenGVLab/MMPR-v1.2","OpenGVLab/MMPR-Tiny"]},"DemoAvailable":0,"DemoUnavailableReason":"","Description":"","Domain":[],"Downloads":1982,"ExampleCodeAvailable":0,"ExampleCodeUnavailableReason":"","ForbiddenVisibilityUpdate":false,"Frameworks":[],"FromSite":"maas","Id":541250,"Integrating":0,"IntegrationFailureLog":"","IntegrationFailureReason":"","IsAccessible":1,"IsCertification":4,"IsHot":0,"IsNewModel":false,"IsOnline":1,"IsOrgClaimed":false,"IsPreTrain":0,"IsPublished":1,"IsTop":0,"Language":["multilingual"],"LastUpdatedTime":1756490390,"Libraries":["pytorch","transformer","safetensors"],"License":"apache-2.0","LicenseLink":"","LicenseName":"","Meta":"","Metrics":[],"ModelDetail":{},"ModelInfos":{"safetensor":{"chat_template":"","files":[{"name":"model.safetensors.index.json","sha256":"86aa269ecf940fe581d66682539a0ccedaa802aefb4cda5f7b8376b057a0bcd8","size":3938145},{"name":"model-00001-of-00097.safetensors","sha256":"c0579a31f03751855b8c4e8112d64ad3be9da148ddb6025cccc9c1e139a8389d","size":4998557184},{"name":"model-00002-of-00097.safetensors","sha256":"c15d4c589c45e3991fd35d2df52caa9cc7d8e470b8384073448883c80b8ab127","size":4993417240},{"name":"model-00003-of-00097.safetensors","sha256":"082821a48efc4be09635243261f78fb956f832063df9e9df56835c74aecefba5","size":4992654176},{"name":"model-00004-of-00097.safetensors","sha256":"83eeadb4bcbc8622820e6fdfc99bd05beef3d1670421f11bc284bd170b42a4e6","size":4993189496},{"name":"model-00005-of-00097.safetensors","sha256":"b193776ed2851a8e6168a7998ff2d2314fe375fac0170b20aed080a8dec4f4cd","size":4996565936},{"name":"model-00006-of-00097.safetensors","sha256":"508fc2b64c7320845c36621d714bbb6d060a1174d9a0a595a859b4cf99d794b4","size":4094785712},{"name":"model-00007-of-00097.safetensors","sha256":"83b1f47ecf5f5af97065cfa104f4099ff10d03509e38dcbd5e33185d5ccffaeb","size":4999701880},{"name":"model-00008-of-00097.safetensors","sha256":"d6c8796d80e0788bdc9b9e7ff4740d3c17bc4482aecc4035ee91991720f27605","size":4995146848},{"name":"model-00009-of-00097.safetensors","sha256":"8821495f24e65dee8eca3d2db05c5e0ae0807382ecb8cf36a5032518ac253648","size":4993092240},{"name":"model-00010-of-00097.safetensors","sha256":"df0eccbc9c4027fde071472352f268ab170afe42fe84bd41f432708901e5f47c","size":4999201408},{"name":"model-00011-of-00097.safetensors","sha256":"863a9692bd03cf936dd145b4b0ea9338bede2503fc3df5d9b3af1f9de9f3d0e6","size":4989858080},{"name":"model-00012-of-00097.safetensors","sha256":"683d30f6efd535fcb50e94da3a15ae33876a1017f90bd2a15121b6825cd14859","size":4989272720},{"name":"model-00013-of-00097.safetensors","sha256":"fa8fe1f9a1c79b929512c081b7be30eb030364f874068e5d3a2c01a66d9a21de","size":4991471176},{"name":"model-00014-of-00097.safetensors","sha256":"1df357c43140d863e5ea5d7c56cfd6b86f313e0769e54fb34ed66e58fa8e85c0","size":4997790104},{"name":"model-00015-of-00097.safetensors","sha256":"a617fb285635ee68e3243fbcce1f48320685afc06baec67adb8253b50d059a67","size":4997731792},{"name":"model-00016-of-00097.safetensors","sha256":"456dfe03744929817e9ca85f64413e9e35863afeb03251275642a89ad119d4a5","size":4988854752},{"name":"model-00017-of-00097.safetensors","sha256":"73bd5f7f886a963e4388351efad9ba12f829bb1559a13b34bf317f50a01ec16a","size":4990628776},{"name":"model-00018-of-00097.safetensors","sha256":"1658aeee28652d6f15d65a6823d11698970b471c0f516d8138b043bdb4a8eb1f","size":4992687824},{"name":"model-00019-of-00097.safetensors","sha256":"2176dbc72e7c9049bd36e715162c64d8c52827863fbffb406b06fc03034aa14f","size":4997304928},{"name":"model-00020-of-00097.safetensors","sha256":"0d370a1500946fe5a06613606063d6b2451d3a2946d8b7796274f9fd59c94128","size":4993562864},{"name":"model-00021-of-00097.safetensors","sha256":"49f4caa10e8ec54697e1bfe092f541f24bcdd200a6648bd855c4a6f957bb234f","size":4995662728},{"name":"model-00022-of-00097.safetensors","sha256":"ff397122e4910aed90f661033eb22697bc5b70f138f845b022ce0d4a8ed0c37f","size":4994858072},{"name":"model-00023-of-00097.safetensors","sha256":"8c20349292a14ffa8ac78d47976a9cbdd0d0a752e83d7bd98bfb0112938be523","size":4993690368},{"name":"model-00024-of-00097.safetensors","sha256":"a3cc915f05cba8e07f9e3780c60b4301b15c841052a8b28a27d3be90a2012e07","size":4988722968},{"name":"model-00025-of-00097.safetensors","sha256":"abd0f2591a12be528b1912206c7c3c7c7db140a48beba417201c6b5e0a10d2fa","size":4999700840},{"name":"model-00026-of-00097.safetensors","sha256":"288bb76c623d7893211be83ea1118de64da547824fe9ac8a8b5a279f4c708b81","size":4995120552},{"name":"model-00027-of-00097.safetensors","sha256":"5694a88fd4c56a326a8866b82179bbfc762d0d7b4ec4445996a9383988a6cb1f","size":4989221952},{"name":"model-00028-of-00097.safetensors","sha256":"c8d0c8fb1d568ab6d0b8d3188403bf88708b3ca0172bf1558d006348503dd66f","size":4991058184},{"name":"model-00029-of-00097.safetensors","sha256":"a70605d8bf93fc4e15aecb5ba1c84e878b4386ff3cdf39132f38c260c8155b55","size":4997588064},{"name":"model-00030-of-00097.safetensors","sha256":"20bd0c19d651f9c89f3aa3961415278c56cb0d64a2e702ad597e1e87986e6427","size":4994787664},{"name":"model-00031-of-00097.safetensors","sha256":"dadd9f23dc4076564f17ac5187ef1a7f37c006eada1b643667ad8a4d61d5f32f","size":4989115840},{"name":"model-00032-of-00097.safetensors","sha256":"13cae254904374c87bca77180d52490b1bafea4fabdbb768a8e451e172ca9c37","size":4998740568},{"name":"model-00033-of-00097.safetensors","sha256":"8d308bbf63684c9db1b678783120fc8c903486f5cf2770b8f8ce5a496607255d","size":4996885104},{"name":"model-00034-of-00097.safetensors","sha256":"d2f9b3aa330bc4f67a0e1c00c7bec37ec115acea64ea4081000ab582fdbbd461","size":4998809976},{"name":"model-00035-of-00097.safetensors","sha256":"b95dcee15e55dd25509499ea1dace46ca1906030ff2dfdcd80ead317f9e8554c","size":4991007928},{"name":"model-00036-of-00097.safetensors","sha256":"b24977d529aa633246e1bef66fd0676d6300f7260ac29403c6496dba847a8cd9","size":4989739576},{"name":"model-00037-of-00097.safetensors","sha256":"23ef0c59b31fbf16bc2e0ae832acf5eb33b9ecec740afa75f6f4b93e5cb99280","size":4990908952},{"name":"model-00038-of-00097.safetensors","sha256":"5b3dda4414ad449b688fe35a844b16fcfe85ecfe40b2ef9bfcfef38b29817a6f","size":4988090800},{"name":"model-00039-of-00097.safetensors","sha256":"d148455a0c56c9fd9aad7d33e659bc49bf576aeff018c9be0418ee293a984472","size":4990118984},{"name":"model-00040-of-00097.safetensors","sha256":"0a0916f0edd723ce7400ce418e3039feb85ffbaaaa00b72da60c813ea3a5eff8","size":4997237560},{"name":"model-00041-of-00097.safetensors","sha256":"83ed2df01054447bedcf0b0433ec8d9ccc1846cf0ebdf004ffeae1b940991423","size":4991460864},{"name":"model-00042-of-00097.safetensors","sha256":"558f09bd5f67121f04cb00db6b1ca4275672e696fbe268a9fcee7f8ae768d461","size":4990316568},{"name":"model-00043-of-00097.safetensors","sha256":"cb4dbe33f53169b8621886b20bdd8ee9c4af970797bef20048abf511963234c0","size":4996363224},{"name":"model-00044-of-00097.safetensors","sha256":"9879a829e7521c793a79bc01ef593e26266c254cbd83d2f439792d9af4bff7e9","size":4991443560},{"name":"model-00045-of-00097.safetensors","sha256":"60d3d69d0f65f3044f7447094419ff587f46c23d10e49be79b3ae920ab7b8efa","size":4990841624},{"name":"model-00046-of-00097.safetensors","sha256":"ae8d5b758da6207e4941172d0d657bf1ad4913b4f42a6318c1672229a2048329","size":4992396328},{"name":"model-00047-of-00097.safetensors","sha256":"34721c74f2c7ad1b830118772cae8623d7f8d71552ebe37341d0e716f8ed1a13","size":4992176344},{"name":"model-00048-of-00097.safetensors","sha256":"7cde4ce9b1be01ae7b947b5e002bbfb089b5d98e44d5ea6a1849b2cd79e10ab3","size":4990429944},{"name":"model-00049-of-00097.safetensors","sha256":"a29e605a8b6957b1f2d72aa9df9a74b57228576eedbbd40fc23b5635a96ee136","size":4999224984},{"name":"model-00050-of-00097.safetensors","sha256":"eba73e681797f937c549058eda4b8aca3c52998cd017d38ef4025a19dab566ee","size":4988376376},{"name":"model-00051-of-00097.safetensors","sha256":"6bdd79b98ac031eeda84cf014ba4ab0016ca37f903a5d972661fc4f74614c0da","size":4994186688},{"name":"model-00052-of-00097.safetensors","sha256":"71b5fb2739a870418f88451374662fcd10e57d5dd73d20276dcb49cba7e83e21","size":4997018552},{"name":"model-00053-of-00097.safetensors","sha256":"2a146f7dcdf486b2f8156eccecc51f5595436c5f246a270d562b3c245c653b47","size":4996560088},{"name":"model-00054-of-00097.safetensors","sha256":"a2ae67c5d53c3998f1a95fce80107a45fe300f60386999ab2661b2161965341c","size":4989623752},{"name":"model-00055-of-00097.safetensors","sha256":"0cc5f262767cf53a44610f4a8871df84b4ba7dc923f49839e6f3d24718889c20","size":4980965576},{"name":"model-00056-of-00097.safetensors","sha256":"aee872b06cc4772145a87340a4ef15b15a57b51fe4e032af68cab09d314141bb","size":4988806328},{"name":"model-00057-of-00097.safetensors","sha256":"1938dfbdd0c676b0e0dc72b673f264d0c57e2e8b0ba65b5ab13c6679e9efe7e8","size":4988151272},{"name":"model-00058-of-00097.safetensors","sha256":"27a4ae97295ae903add77a7f0502e08aa6fa06b41a401df37e39852f4f9cdcd4","size":4993027976},{"name":"model-00059-of-00097.safetensors","sha256":"6203be4eb86cc474cab0b68af579bba75df96f7f9a778dbefc7976870e401185","size":4998245520},{"name":"model-00060-of-00097.safetensors","sha256":"75503b32a9e73a4b93b9b0caaeb146152ce386b9c9d25d1078e432809c0f3b4f","size":4988945864},{"name":"model-00061-of-00097.safetensors","sha256":"a47324d0bbc5ed3255b0663c819289e85e1ad8a799b98a58c4dc6669b2d6f352","size":4994214744},{"name":"model-00062-of-00097.safetensors","sha256":"a6ca3e6a9e167176d4e69e787fa82267d35c007186d20eb07273ec4a25a1b4f1","size":4990828360},{"name":"model-00063-of-00097.safetensors","sha256":"91a8d577d9405044fd89877e8252776f1412a4dacabb17c595badbee8c619086","size":4988152768},{"name":"model-00064-of-00097.safetensors","sha256":"a68405354273473f323361da99434a2510a0f6ab01e23470e0904e41a544d056","size":4989258608},{"name":"model-00065-of-00097.safetensors","sha256":"b99a9be45dfbd70be47a3b672de1a2f4e67d2f24bcdc584280d0a26ec4156f44","size":4991571888},{"name":"model-00066-of-00097.safetensors","sha256":"fdfb8df9c50d7ae64582c6fb519a5410426215e3ba0f1dfd8553d380dee0d4cd","size":4991986128},{"name":"model-00067-of-00097.safetensors","sha256":"338a120149b72de196faf7baef2c6472dd393c57d645f9737e5c1a61c01429fe","size":4990122304},{"name":"model-00068-of-00097.safetensors","sha256":"da229c3fa5baa61ba4895fea1d386b1c1abcbdaea0b51bd967100ec0983a56dd","size":4993115720},{"name":"model-00069-of-00097.safetensors","sha256":"46759d861c2074321bda20a89f568ebfe2698a037fdca8afa6a49c3ecd6234fc","size":4996645152},{"name":"model-00070-of-00097.safetensors","sha256":"2175755f7244dfa936c81533d1132bd0507c31251d45c8209419a9613b15ca65","size":4998767800},{"name":"model-00071-of-00097.safetensors","sha256":"fc6e9ff976a3f0e4bb96401823011a8f182f7c93e79216c97e018c871a402a60","size":4993049696},{"name":"model-00072-of-00097.safetensors","sha256":"ac9afb0fc030e7fd04a77182fd519402c9a8f03205b9962e73025ba6e6d250d1","size":4920282024},{"name":"model-00073-of-00097.safetensors","sha256":"7c91713af7d326b9a8fabf787656b3900c5daa6f00e0bf55f6d17b23ac356e42","size":4989972352},{"name":"model-00074-of-00097.safetensors","sha256":"61201170098dcdb0400ce9a2af4198593b184986352d8092e5e584e3e0a17d0f","size":4993924784},{"name":"model-00075-of-00097.safetensors","sha256":"772bc684946072fccb24022bc08f9aa3e5253576c36752e400de586dd2d6e6b6","size":4998764928},{"name":"model-00076-of-00097.safetensors","sha256":"359d6bdde13e63cdeff1ccdaecf6ed00e47f642fbd0bc0f3aab80d4c4beabd16","size":4996622352},{"name":"model-00077-of-00097.safetensors","sha256":"9c221b667ef4d6e3c9f594164eda81a043e6d6435ff3d9b06a325845335dfaa1","size":4994399064},{"name":"model-00078-of-00097.safetensors","sha256":"c01813bf31170cddc824d8d9a9b593f4fb7d4a34dc099d27facbaaac11aa964a","size":4989475016},{"name":"model-00079-of-00097.safetensors","sha256":"56d91d29e68ea0279a4853f60403cabcc493137fa9643c70306f538c6820d5a7","size":4993579904},{"name":"model-00080-of-00097.safetensors","sha256":"63e251c8f70e768d9c26e84ba53ca76526d0980207234812b4259e4acc024c40","size":4989468152},{"name":"model-00081-of-00097.safetensors","sha256":"365790d81c7b396370d0d5b1e5075dd250f7560dd4fbf49d718f798d7a5cd52b","size":4998298496},{"name":"model-00082-of-00097.safetensors","sha256":"667b1e0451e6198519df1376b82e3b85a73e27d9bac651c83bc0ac4c5d3800f7","size":4995634888},{"name":"model-00083-of-00097.safetensors","sha256":"ce48c1f5b8926129109029796ebdac02acce82e2d639d93a5ef92ecbefb40d2a","size":4993440472},{"name":"model-00084-of-00097.safetensors","sha256":"2634942b24faabd30af60ab306356969ca846a5b5ac38368f71306db25c5472d","size":4989861320},{"name":"model-00085-of-00097.safetensors","sha256":"5e86bd8042e9c00572eec7c14c7f4de4f54fdee8d31ce89038ea25cfda7b3126","size":4996270008},{"name":"model-00086-of-00097.safetensors","sha256":"af7d27be858792e064156a1c3df71f0d2a6d4bc954233ae3adb833d0142d627f","size":4993716168},{"name":"model-00087-of-00097.safetensors","sha256":"f101c76cd07e0bcbb54f6f95650fff3e35ad1ed68800f0ffbd8f22cf7729dcfb","size":4993576904},{"name":"model-00088-of-00097.safetensors","sha256":"b93e644daff963151134bd385ab9b92376a274d1ce9aa41afcdc55d00df7cd06","size":4993552600},{"name":"model-00089-of-00097.safetensors","sha256":"def54579f91512da65ac78cb62e3d22396248eda8c1d08d00acd0035c67ed075","size":4991913920},{"name":"model-00090-of-00097.safetensors","sha256":"580af3bc1fe415261e8112c32cede8ec5ffb23c53dc9716d31029ac1bc9ec935","size":4997611672},{"name":"model-00091-of-00097.safetensors","sha256":"06770aca7392ff561588e8984e8a26e33f9ed18deaf7981c18d48972591e1b13","size":4991342208},{"name":"model-00092-of-00097.safetensors","sha256":"f6c3f930bef69a984372009104d42fde5ad9116377007793813a765922f49f58","size":4991420480},{"name":"model-00093-of-00097.safetensors","sha256":"a84b2a18cc3e593c0dd79ec558b1eabeb8cdbf7af22f3d428e9c99329b3ea31d","size":4994591904},{"name":"model-00094-of-00097.safetensors","sha256":"57fadaced185a7f76bdfc11b10b83c8218d3692487e3e6f90e84385c237f604a","size":4996764536},{"name":"model-00095-of-00097.safetensors","sha256":"365b995483651fd4f024d54eb3f751f0699b97b26670d692925641a544250723","size":4999293064},{"name":"model-00096-of-00097.safetensors","sha256":"a9f3e73ebedcb4e28e1184921e5630418d27cdd15f23f730b3e630fdd09fdd2e","size":4991361912},{"name":"model-00097-of-00097.safetensors","sha256":"c5c90eb8ca30ccfe768dd99afe92a5ddf74f2ef1c43572deeb4769d0ddbc4779","size":3016019976}],"model_size":240699370368,"tensor_type":["BF16"]}},"ModelRevisions":null,"ModelSource":"USER_UPLOAD","ModelTools":"","ModelType":["internvl_chat"],"MuseInfo":null,"NEXA":{"Catalogues":null,"ModelCover":"","ScientificField":"","Source":"","SubScientificField":null},"Name":"InternVL3_5-241B-A28B","NewVersion":"","NickName":"Weiyun1025","OfficialTags":null,"OpenAiSwingDeployInfo":{"Order":0,"Recommend":null,"lmdeploy":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"ollama":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"pipeline":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"vllm":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""}},"Organization":{"ApplyFailureReason":"","ApplyReason":"","Avatar":"https://resouces.modelscope.cn/avatar/df365a52-3b27-48ec-b95f-f7d109d67340.png","CreateCompetition":false,"CreatedBy":"Cherrytest","Description":"[\"root\",{},[\"p\",{},[\"span\",{\"data-type\":\"text\"},[\"span\",{\"data-type\":\"leaf\"},\"\"]]]]","DisplayUrl":"","Email":"","EmailDomain":"","FollowerCnt":0,"FromSite":"","FullName":"OpenGVLab","GithubAddress":"https://github.com/opengvlab","GmtCreated":"2024-05-30T05:31:50Z","GmtModified":"2024-06-18T04:58:37Z","Id":731,"InitAdminMembers":"","IsApply":false,"IsCertification":"","MemberCnt":0,"Mobile":"","Name":"OpenGVLab","Path":"","Roles":null,"SocialLinks":null,"StarCnt":0,"Status":0,"SubscribeVo":null,"Type":1},"PaiModelGalleryUrl":{"deploy":"https://account.aliyun.com/login/login.htm?oauth_callback=https%3A//pai.console.aliyun.com/regionId%3Dcn-hangzhou%23/quick-start/models/InternVL3_5-241B-A28B/intro%3FviewType%3DDeploy%26from%3DModelScope\u0026lang=zh"},"PaiSdkParameter":null,"Path":"OpenGVLab","ProtectedMode":0,"ReadMeContent":"\n# InternVL3_5-241B-A28B\n\n[\\[📂 GitHub\\]](https://github.com/OpenGVLab/InternVL)  [\\[📜 InternVL 1.0\\]](https://huggingface.co/papers/2312.14238)  [\\[📜 InternVL 1.5\\]](https://huggingface.co/papers/2404.16821)  [\\[📜 InternVL 2.5\\]](https://huggingface.co/papers/2412.05271)  [\\[📜 InternVL2.5-MPO\\]](https://huggingface.co/papers/2411.10442)  [\\[📜 InternVL3\\]](https://huggingface.co/papers/2504.10479) [\\[📜 InternVL3.5\\]](https://huggingface.co/papers/2508.18265)\n\n[\\[🆕 Blog\\]](https://internvl.github.io/blog/)  [\\[🗨️ Chat Demo\\]](https://chat.intern-ai.org.cn/)  [\\[🚀 Quick Start\\]](#quick-start)  [\\[📖 Documents\\]](https://internvl.readthedocs.io/en/latest/)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"500\" alt=\"image\" src=\"https://cdn-uploads.huggingface.co/production/uploads/64006c09330a45b03605bba3/zJsd2hqd3EevgXo6fNgC-.png\"\u003e\n\u003c/div\u003e\n\n## Introduction\n\nWe introduce *InternVL3.5*, a new family of open-source multimodal models that significantly advances versatility, reasoning capability, and inference efficiency along the InternVL series. A key innovation is the *Cascade Reinforcement Learning (Cascade RL)* framework, which enhances reasoning through a two-stage process: offline RL for stable convergence and online RL for refined alignment. This coarse-to-fine training strategy leads to substantial improvements on downstream reasoning tasks, e.g., MMMU and MathVista. To optimize efficiency, we propose a *Visual Resolution Router (ViR)* that dynamically adjusts the resolution of visual tokens without compromising performance. Coupled with ViR, our Decoupled *Vision-Language Deployment (DvD)* strategy separates the vision encoder and language model across different GPUs, effectively balancing computational load. These contributions collectively enable InternVL3.5 to achieve up to a +16.0\\% gain in overall reasoning performance and a 4.05 \\\\(\\times\\\\) inference speedup compared to its predecessor, i.e., InternVL3. In addition, InternVL3.5 supports novel capabilities such as GUI interaction and embodied agency. Notably, our largest model, i.e.,  InternVL3.5-241B-A28B, attains state-of-the-art results among open-source MLLMs across general multimodal, reasoning, text, and agentic tasks—narrowing the performance gap with leading commercial models like GPT-5. All models and code are publicly released.\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance.jpg)\n\n\u003e Hatched bars represent closed-source commercial models. We report average scores on a set of multimodal general, reasoning, text, and agentic benchmarks: MMBench v1.1 (en), MMStar,BLINK, HallusionBench, AI2D, OCRBench, MMVet, MME-RealWorld (en), MVBench, VideoMME, MMMU, MathVista, MathVision, MathVerse, DynaMath, WeMath, LogicVista, MATH500, AIME24, AIME25, GPQA, MMLU-Pro, GAOKAO, IFEval, SGP-Bench, VSI-Bench, ERQA, SpaCE-10, and OmniSpatial.\n\nSee [quick start](#quick-start) for how to use our model.\n\n## InternVL3.5 Family\n\nIn the following table, we provide an overview of the InternVL3.5 series.\nTo maintain consistency with earlier generations, we provide two model formats: [the GitHub format](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B), consistent with prior releases, and [the HF format](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B-HF), aligned with the official Transformers standard.\n\n\u003e If you want to convert the checkpoint between these two formats, please refer to the scripts about [custom2hf](https://github.com/OpenGVLab/InternVL/blob/main/internvl_chat/tools/internvl_custom2hf.py) and [hf2custom](https://github.com/OpenGVLab/InternVL/blob/main/internvl_chat/tools/internvl_hf2custom.py).\n\n\n### Github Format\n\n\n| Model                 | #Vision Param | #Language Param | #Total Param | HF Link                                                                        | ModelScope Link                                                                          |\n| --------------------- | ------------- | --------------- | ------------ | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- |\n| InternVL3.5-1B        | 0.3B          | 0.8B            | 1.1B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-1B)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-1B)                      |\n| InternVL3.5-2B        | 0.3B          | 2.0B            | 2.3B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-2B)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-2B)                      |\n| InternVL3.5-4B        | 0.3B          | 4.4B            | 4.7B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-4B)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-4B)                      |\n| InternVL3.5-8B        | 0.3B          | 8.2B            | 8.5B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-8B)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-8B)                      |\n| InternVL3.5-14B       | 0.3B          | 14.8B           | 15.1B        | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-14B)                     | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-14B)                     |\n| InternVL3.5-38B       | 5.5B          | 32.8B           | 38.4B        | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-38B)                     | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-38B)                     |\n| InternVL3.5-20B-A4B   | 0.3B          | 20.9B           | 21.2B-A4B    | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-GPT-OSS-20B-A4B-Preview) | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-GPT-OSS-20B-A4B-Preview) |\n| InternVL3.5-30B-A3B   | 0.3B          | 30.5B           | 30.8B-A3B    | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-30B-A3B)                 | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-30B-A3B)                 |\n| InternVL3.5-241B-A28B | 5.5B          | 235.1B          | 240.7B-A28B  | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B)               | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-241B-A28B)               |\n\n\n### HuggingFace Format\n\n\n| Model                    | #Vision Param | #Language Param | #Total Param | HF Link                                                                           | ModelScope Link                                                                             |\n| ------------------------ | ------------- | --------------- | ------------ | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| InternVL3.5-1B-HF        | 0.3B          | 0.8B            | 1.1B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-1B-HF)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-1B-HF)                      |\n| InternVL3.5-2B-HF        | 0.3B          | 2.0B            | 2.3B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-2B-HF)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-2B-HF)                      |\n| InternVL3.5-4B-HF        | 0.3B          | 4.4B            | 4.7B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-4B-HF)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-4B-HF)                      |\n| InternVL3.5-8B-HF        | 0.3B          | 8.2B            | 8.5B         | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-8B-HF)                      | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-8B-HF)                      |\n| InternVL3.5-14B-HF       | 0.3B          | 14.8B           | 15.1B        | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-14B-HF)                     | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-14B-HF)                     |\n| InternVL3.5-38B-HF       | 5.5B          | 32.8B           | 38.4B        | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-38B-HF)                     | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-38B-HF)                     |\n| InternVL3.5-20B-A4B-HF   | 0.3B          | 20.9B           | 21.2B-A4B    | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-GPT-OSS-20B-A4B-Preview-HF) | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-GPT-OSS-20B-A4B-Preview-HF) |\n| InternVL3.5-30B-A3B-HF   | 0.3B          | 30.5B           | 30.8B-A3B    | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-30B-A3B-HF)                 | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-30B-A3B-HF)                 |\n| InternVL3.5-241B-A28B-HF | 5.5B          | 235.1B          | 240.7B-A28B  | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B-HF)               | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-241B-A28B-HF)               |\n\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_overall.jpg)\n\n\u003e We conduct the evaluation with [VLMEvalkit](https://github.com/open-compass/VLMEvalKit). ***To enable the Thinking mode of our model, please set the system prompt to [R1_SYSTEM_PROMPT](https://github.com/open-compass/VLMEvalKit/blob/main/vlmeval/vlm/internvl/internvl_chat.py#L38).*** When enabling Thinking mode, we recommend setting `do_sample=True` and `temperature=0.6` to mitigate undesired repetition.\n\nOur training pipeline comprises four stages: Multimodal Continual Pre-Training (**CPT**), Supervised Fine-Tuning (**SFT**), and Cascade Reinforcement Learning (**CascadeRL**). In CascadeRL, we first fine-tune the model using Mixed Preference Optimization (**MPO**) under an offline RL setting, followed by **GSPO** under an oneline RL setting.\nFor the Flash version of InternVL3.5, we additionally introduce a lightweight training stage, termed Visual Consistency Learning (**ViCO**), which reduces the token cost required to represent an image patch.\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/training_pipeline.jpg)\n\nHere, we also open-source the model weights after different training stages for potential research usage.\n***If you're unsure which version to use, please select the one without any suffix, as it has completed the full training pipeline.***\n\n\n| Model                            | Training Pipeline     | HF Link                                                                     | ModelScope Link                                                                       |\n| -------------------------------- | --------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |\n| InternVL3.5-1B-Pretrained        | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-1B-Pretrained)        | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-1B-Pretrained)        |\n| InternVL3.5-1B-Instruct          | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-1B-Instruct)          | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-1B-Instruct)          |\n| InternVL3.5-1B-MPO               | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-1B-MPO)               | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-1B-MPO)               |\n| InternVL3.5-1B                   | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-1B)                   | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-1B)                   |\n| InternVL3.5-2B-Pretrained        | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-2B-Pretrained)        | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-2B-Pretrained)        |\n| InternVL3.5-2B-Instruct          | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-2B-Instruct)          | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-2B-Instruct)          |\n| InternVL3.5-2B-MPO               | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-2B-MPO)               | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-2B-MPO)               |\n| InternVL3.5-2B                   | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-2B)                   | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-2B)                   |\n| InternVL3.5-4B-Pretrained        | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-4B-Pretrained)        | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-4B-Pretrained)        |\n| InternVL3.5-4B-Instruct          | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-4B-Instruct)          | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-4B-Instruct)          |\n| InternVL3.5-4B-MPO               | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-4B-MPO)               | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-4B-MPO)               |\n| InternVL3.5-4B                   | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-4B)                   | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-4B)                   |\n| InternVL3.5-8B-Pretrained        | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-8B-Pretrained)        | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-8B-Pretrained)        |\n| InternVL3.5-8B-Instruct          | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-8B-Instruct)          | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-8B-Instruct)          |\n| InternVL3.5-8B-MPO               | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-8B-MPO)               | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-8B-MPO)               |\n| InternVL3.5-8B                   | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-8B)                   | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-8B)                   |\n| InternVL3.5-14B-Pretrained       | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-14B-Pretrained)       | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-14B-Pretrained)       |\n| InternVL3.5-14B-Instruct         | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-14B-Instruct)         | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-14B-Instruct)         |\n| InternVL3.5-14B-MPO              | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-14B-MPO)              | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-14B-MPO)              |\n| InternVL3.5-14B                  | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-14B)                  | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-14B)                  |\n| InternVL3.5-30B-A3B-Pretrained   | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-30B-A3B-Pretrained)   | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-30B-A3B-Pretrained)   |\n| InternVL3.5-30B-A3B-Instruct     | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-30B-A3B-Instruct)     | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-30B-A3B-Instruct)     |\n| InternVL3.5-30B-A3B-MPO          | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-30B-A3B-MPO)          | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-30B-A3B-MPO)          |\n| InternVL3.5-30B-A3B              | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-30B-A3B)              | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-30B-A3B)              |\n| InternVL3.5-38B-Pretrained       | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-38B-Pretrained)       | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-38B-Pretrained)       |\n| InternVL3.5-38B-Instruct         | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-38B-Instruct)         | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-38B-Instruct)         |\n| InternVL3.5-38B-MPO              | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-38B-MPO)              | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-38B-MPO)              |\n| InternVL3.5-38B                  | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-38B)                  | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-38B)                  |\n| InternVL3.5-241B-A28B-Pretrained | CPT                   | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B-Pretrained) | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-241B-A28B-Pretrained) |\n| InternVL3.5-241B-A28B-Instruct   | CPT + SFT             | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B-Instruct)   | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-241B-A28B-Instruct)   |\n| InternVL3.5-241B-A28B-MPO        | CPT + SFT + MPO       | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B-MPO)        | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-241B-A28B-MPO)        |\n| InternVL3.5-241B-A28B            | CPT + SFT + CascadeRL | [🤗 link](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B)            | [🤖 link](https://www.modelscope.cn/models/OpenGVLab/InternVL3_5-241B-A28B)            |\n\n\nThe Flash version of our model will be released as soon as possible.\n\n\n\n## Model Architecture\n\n`InternVL3.5`:\nThis series of models follow the \"ViT–MLP–LLM\" paradigm adopted in previous versions of InternVL.\nWe initialize the language model using the Qwen3 series and GPT-OSS, and the vision encoder using InternViT-300M and InternViT-6B.\nThe Dynamic High Resolution strategy introduced in InternVL1.5 is also retained in our design.\n\n\n`InternVL3.5-Flash`:\nCompared to InternVL3.5, InternVL3.5-Flash further integrates the *Visual Resolution Router (ViR)*, thus yielding a series of  efficient variants friendly  suitable for  resource-constrained scenarios. \nSpecifically, in InternVL3.5, each image patch is initially represented as 1024 visual tokens for the vision encoder, which are then compressed into 256 tokens via a pixel shuffle module before being passed to the Large Language Model (LLM).\nIn InternVL3.5-Flash, as shown in the Figure below, an additional pixel shuffle module with a higher compression rate is included, enabling the compression of visual tokens down to 64 tokens.\nFor each patch, the patch router determines the appropriate compression rate by assessing its semantic richness, and routes it to the corresponding pixel shuffle module accordingly.\nBenefiting from this patch-aware compression mechanism, InternVL3.5-Flash is able to reduce the number of visual tokens by 50\\% while maintaining nearly 100\\% of the performance of InternVL3.5.\n\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/architecture.jpg)\n\n## Training and Deployment Strategy\n\n### Pre-Training\n\nDuring the pre-training stage, we update all model parameters jointly using the combination of large-scale text and multimodal corpora. Specifically, given an arbitrary training sample consisting of a multimodal token sequence \\\\(\\mathbf{x}=\\left(x_1, x_2, \\ldots, x_L\\right)\\\\), the next token prediction (NTP) loss is calculated on each text token as follows:\n\n$$\n    \\mathcal{L}_{i}=-\\log p_\\theta\\left(x_i \\mid x_1, \\ldots, x_{i-1}\\right),\n$$\n\nwhere \\\\(x_i\\\\) is the predicted token and  prefix tokens in \\\\(\\{x_1, x_2, \\ldots, x_{i-1}\\}\\\\) can be either  text tokens or  image tokens. Notably, for conversation samples, only response tokens  are included for the calculation of the loss.\nAdditionally, to mitigate bias toward either longer or shorter responses during training, we adopt the square averaging to re-weight the NTP loss  as follows:\n\n$$\n\\mathcal{L}_{i}^{'} = \\frac{w_i}{\\sum_j w_j} \\cdot \\mathcal{L}_i, \\quad w_i = \\frac{1}{N^{0.5}},\n$$\n\nwhere \\\\(N\\\\) denotes the number of tokens in the training sample on which the loss needs to be calculated. The random JPEG compression is also included to enhance the model's real-world performance.\n\n### Supervised Fine-Tuning\n\nDuring the SFT phase, we adopt the same objective as in the pre-training stage and use the  square-root averaging strategy to calculate the final loss.  In this stage, the context window is set to 32K tokens to adapt long-context information.\nCompared to InternVL3, the SFT stage of InternVL3.5 contains  more high-quality and  diverse training data derived from three sources: \n\n(1) Instruction-following data from InternVL3, which are reused to preserve broad coverage of vision–language tasks. \n\n(2) Multimodal reasoning data in the \"Thinking\" mode, which are included to instill long-thinking capabilities in the model. To construct such data, we first use InternVL3-78B to describe the image and then input the description into DeepSeek-R1 to sample rollouts with detailed reasoning processes. Rollouts with an incorrect final answer are filtered out. The questions in these datasets cover various expert domains, such as mathematics and scientific disciplines, thereby strengthening performance on different reasoning tasks. \n\n(3) Capability-expansion datasets, which endow InternVL3.5 with new skills, including GUI-based interaction, embodied interaction, and scalable vect\n\n### Cascade Reinforcement Learning\n\nCascade RL aims to combine the benefits of offline RL and online RL to progressively facilitate the post-training of MLLMs in an efficient manner.\nSpecifically, we first fine-tune the model using an offline RL algorithm as an efficient warm-up stage to reach a satisfied results, which can guarantee the high-quality rollouts for the latter stage. \nSubsequently, we employ an online RL algorithm to further refine the output distribution based on rollouts generated by the model itself.  Compared to the single offline or online RL stage, our cascaded RL achieves significant performance improvements at a fraction of the GPU time cost.\n\n\n\nDuring the offline RL stage, we employ mixed preference optimization (MPO) to fine-tune the model. Specifically, the training objective of MPO is a combination of preference loss \\\\(\\mathcal{L}_{p}\\\\), quality loss \\\\(\\mathcal{L}_{q}\\\\), and generation loss \\\\(\\mathcal{L}_{g}\\\\), which can be formulated as follows:\n\n$$\n    \\mathcal{L}_{\\text{MPO}}=\n    w_{p} \\mathcal{L}_{p}\n    +\n    w_{q} \\mathcal{L}_{q}\n    +\n    w_{g} \\mathcal{L}_{g}\n    ,\n$$\n\nwhere \\\\(w_{*}\\\\) represents the weight assigned to each loss component.\nThe DPO loss, BCO loss, and LM loss serve as the preference loss, quality loss, and generation loss, respectively.\n\n\nDuring the online RL stage, we employ GSPO, without reference model constraints, as our online RL algorithm, which we find more effective in training both dense and mixture-of-experts (MoE) models. Similar to GRPO, the advantage is defined as the normalized reward across responses sampled from the same query.\nThe training objective of GSPO is given by:\n\n$$\n    \\mathcal{L}_{\\mathrm{GSPO}}(\\theta)=\\mathbb{E}_{x \\sim \\mathcal{D},\\left\\{y_i\\right\\}_{i=1}^G \\sim \\pi_{\\theta \\text { old }}(\\cdot \\mid x)}\\left[\\frac{1}{G} \\sum_{i=1}^G \\min \\left(s_i(\\theta) \\widehat{A}_i, \\operatorname{clip}\\left(s_i(\\theta), 1-\\varepsilon, 1+\\varepsilon\\right) \\widehat{A}_i\\right)\\right],\n$$\n\nwhere the importance sampling ratio is defined as the geometric mean of the per-token ratios.\n\n\u003e Please see [our paper](https://huggingface.co/papers/2508.18265) for more technical and experimental details.\n\n\n### Visual Consistency Learning\n\n\nWe further include ViCO as an additional training stage to integrate the *visual resolution router (ViR)* into InternVL3.5, thereby reducing the inference cost of InternVL3.5. The obtained efficient version of InternVL3.5 are termed as *InternVL3.5-Flash*. In particular, ViCO comprises two stages:\n\n`Consistency training`:\nIn this stage, the entire model is trained to minimize the divergence between response distributions conditioned on visual tokens with different compression rates.\nIn practice, we introduce an extra reference model, which is frozen and initialized with InternVL3.5.\nGiven a sample, each image patch is represented as either 256 or 64 tokens, and the training objective is defined as follows:\n\n\n$$\n\\mathcal{L}_\\text{ViCO} =\n\\mathbb{E}_{\\xi \\sim \\mathcal{R}} \\Bigg[\n\\frac{1}{N} \\sum_{i=1}^{N} \\mathrm{KL} \\Big(\n\\pi_{\\theta_{ref}}\\left(y_i \\mid y_{\u003ci}, I\\right) \\;\\Big\\|\\;\n\\pi_{\\theta_{policy}}\\left(y_i \\mid y_{\u003ci}, I_\\xi\\right)\n\\Big)\n\\Bigg],\n$$\n\nwhere \\\\(\\mathrm{KL}\\) denotes the KL divergence and \\(\\xi\\) denotes the compression rate, which is uniformly sampled from \\(\\{\\frac{1}{4},\\frac{1}{16}\\}\\). The image \\(I_\\xi\\) is represented as 256 tokens when \\(\\xi=\\frac{1}{4}\\) and 64 tokens when \\(\\xi=\\frac{1}{16}\\). Notably, the reference model always performs inference with \\(\\xi=\\frac{1}{4}\\).\n\n\n`Router training`:\nThis stage aims to train the ViR to select an appropriate trade-off resolution for different inputs.\nViR is formulated as a binary classifier and trained using standard cross-entropy loss.\nTo construct the route targets, we first compute the KL divergence between the model outputs conditioned on uncompressed visual tokens (i.e., 256 tokens per patch) and those conditioned on compressed visual tokens (i.e., 64 tokens per patch).\nDuring this stage, the main MLLM (ViT, MLP and LLM) is kept frozen, and only the ViR is trained.\nSpecifically, we first compute the loss ratio for each patch:\n\n$$\nr_i = \\frac{\\mathcal{L}_\\text{ViCO}\\big(y_i \\mid I_{\\frac{1}{16}}\\big)}{\\mathcal{L}_\\text{ViCO}\\big(y_i \\mid I_{\\frac{1}{4}}\\big)},\n$$\n\nwhich quantifies the relative increase in loss caused by compressing the visual tokens. Based on this ratio, the binary ground-truth label for the patch router is defined as:\n\n$$\ny_i^\\text{router} =\n\\begin{cases}\n0, \u0026 r_i \u003c \\tau \\; \\text{(compression has negligible impact)} \\\\\n1, \u0026 r_i \\ge \\tau \\; \\text{(compression has significant impact)},\n\\end{cases}\n$$\n\nwhere \\(y_i^{\\text{router}}=0\\) and \\(y_i^{\\text{router}}=1\\)  indicate that the compression rate \\(\\xi\\) is set to \\(\\tfrac{1}{16}\\) and \\(\\tfrac{1}{4}\\), respectively.\n\n\u003e Please see [our paper](https://huggingface.co/papers/2508.18265) for more technical and experimental details.\n\n\n### Test-Time Scaling\n\n\nTest-time scaling (TTS) has been empirically demonstrated as an effective approach to enhance the reasoning capabilities of LLMs and MLLMs, particularly for complex tasks necessitating multi-step inference.\nIn this work, we implement a comprehensive test-time scaling approach that simultaneously improves reasoning depth (i.e., deep thinking) and breadth (i.e., parallel thinking).\n\n`Deep Thinking`: By activating the Thinking mode, we guide the model to deliberately engage in step-by-step reasoning (i.e., decomposing complex problems into logical steps and validating intermediate conclusions) prior to generating the final answer. This approach systematically improves the logical structure of solutions for complex problems, particularly those requiring multi-step inference, and enhances reasoning depth.\n\n`Parallel Thinking`: Following InternVL3, for reasoning tasks, we adopt the Best-of-N (BoN) strategy by employing [VisualPRM-v1.1](https://huggingface.co/OpenGVLab/VisualPRM-8B-v1_1) as the critic model to select the optimal response from multiple reasoning candidates.\nThis approach improves reasoning breadth.\n\n\u003e Notably, unless otherwise specified, the experimental results reported in our paper are obtained without applying TTS. Thus far, we have only applied TTS to reasoning benchmarks, since we found that the model already exhibits strong perception and understanding capabilities, and initiating TTS yields no significant improvement.\n\n\n### Decoupled Vision-Language Deployment\n\nIn multimodal inference, the vision encoder and language model have distinct computational characteristics. The vision encoder that transforms images into semantic features is highly parallelizable and does not rely on long-term history state.  In contrast,  the language model adopts the inference in an autoregressive manner, which requires previous states to compute the next one. This sequential property makes the language part more sensitive to memory bandwidth and latency. \nWhen MLLMs are deployed online at scale, the vision and language models often block each other, thus incurring additional inference cost. This effect becomes more pronounced with larger vision models or higher-resolution images.\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/DvD.jpg)\n\nAs shown in the Figure above, we propose decoupled vision-language deployment (DvD) to address this issue by separating vision and language processing, with a particular focus on optimizing the prefilling stage. The vision subsystem batches and processes images to produce compact feature embeddings, which are then transmitted to the language subsystem for fusion with the text context prior to decoding. This separation alleviates blocking and brings multimodal prefilling performance closer to that of pure language models.\nIn our system implementation, the ViT and MLP (and ViR for InternVL3.5-Flash) are deployed on the vision server, while the language server executes only the LLM. The communication is unidirectional, transmitting BF16 visual features over TCP, with RDMA optionally employed to achieve higher transmission speed. Vision processing, feature transmission, and language processing are organized into an asynchronous three-stage pipeline, enabling overlapped execution and minimizing pipeline stalls.\n\n\nDvD increases GPU utilization and processing efficiency on the vision side, while enabling the language server to focus exclusively on the LLM’s prefilling and decoding without being blocked by vision computation. This design leads to improved throughput and responsiveness. Moreover, the architecture supports independent hardware cost optimization for the vision and language modules, and facilitates the seamless integration of new modules without requiring modifications to the language server deployment.\n\n\n## Evaluation on Multimodal Capability\n\n### Multimodal Reasoning and Mathematics\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_reasoning.jpg)\n\n### OCR, Chart, and Document Understanding\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_ocr.jpg)\n\n### Multi-Image Understanding \u0026 Real-World Comprehension\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_multi_images.jpg)\n\n### Comprehensive Multimodal Understanding \u0026 Multimodal Hallucination Evaluation\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_comprehensive.jpg)\n\n### Visual Grounding\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_grounding.jpg)\n\n### Multimodal Multilingual Understanding\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_multilingual.jpg)\n\n### Video Understanding\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_video.jpg)\n\n### GUI Tasks\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_gui.jpg)\n\n### Embodied Tasks\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_embody.jpg)\n\n### SVG Tasks\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_svg.jpg)\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_svg_gen.jpg)\n\n## Evaluation on Language Capability\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/performance_text.jpg)\n\n## Ablation Study\n\n### Cascade Reinforcement Learning\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/ablation_cascade_rl.jpg)\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/ablation_cascade_rl_table.jpg)\n\n### Decoupled Vision-Language Deployment\n\n\n![image/jpg](https://huggingface.co/OpenGVLab/InternVL3_5-241B-A28B/resolve/main/images/ablation_dvd.jpg)\n\n## Quick Start\n\nWe provide an example code to run `InternVL3.5-8B` using `transformers`. Please note that our models with up to 30B parameters can be deployed on a single A100 GPU, while the 38B model requires two A100 GPUs and the 235B model requires eight A100 GPUs.\n\n\u003e In most cases, both [LMDeploy](https://github.com/InternLM/lmdeploy) and [vLLM](https://github.com/vllm-project/vllm) can be used for model deployment. However, for InternVL3.5-20B-A4B, we recommend using vLLM since lmdeploy has not yet supported GPT-OSS.\n\n\u003e Please use transformers\u003e=4.52.1 to ensure the model works normally. For the 20B version of our model, transformers\u003e=4.55.0 is required.\n\n### Model Loading\n\n#### 16-bit (bf16 / fp16)\n\n```python\nimport torch\nfrom transformers import AutoTokenizer, AutoModel\npath = \"OpenGVLab/InternVL3_5-8B\"\nmodel = AutoModel.from_pretrained(\n    path,\n    torch_dtype=torch.bfloat16,\n    low_cpu_mem_usage=True,\n    use_flash_attn=True,\n    trust_remote_code=True).eval().cuda()\n```\n\n#### BNB 8-bit Quantization\n\n```python\nimport torch\nfrom transformers import AutoTokenizer, AutoModel\npath = \"OpenGVLab/InternVL3_5-8B\"\nmodel = AutoModel.from_pretrained(\n    path,\n    torch_dtype=torch.bfloat16,\n    load_in_8bit=True,\n    low_cpu_mem_usage=True,\n    use_flash_attn=True,\n    trust_remote_code=True).eval()\n```\n\n#### Multiple GPUs\n\n```python\nimport math\nimport torch\nfrom transformers import AutoTokenizer, AutoModel\n\npath = \"OpenGVLab/InternVL3_5-8B\"\nmodel = AutoModel.from_pretrained(\n    path,\n    torch_dtype=torch.bfloat16,\n    low_cpu_mem_usage=True,\n    use_flash_attn=True,\n    trust_remote_code=True,\n    device_map=\"auto\").eval()\n```\n\n### Thinking Mode\n\nTo enable thinking mode, please set the system prompt to our Thinking System Prompt. When enabling Thinking mode, we recommend setting `do_sample=True` and `temperature=0.6` to mitigate undesired repetition.\n\n```python\nR1_SYSTEM_PROMPT = \"\"\"\nYou are an AI assistant that rigorously follows this response protocol:\n\n1. First, conduct a detailed analysis of the question. Consider different angles, potential solutions, and reason through the problem step-by-step. Enclose this entire thinking process within \u003cthink\u003e and \u003c/think\u003e tags.\n\n2. After the thinking section, provide a clear, concise, and direct answer to the user's question. Separate the answer from the think section with a newline.\n\nEnsure that the thinking process is thorough but remains focused on the query. The final answer should be standalone and not reference the thinking section.\n\"\"\".strip()\n\nmodel.system_message = R1_SYSTEMP_PROMPT\n```\n\n### Inference with Transformers\n\n```python\nimport math\nimport numpy as np\nimport torch\nimport torchvision.transforms as T\nfrom decord import VideoReader, cpu\nfrom PIL import Image\nfrom torchvision.transforms.functional import InterpolationMode\nfrom transformers import AutoModel, AutoTokenizer\n\nIMAGENET_MEAN = (0.485, 0.456, 0.406)\nIMAGENET_STD = (0.229, 0.224, 0.225)\n\ndef build_transform(input_size):\n    MEAN, STD = IMAGENET_MEAN, IMAGENET_STD\n    transform = T.Compose([\n        T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),\n        T.Resize((input_size, input_size), interpolation=InterpolationMode.BICUBIC),\n        T.ToTensor(),\n        T.Normalize(mean=MEAN, std=STD)\n    ])\n    return transform\n\ndef find_closest_aspect_ratio(aspect_ratio, target_ratios, width, height, image_size):\n    best_ratio_diff = float('inf')\n    best_ratio = (1, 1)\n    area = width * height\n    for ratio in target_ratios:\n        target_aspect_ratio = ratio[0] / ratio[1]\n        ratio_diff = abs(aspect_ratio - target_aspect_ratio)\n        if ratio_diff \u003c best_ratio_diff:\n            best_ratio_diff = ratio_diff\n            best_ratio = ratio\n        elif ratio_diff == best_ratio_diff:\n            if area \u003e 0.5 * image_size * image_size * ratio[0] * ratio[1]:\n                best_ratio = ratio\n    return best_ratio\n\ndef dynamic_preprocess(image, min_num=1, max_num=12, image_size=448, use_thumbnail=False):\n    orig_width, orig_height = image.size\n    aspect_ratio = orig_width / orig_height\n\n    # calculate the existing image aspect ratio\n    target_ratios = set(\n        (i, j) for n in range(min_num, max_num + 1) for i in range(1, n + 1) for j in range(1, n + 1) if\n        i * j \u003c= max_num and i * j \u003e= min_num)\n    target_ratios = sorted(target_ratios, key=lambda x: x[0] * x[1])\n\n    # find the closest aspect ratio to the target\n    target_aspect_ratio = find_closest_aspect_ratio(\n        aspect_ratio, target_ratios, orig_width, orig_height, image_size)\n\n    # calculate the target width and height\n    target_width = image_size * target_aspect_ratio[0]\n    target_height = image_size * target_aspect_ratio[1]\n    blocks = target_aspect_ratio[0] * target_aspect_ratio[1]\n\n    # resize the image\n    resized_img = image.resize((target_width, target_height))\n    processed_images = []\n    for i in range(blocks):\n        box = (\n            (i % (target_width // image_size)) * image_size,\n            (i // (target_width // image_size)) * image_size,\n            ((i % (target_width // image_size)) + 1) * image_size,\n            ((i // (target_width // image_size)) + 1) * image_size\n        )\n        # split the image\n        split_img = resized_img.crop(box)\n        processed_images.append(split_img)\n    assert len(processed_images) == blocks\n    if use_thumbnail and len(processed_images) != 1:\n        thumbnail_img = image.resize((image_size, image_size))\n        processed_images.append(thumbnail_img)\n    return processed_images\n\ndef load_image(image_file, input_size=448, max_num=12):\n    image = Image.open(image_file).convert('RGB')\n    transform = build_transform(input_size=input_size)\n    images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)\n    pixel_values = [transform(image) for image in images]\n    pixel_values = torch.stack(pixel_values)\n    return pixel_values\n\npath = 'OpenGVLab/InternVL3_5-8B'\nmodel = AutoModel.from_pretrained(\n    path,\n    torch_dtype=torch.bfloat16,\n    load_in_8bit=False,\n    low_cpu_mem_usage=True,\n    use_flash_attn=True,\n    trust_remote_code=True,\n    device_map=\"auto\").eval()\ntokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False)\n\n# set the max number of tiles in `max_num`\npixel_values = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()\ngeneration_config = dict(max_new_tokens=1024, do_sample=True)\n\n# pure-text conversation (纯文本对话)\nquestion = 'Hello, who are you?'\nresponse, history = model.chat(tokenizer, None, question, generation_config, history=None, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\nquestion = 'Can you tell me a story?'\nresponse, history = model.chat(tokenizer, None, question, generation_config, history=history, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\n# single-image single-round conversation (单图单轮对话)\nquestion = '\u003cimage\u003e\\nPlease describe the image shortly.'\nresponse = model.chat(tokenizer, pixel_values, question, generation_config)\nprint(f'User: {question}\\nAssistant: {response}')\n\n# single-image multi-round conversation (单图多轮对话)\nquestion = '\u003cimage\u003e\\nPlease describe the image in detail.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\nquestion = 'Please write a poem according to the image.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\n# multi-image multi-round conversation, combined images (多图多轮对话，拼接图像)\npixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()\npixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()\npixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)\n\nquestion = '\u003cimage\u003e\\nDescribe the two images in detail.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config,\n                               history=None, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\nquestion = 'What are the similarities and differences between these two images.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config,\n                               history=history, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\n# multi-image multi-round conversation, separate images (多图多轮对话，独立图像)\npixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()\npixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()\npixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)\nnum_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]\n\nquestion = 'Image-1: \u003cimage\u003e\\nImage-2: \u003cimage\u003e\\nDescribe the two images in detail.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config,\n                               num_patches_list=num_patches_list,\n                               history=None, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\nquestion = 'What are the similarities and differences between these two images.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config,\n                               num_patches_list=num_patches_list,\n                               history=history, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\n# batch inference, single image per sample (单图批处理)\npixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()\npixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()\nnum_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]\npixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)\n\nquestions = ['\u003cimage\u003e\\nDescribe the image in detail.'] * len(num_patches_list)\nresponses = model.batch_chat(tokenizer, pixel_values,\n                             num_patches_list=num_patches_list,\n                             questions=questions,\n                             generation_config=generation_config)\nfor question, response in zip(questions, responses):\n    print(f'User: {question}\\nAssistant: {response}')\n\n# video multi-round conversation (视频多轮对话)\ndef get_index(bound, fps, max_frame, first_idx=0, num_segments=32):\n    if bound:\n        start, end = bound[0], bound[1]\n    else:\n        start, end = -100000, 100000\n    start_idx = max(first_idx, round(start * fps))\n    end_idx = min(round(end * fps), max_frame)\n    seg_size = float(end_idx - start_idx) / num_segments\n    frame_indices = np.array([\n        int(start_idx + (seg_size / 2) + np.round(seg_size * idx))\n        for idx in range(num_segments)\n    ])\n    return frame_indices\n\ndef load_video(video_path, bound=None, input_size=448, max_num=1, num_segments=32):\n    vr = VideoReader(video_path, ctx=cpu(0), num_threads=1)\n    max_frame = len(vr) - 1\n    fps = float(vr.get_avg_fps())\n\n    pixel_values_list, num_patches_list = [], []\n    transform = build_transform(input_size=input_size)\n    frame_indices = get_index(bound, fps, max_frame, first_idx=0, num_segments=num_segments)\n    for frame_index in frame_indices:\n        img = Image.fromarray(vr[frame_index].asnumpy()).convert('RGB')\n        img = dynamic_preprocess(img, image_size=input_size, use_thumbnail=True, max_num=max_num)\n        pixel_values = [transform(tile) for tile in img]\n        pixel_values = torch.stack(pixel_values)\n        num_patches_list.append(pixel_values.shape[0])\n        pixel_values_list.append(pixel_values)\n    pixel_values = torch.cat(pixel_values_list)\n    return pixel_values, num_patches_list\n\nvideo_path = './examples/red-panda.mp4'\npixel_values, num_patches_list = load_video(video_path, num_segments=8, max_num=1)\npixel_values = pixel_values.to(torch.bfloat16).cuda()\nvideo_prefix = ''.join([f'Frame{i+1}: \u003cimage\u003e\\n' for i in range(len(num_patches_list))])\nquestion = video_prefix + 'What is the red panda doing?'\n# Frame1: \u003cimage\u003e\\nFrame2: \u003cimage\u003e\\n...\\nFrame8: \u003cimage\u003e\\n{question}\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config,\n                               num_patches_list=num_patches_list, history=None, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n\nquestion = 'Describe this video in detail.'\nresponse, history = model.chat(tokenizer, pixel_values, question, generation_config,\n                               num_patches_list=num_patches_list, history=history, return_history=True)\nprint(f'User: {question}\\nAssistant: {response}')\n```\n\n#### Streaming Output\n\nBesides this method, you can also use the following code to get streamed output.\n\n```python\nfrom transformers import TextIteratorStreamer\nfrom threading import Thread\n\n# Initialize the streamer\nstreamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=10)\n# Define the generation configuration\ngeneration_config = dict(max_new_tokens=1024, do_sample=False, streamer=streamer)\n# Start the model chat in a separate thread\nthread = Thread(target=model.chat, kwargs=dict(\n    tokenizer=tokenizer, pixel_values=pixel_values, question=question,\n    history=None, return_history=False, generation_config=generation_config,\n))\nthread.start()\n\n# Initialize an empty string to store the generated text\ngenerated_text = ''\n# Loop through the streamer to get the new text as it is generated\nfor new_text in streamer:\n    if new_text == model.conv_template.sep:\n        break\n    generated_text += new_text\n    print(new_text, end='', flush=True)  # Print each new chunk of generated text on the same line\n```\n\n## Finetune\n\nMany repositories now support fine-tuning of the InternVL series models, including [InternVL](https://github.com/OpenGVLab/InternVL), [SWIFT](https://github.com/modelscope/ms-swift), [XTuner](https://github.com/InternLM/xtuner), and others. Please refer to their documentation for more details on fine-tuning.\n\n## Deployment\n\n### LMDeploy\n\nLMDeploy is a toolkit for compressing, deploying, and serving LLMs \u0026 VLMs.\n\n```sh\npip install lmdeploy\u003e=0.9.1\n```\n\nLMDeploy abstracts the complex inference process of multi-modal Vision-Language Models (VLM) into an easy-to-use pipeline, similar to the Large Language Model (LLM) inference pipeline.\n\n#### A 'Hello, world' Example\n\n```python\nfrom lmdeploy import pipeline, PytorchEngineConfig\nfrom lmdeploy.vl import load_image\n\nimage = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg')\n\n# Please set tp=2 for the 38B version and tp=8 for the 241B-A28B version.\nmodel = 'OpenGVLab/InternVL3_5-8B'\npipe = pipeline(model, backend_config=PytorchEngineConfig(session_len=32768, tp=1))\n\nresponse = pipe(('describe this image', image))\nprint(response.text)\n```\n\n#### Multi-images Inference\n\nWhen dealing with multiple images, you can put them all in one list. Keep in mind that multiple images will lead to a higher number of input tokens, and as a result, the size of the context window typically needs to be increased.\n\n```python\nfrom lmdeploy import pipeline, PytorchEngineConfig\nfrom lmdeploy.vl import load_image\nfrom lmdeploy.vl.constants import IMAGE_TOKEN\n\n# Please set tp=2 for the 38B version and tp=8 for the 241B-A28B version.\nmodel = 'OpenGVLab/InternVL3_5-8B'\npipe = pipeline(model, backend_config=PytorchEngineConfig(session_len=32768, tp=1))\n\nimage_urls=[\n    'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg',\n    'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg'\n]\n\nimages = [load_image(img_url) for img_url in image_urls]\n# Numbering images improves multi-image conversations\nresponse = pipe((f'Image-1: {IMAGE_TOKEN}\\nImage-2: {IMAGE_TOKEN}\\ndescribe these two images', images))\nprint(response.text)\n```\n\n#### Batch Prompts Inference\n\nConducting inference with batch prompts is quite straightforward; just place them within a list structure:\n\n```python\nfrom lmdeploy import pipeline, PytorchEngineConfig\nfrom lmdeploy.vl import load_image\n\n# Please set tp=2 for the 38B version and tp=8 for the 241B-A28B version.\nmodel = 'OpenGVLab/InternVL3_5-8B'\npipe = pipeline(model, backend_config=PytorchEngineConfig(session_len=32768, tp=1))\n\nimage_urls=[\n    \"https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg\",\n    \"https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg\"\n]\nprompts = [('describe this image', load_image(img_url)) for img_url in image_urls]\nresponse = pipe(prompts)\nprint(response)\n```\n\n#### Multi-turn Conversation\n\nThere are two ways to do the multi-turn conversations with the pipeline. One is to construct messages according to the format of OpenAI and use above introduced method, the other is to use the `pipeline.chat` interface.\n\n```python\nfrom lmdeploy import pipeline, PytorchEngineConfig, GenerationConfig\nfrom lmdeploy.vl import load_image\n\n# Please set tp=2 for the 38B version and tp=8 for the 241B-A28B version.\nmodel = 'OpenGVLab/InternVL3_5-8B'\npipe = pipeline(model, backend_config=PytorchEngineConfig(session_len=32768, tp=1))\n\nimage = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg')\ngen_config = GenerationConfig(top_k=50, top_p=0.95, temperature=0.6, max_new_tokens=8192)\nsess = pipe.chat(('describe this image', image), gen_config=gen_config)\nprint(sess.response.text)\nsess = pipe.chat('What is the woman doing?', session=sess, gen_config=gen_config)\nprint(sess.response.text)\n```\n\n#### Service\n\nLMDeploy's `api_server` enables models to be easily packed into services with a single command. The provided RESTful APIs are compatible with OpenAI's interfaces. Below are an example of service startup:\n\n```shell\nlmdeploy serve api_server OpenGVLab/InternVL3_5-8B --server-port 23333 --tp 1 --backend pytorch\n```\n\nTo use the OpenAI-style interface, you need to install OpenAI:\n\n```shell\npip install openai\n```\n\nThen, use the code below to make the API call:\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(api_key='YOUR_API_KEY', base_url='http://0.0.0.0:23333/v1')\nmodel_name = client.models.list().data[0].id\nresponse = client.chat.completions.create(\n    model=model_name,\n    messages=[{\n        'role':\n        'user',\n        'content': [{\n            'type': 'text',\n            'text': 'describe this image',\n        }, {\n            'type': 'image_url',\n            'image_url': {\n                'url':\n                'https://modelscope.oss-cn-beijing.aliyuncs.com/resource/tiger.jpeg',\n            },\n        }],\n    }],\n    temperature=0.8,\n    top_p=0.8)\nprint(response)\n```\n\n## License\n\nThis project is released under the apache-2.0 License. This project uses the pre-trained Qwen3 as a component, which is licensed under the apache-2.0 License.\n\n## Citation\n\nIf you find this project useful in your research, please consider citing:\n\n```BibTeX\n@article{wang2025internvl3_5,\n  title={InternVL3.5: Advancing Open-Source Multimodal Models in Versatility, Reasoning, and Efficiency},\n  author={Wang, Weiyun and Gao, Zhangwei and Gu, Lixin and Pu, Hengjun and Cui, Long and Wei, Xingguang and Liu, Zhaoyang and Jing, Linglin and Ye, Shenglong and Shao, Jie and others},\n  journal={arXiv preprint arXiv:2508.18265},\n  year={2025}\n}\n```\n\n","ReadMeTips":null,"RelatedArxivId":["2508.18265"],"RelatedPaper":[181659],"Revision":"master","Stars":24,"StorageSize":481433952463,"Studios":[],"SubVisionFoundation":"","SupportApiInference":false,"SupportDashDeployment":0,"SupportDashInference":0,"SupportDashTraining":0,"SupportDeployment":0,"SupportExperience":1,"SupportFinetuning":0,"SupportFlexTrain":0,"SupportInference":"txt2txt","SupportPaiModelGallery":["deploy"],"SupportPaiSdk":0,"SupportPivotEval":true,"SwingDeployInfo":null,"Tags":["internvl","custom_code"],"Tasks":[{"ChineseName":"视觉多模态理解","Description":"","DomainName":"multi-modal","Id":295,"IsExhibition":true,"IsHot":0,"IsLeaf":true,"IsLoginRequired":true,"IsRetrieval":true,"Level":1,"Name":"image-text-to-text","ParentId":-1,"ParentTask":null,"Sorting":0,"SupportWidgets":false,"TypicalModel":"","WidgetConfig":"{}","WidgetValidator":""}],"Tools":[],"TriggerWords":null,"Visibility":5,"VisionFoundation":"","_":null,"widgets":[{"enable":true,"enabled":false,"examples":[{"inputs":[{"data":"你好","name":"text"}],"name":"","parameters":null,"title":""}],"inferencespec":null,"inputs":null,"parameters":null,"task":"image-text-to-text","template":{"general":true}}]},"Message":"success","RequestId":"4e1254a4-8c62-41a0-8466-1391b1eae170","Success":true}