|
Download InternVL/InternLM-XComposer/example_code/4bit/README.md from MallikaWy/project-backup: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/datasets/MallikaWy/project-backup/resolve/main/InternVL/InternLM-XComposer/example_code/4bit/README.md
- Command line
-
hf download hf://datasets/MallikaWy/project-backup/InternVL/InternLM-XComposer/example_code/4bit/README.md
-
curl -L -o README.md https://huggingface.co/datasets/MallikaWy/project-backup/resolve/main/InternVL/InternLM-XComposer/example_code/4bit/README.md
591 Bytes
Run InternLM-XComposer-2d5-4bit with LMDeploy
Thanks to the LMDeploy team for providing AWQ quantization support (https://github.com/InternLM/lmdeploy/blob/main/docs/en/multi_modal/xcomposer2d5.md#quantization). We compare the memory usage between the FP16 model and the 4-bit model, setting cache_max_entry_count=0.01 to reduce GPU memory usage and better observe memory savings. The program was tested on PyTorch 2.2.2+cu118.
| GPU Memory (GB) | |
|---|---|
| IXC2.5-lmdeploy | 31.81 |
| IXC2.5-lmdeploy-4bit | 23.21 |