diff --git a/assets/wechat.jpg b/assets/wechat.jpg index caebd4d8bb..9543cc9e67 100644 Binary files a/assets/wechat.jpg and b/assets/wechat.jpg differ diff --git a/assets/wechat_npu.jpg b/assets/wechat_npu.jpg index e30714f714..65978f8d60 100644 Binary files a/assets/wechat_npu.jpg and b/assets/wechat_npu.jpg differ diff --git a/src/llamafactory/extras/constants.py b/src/llamafactory/extras/constants.py index c6ddd61b33..7c58e2c516 100644 --- a/src/llamafactory/extras/constants.py +++ b/src/llamafactory/extras/constants.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os from collections import OrderedDict, defaultdict from enum import Enum from typing import Dict, Optional @@ -47,7 +48,7 @@ IGNORE_INDEX = -100 -IMAGE_PLACEHOLDER = "" +IMAGE_PLACEHOLDER = os.environ.get("IMAGE_PLACEHOLDER", "") LAYERNORM_NAMES = {"norm", "ln"} @@ -95,7 +96,7 @@ SUPPORTED_CLASS_FOR_S2ATTN = {"llama"} -VIDEO_PLACEHOLDER = "