From 8a9a080745bba75fe6f57384ebfb84264dc30f91 Mon Sep 17 00:00:00 2001 From: carry <2641257231@qq.com> Date: Fri, 11 Apr 2025 19:43:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(tools):=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E5=AF=BC=E5=85=A5=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 tools/model.py 文件中未使用的 get_chat_template 导入语句。这个修改提高了代码的可读性和维护性。 --- tools/model.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/model.py b/tools/model.py index f5d0240..57b6bb6 100644 --- a/tools/model.py +++ b/tools/model.py @@ -1,6 +1,4 @@ import os -from unsloth.chat_templates import get_chat_template - def formatting_prompts_func(examples,tokenizer): """格式化对话数据的函数 Args: