From e2ff12a07fec8e38ff01576994c5098abc706547 Mon Sep 17 00:00:00 2001 From: liu Date: Mon, 12 Aug 2024 17:06:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/ModelCaseMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/mapper/ModelCaseMapper.xml b/src/main/resources/mapper/ModelCaseMapper.xml index 3da610d..68eace6 100644 --- a/src/main/resources/mapper/ModelCaseMapper.xml +++ b/src/main/resources/mapper/ModelCaseMapper.xml @@ -77,6 +77,6 @@ left join model_index_result mir on (mi.id = mir.index_id and mir.case_id = #{caseId}) WHERE mi.data_status = '1' and mi.index_type = #{indexType} - order by mir.index_result, mi.id desc + order by CASE mir.index_result WHEN 'true' THEN 1 WHEN 'false' THEN 2 else 0 END, mi.id desc \ No newline at end of file From e71524c622d77b9b01ba2a41eaa48ee30124bdf5 Mon Sep 17 00:00:00 2001 From: liu Date: Mon, 12 Aug 2024 17:12:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/ollama/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/ollama/README.md b/docker/ollama/README.md index 41322e5..02e896e 100644 --- a/docker/ollama/README.md +++ b/docker/ollama/README.md @@ -1,6 +1,11 @@ # 文件目录说明 - /data/ollama : 本项目根目录,本项目所有目录都在这个路径下面 +# 前置条件 +- 本机安装了Docker +- 安装了Nvidia GPU驱动 +- 安装了容器工具包nvidia-container-toolkit + # 下载gguf模型: - 网址: https://hf-mirror.com/ - 搜要下载的模型,比如,想现在llama3 8b的模型,则搜索: llama3 8b gguf