From cc097174ccaf66f9970860d0b70459b824ec55c7 Mon Sep 17 00:00:00 2001 From: BUAADreamer <1428195643@qq.com> Date: Wed, 16 Oct 2024 15:55:30 +0800 Subject: [PATCH 1/5] tiny fix [skip ci] Former-commit-id: 937f69190e529fe7bf0fdf58d7bbb39017854c5e --- tests/data/test_mm_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/test_mm_plugin.py b/tests/data/test_mm_plugin.py index b342e658..cc9bf2a1 100644 --- a/tests/data/test_mm_plugin.py +++ b/tests/data/test_mm_plugin.py @@ -13,7 +13,7 @@ # limitations under the License. import os -from typing import TYPE_CHECKING, Any, Dict, List, Sequence, Tuple, Union +from typing import TYPE_CHECKING, Any, Dict, List, Sequence, Tuple import pytest import torch From bd85e370be1b31d4b989ae3671b531992662dd4e Mon Sep 17 00:00:00 2001 From: hoshi-hiyouga Date: Thu, 17 Oct 2024 19:46:36 +0800 Subject: [PATCH 2/5] Update README.md Former-commit-id: f62b0682e476dd62a4a3ac5620f8fc244e8bf150 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cbb4df12..7ec1c87b 100644 --- a/README.md +++ b/README.md @@ -740,4 +740,4 @@ This repo benefits from [PEFT](https://github.com/huggingface/peft), [TRL](https ## Star History -![Star History Chart](https://api.star-history.com/svg?repos=hiyouga/LLaMA-Factory&type=Date) \ No newline at end of file +![Star History Chart](https://api.star-history.com/svg?repos=hiyouga/LLaMA-Factory&type=Date) From 66819fd3eef646fe856008c5f3661216a4c8397e Mon Sep 17 00:00:00 2001 From: hoshi-hiyouga Date: Thu, 17 Oct 2024 19:47:33 +0800 Subject: [PATCH 3/5] Update README_zh.md Former-commit-id: a829d4a28fae77b08a6ea451479c71578b3b552f --- README_zh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_zh.md b/README_zh.md index 0d9f8fdf..a578afcb 100644 --- a/README_zh.md +++ b/README_zh.md @@ -741,4 +741,4 @@ run_name: test_run # 可选 ## Star History -![Star History Chart](https://api.star-history.com/svg?repos=hiyouga/LLaMA-Factory&type=Date) \ No newline at end of file +![Star History Chart](https://api.star-history.com/svg?repos=hiyouga/LLaMA-Factory&type=Date) From c6e131397764786626c1cc8557e330182f41afe0 Mon Sep 17 00:00:00 2001 From: hoshi-hiyouga Date: Thu, 17 Oct 2024 19:48:12 +0800 Subject: [PATCH 4/5] Update loader.py Former-commit-id: 3b229a27a108b840e6bed3c8684737f51ce9faf4 --- src/llamafactory/model/loader.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/llamafactory/model/loader.py b/src/llamafactory/model/loader.py index 957d5e4e..7613c092 100644 --- a/src/llamafactory/model/loader.py +++ b/src/llamafactory/model/loader.py @@ -116,7 +116,6 @@ def load_config(model_args: "ModelArguments") -> "PretrainedConfig": Loads model config. """ init_kwargs = _get_init_kwargs(model_args) - return AutoConfig.from_pretrained(model_args.model_name_or_path, **init_kwargs) From 4807d8a4efda3b6f15badad50bb2a4143daaa2bd Mon Sep 17 00:00:00 2001 From: hoshi-hiyouga Date: Thu, 17 Oct 2024 19:48:51 +0800 Subject: [PATCH 5/5] Update misc.py Former-commit-id: fe9a927f1ea8e44e0429b437e5feecf13e34e9aa --- src/llamafactory/extras/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llamafactory/extras/misc.py b/src/llamafactory/extras/misc.py index 47f2ebbe..74d3f595 100644 --- a/src/llamafactory/extras/misc.py +++ b/src/llamafactory/extras/misc.py @@ -79,7 +79,7 @@ def check_dependencies() -> None: if os.environ.get("DISABLE_VERSION_CHECK", "0").lower() in ["true", "1"]: logger.warning("Version checking has been disabled, may lead to unexpected behaviors.") else: - require_version("transformers>=4.41.2", "To fix: pip install transformers>=4.41.2,<=4.45.2") + require_version("transformers>=4.41.2,<=4.46.0", "To fix: pip install transformers>=4.41.2,<=4.46.0") require_version("datasets>=2.16.0,<=2.21.0", "To fix: pip install datasets>=2.16.0,<=2.21.0") require_version("accelerate>=0.30.1,<=0.34.2", "To fix: pip install accelerate>=0.30.1,<=0.34.2") require_version("peft>=0.11.1,<=0.12.0", "To fix: pip install peft>=0.11.1,<=0.12.0")