From 690221df2948158114f52038b70a53e7c517a091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=92=E9=85=92=E7=9A=84=E6=9D=8E=E7=99=BD?= <670939375@qq.com> Date: Sat, 16 Aug 2025 22:42:13 +0800 Subject: [PATCH] Update gitignore --- .gitignore | 5 ++++- WeiboSentiment_SmallQwen/qwen3_lora_universal.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e996b22..4c470f6 100644 --- a/.gitignore +++ b/.gitignore @@ -332,4 +332,7 @@ test_results/ # Mercurial .hg/ -.cursor/ \ No newline at end of file +.cursor/ + +# Ai操作指引文件 +OperationGuidance/ \ No newline at end of file diff --git a/WeiboSentiment_SmallQwen/qwen3_lora_universal.py b/WeiboSentiment_SmallQwen/qwen3_lora_universal.py index 235a002..cb1f4da 100644 --- a/WeiboSentiment_SmallQwen/qwen3_lora_universal.py +++ b/WeiboSentiment_SmallQwen/qwen3_lora_universal.py @@ -139,6 +139,7 @@ class Qwen3LoRAUniversal(BaseQwenModel): instruction = f"请分析以下微博文本的情感倾向,回答'正面'或'负面'。\n\n文本:{text}\n\n情感:" response = sentiment + # 组合成完整的训练文本 full_text = f"{instruction}{response}{self.tokenizer.eos_token}"