detailed_updates.md
May 26, 2024 ยท View on GitHub
:white_check_mark: Updates
-
May. 26th, 2024: Update: we release the updated weights of VMambav2, together with the new arxiv paper. -
May. 7th, 2024: Update: Important! usingtorch.backends.cudnn.enabled=Truein downstream tasks may be quite slow. If you found vmamba quite slow in your machine, disable it in vmamba.py, else, ignore this. -
April. 10th, 2024: Update: we have released arXiv 2401.10166v2, which contains lots of updates we made related to VMambav2! -
March. 20th, 2024: Update: we have released theconfigs/logs/checkpointsforclassification/detection/segmentationof VMambav2. We'are still working on VMambav3! -
March. 16th, 2024: Improvement: we implemented models with channel_first data layout, which GREATLY raises thethroughputof the model on A100 (On V100, due to the slow implementation of F.conv2d compared to F.linear, it would not speed up.), Try usingnorm_layer="ln2d"(when inferencing or training) rather thannorm_layer="ln"to unlock this feature with almost no performance cost! -
March. 8th, 2024: Update + Improvement: we update the performance ofVMamba-T,Vmamba-S,VMamba-Bwith nightly build, checkpoints and logs are coming soon. (Note that these models are trained withoutCrossScanTritonorforwardtype=v4, you can modify those configs yourself to raise the speed with almost no cost!) -
March. 8th, 2024: Improvement: we implementedCrossScanandCrossMergeintriton, which speed the training up again.CrossScanandCrossMergeimplemented in triton is ~2x faster than implemented in pytorch. Meanwhile, usev4rather thanv3orv2in forwardtype also raise the speed GREATLY!. -
Feb. 26th, 2024: Improvement: we now support flexible output ofselective scan. That means whatever type the input is, the output can always be float32. The feature is useful as when training with float16, the loss often get nan due to the overflow over float16. In the meantime, training with float32 costs more time. Input with float16 and output with float32 can be fast, but in the meantime, the loss is less likely to be NaN. TrySelectiveScanOflexwith float16 input and float32 output to enjoy that feature! -
Feb. 22th, 2024: Pre-Release: we set a pre-release to share nightly-build checkpoints in classificaion. Feel free to enjoy those new features with faster code and higher performance! -
Feb. 18th, 2024: Release: all the checkpoints and logs ofVMamba(VSSM version 0) in classification have been released. These checkpoints correspond to the experiments done before date #20240119, if there is any mismatch to the latest code in main, please let me know, and I'll fix that. This is related to issue#1 and issue#37. -
Feb. 16th, 2024: Fix bug + Improvement:SS2D.forward_corev1is deprecated. Fixed some bugs related to issue#30 (in test_selective scan.py, we now compareourswithmamba_ssmrather thanselective_scan_ref), issue#32, issue#31.backward nrowhas been added and tested in selective_scan. -
Feb. 4th, 2024: Fix bug + Improvement: Do not useSS2D.forward_corev1withfloat32=Falsefor training (testing is ok), as it's unstable training in float16 for selective scan. We releasedSS2D.forward_corev2, which is in float32, and is faster thanSS2D.forward_corev1. -
Feb. 1st, 2024: Fix bug: we now calculate FLOPs with the algrithm @albertgu provides, which will be bigger than previous calculation (which is based on theselective_scan_reffunction, and ignores the hardware-aware algrithm). -
Jan. 31st, 2024:Add feature:selective_scannow supports an extra argumentnrowin[1, 2, 4]. If you find your device is strong and the time consumption keeps asd_staterises, try this feature to speed upnrowsx without any cost ! Note this feature is actually abug fixfor mamba. -
Jan. 28th, 2024: Add feature: we cloned main into a new branch called20240128-achieve, the main branch has experienced a great update now. The code now are much easier to use in your own project, and the training speed is faster! This new version is totally compatible with original one, and you can use previous checkpoints without any modification. But if you want to use exactly the same models as original ones, just changeforward_core = self.forward_corev1intoforward_core = self.forward_corev0inclassification/models/vmamba/vmamba.py#SS2Dor you can change into the branch20240128-archiveinstead. -
Jan. 23th, 2024: Add feature: we add an alternative for mamba_ssm and causal_conv1d. Typingpip install .inselective_scanand you can get rid of those two packages.Just turnThe training speed is expected to raise from 20min/epoch for tiny in 8x4090GPU to 17min/epoch, GPU memory cost reduces too.self.forward_core = self.forward_corev0toself.forward_core = self.forward_corev1inclassification/models/vmamba/vmamba.py#SS2D.__init__to enjoy that feature. -
Jan. 22th, 2024: We have released VMamba-T/S pre-trained weights. The ema weights should be converted before transferring to downstream tasks to match the module names using get_ckpt.py. -
Jan. 19th, 2024: The source code for classification, object detection, and semantic segmentation are provided.