From 23a09c449945adb756c4a9aa11a328b627082d34 Mon Sep 17 00:00:00 2001 From: Sophia-0224 <2920904163@qq.com> Date: Wed, 4 Jun 2025 21:18:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=94=81=E5=AE=9A=20gradio=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=90=8C=E6=97=B6=E6=9B=B4=E6=96=B0=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=8A=A0=E8=BD=BD=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb b/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb index 266418a..0bf7444 100644 --- a/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb +++ b/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb @@ -302,7 +302,8 @@ } ], "source": [ - "!pip install gradio mdtex2html -i https://pypi.tuna.tsinghua.edu.cn/simple\n", + "!pip install mdtex2html -i https://pypi.tuna.tsinghua.edu.cn/simple\n", + "!pip install gradio==3.50.2 -i https://pypi.tuna.tsinghua.edu.cn/simple\n", "!pip install ipywidgets -i https://pypi.tuna.tsinghua.edu.cn/simple" ] }, @@ -611,9 +612,9 @@ "# Ascend平台请取消以下注释,使用动态图模式\n", "mindspore.set_context(mode=mindspore.context.PYNATIVE_MODE,device_target='Ascend')\n", "\n", - "model = AutoModelForSeq2SeqLM.from_pretrained('MindSpore-Lab/ChatGLM-6B', mirror=\"modelers\").half()\n", + "model = AutoModelForSeq2SeqLM.from_pretrained('ZhipuAI/ChatGLM-6B', mirror=\"modelscope\").half()\n", "model.set_train(False)\n", - "tokenizer = AutoTokenizer.from_pretrained('MindSpore-Lab/ChatGLM-6B', mirror=\"modelers\")" + "tokenizer = AutoTokenizer.from_pretrained('ZhipuAI/ChatGLM-6B', mirror=\"modelscope\")" ] }, { From 92c67a9e7811268f398f3e07396acc7f4a7af9df Mon Sep 17 00:00:00 2001 From: Sophia-0224 <2920904163@qq.com> Date: Mon, 9 Jun 2025 22:26:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=94=81=E5=AE=9A=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb b/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb index 0bf7444..74029d5 100644 --- a/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb +++ b/Season2.step_into_llm/01.ChatGLM/mindnlp_chatglm-6b.ipynb @@ -126,8 +126,8 @@ "outputs": [], "source": [ "%%capture captured_output\n", - "pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.4.10/MindSpore/unified/aarch64/mindspore-2.4.10-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple\n", - "!pip install mindnlp" + "!pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.6.0/MindSpore/unified/aarch64/mindspore-2.6.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple\n", + "!pip install mindnlp==0.4.1" ] }, {