[Fix] Reduce memory usage for loading llava model & Remove EntryClassRemapping (#1308)

This commit is contained in:
Lianmin Zheng authored and GitHub committed 2024-09-02 21:44:45 -07:00
1 parent a5a134f39f
commit f64eae3a29
17 files changed
+105 -158

No files matched your search

@@ -2,13 +2,8 @@
Usage: python3 local_example_llava_next.py
"""
from PIL import ImageFile
import sglang as sgl
from sglang.lang.chat_template import get_chat_template
from sglang.srt.utils import load_image
ImageFile.LOAD_TRUNCATED_IMAGES = True # Allow loading of truncated images
@sgl.function