From 1eeb2b1544297f111cebee7cd61cf9dbbf230b64 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Tue, 28 May 2024 08:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0model=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ README.md | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.gitignore b/.gitignore index 26dc15e..dec233c 100644 --- a/.gitignore +++ b/.gitignore @@ -140,3 +140,6 @@ cython_debug/ ### IntelliJ IDEA ### .idea + +### Model +config/model diff --git a/README.md b/README.md index 051b887..9e0b1cb 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,26 @@ 1. 使用sqlalchemy作为ORM框架,需要新增实体类时运行项目根目录下的auto_generator.py 2. 项目运行中奔溃时有发送邮件提醒功能,请在config/email.py中的收件人处添加自己的邮箱 +## 模型更新 + +1. 模型目录文件结构(备注:static文件夹和.cache_info会在第一次调用模型时自动下载或生成) + + ```markdown + my_model/ + │ + ├─ static/ + │ ├─ inference.pdiparams + │ ├─ inference.pdiparams.info + │ └─ inference.pdmodel + │ + ├─ .cache_info + ├─ config.json + ├─ model_state.pdparams + ├─ sentencepiece.bpe.model + ├─ special_tokens_map.json + ├─ tokenizer_config.json + └─ vocab.txt + ``` + + +