diff --git a/README.md b/README.md index de88d8dd..6cda8e67 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ Compared to ChatGLM's [P-Tuning](https://github.com/THUDM/ChatGLM2-6B/tree/main/ ## Supported Models | Model | Model size | Template | -| ----------------------------------------------------------------- | -------------------------------- | --------- | +| ----------------------------------------------------------------- |----------------------------------| --------- | | [Baichuan 2](https://huggingface.co/baichuan-inc) | 7B/13B | baichuan2 | | [BLOOM/BLOOMZ](https://huggingface.co/bigscience) | 560M/1.1B/1.7B/3B/7.1B/176B | - | | [ChatGLM3](https://huggingface.co/THUDM) | 6B | chatglm3 | @@ -177,8 +177,8 @@ Compared to ChatGLM's [P-Tuning](https://github.com/THUDM/ChatGLM2-6B/tree/main/ | [Llama 2](https://huggingface.co/meta-llama) | 7B/13B/70B | llama2 | | [Llama 3/Llama 3.1/Llama3.2](https://huggingface.co/meta-llama) | 1B/3B/8B/70B | llama3 | | [LLaVA-1.5](https://huggingface.co/llava-hf) | 7B/13B | llava | -| [LLaVA-NeXT](https://huggingface.co/llava-hf) | 7B/13B | llava_next | -| [LLaVA-NeXT-Video](https://huggingface.co/llava-hf) | 7B/13B | llava_next_video | +| [LLaVA-NeXT](https://huggingface.co/llava-hf) | 7B/13B/34B | llava_next | +| [LLaVA-NeXT-Video](https://huggingface.co/llava-hf) | 7B/13B/34B | llava_next_video | | [MiniCPM](https://huggingface.co/openbmb) | 1B/2B/4B | cpm/cpm3 | | [Mistral/Mixtral](https://huggingface.co/mistralai) | 7B/8x7B/8x22B | mistral | | [OLMo](https://huggingface.co/allenai) | 1B/7B | - | diff --git a/src/llamafactory/model/model_utils/visual.py b/src/llamafactory/model/model_utils/visual.py index e5ee6224..1f6eb47f 100644 --- a/src/llamafactory/model/model_utils/visual.py +++ b/src/llamafactory/model/model_utils/visual.py @@ -165,7 +165,7 @@ def get_patch_size(config: "PretrainedConfig") -> int: r""" Computes the patch size of the vit. """ - patch_size = getattr(config.vision_config, "patch_size", 14) + patch_size = getattr(config.vision_config, "patch_size", -1) return patch_size