mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 19:02:17 +08:00
update readme.md
This commit is contained in:
parent
2cee3308ba
commit
667e66379b
BIN
MemoAI/img/img.png
Normal file
BIN
MemoAI/img/img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
MemoAI/img/img2.png
Normal file
BIN
MemoAI/img/img2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -330,6 +330,8 @@ token 不参与 `loss` 计算。
|
|||||||
|
|
||||||
配置文件
|
配置文件
|
||||||
|
|
||||||
|
config/lora.yaml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
data_config:
|
data_config:
|
||||||
train_file: train.json
|
train_file: train.json
|
||||||
@ -389,7 +391,7 @@ python finetune_hf.py data/ E:\\Project\\Python\\Langchain-Chatchat\\chatglm3-
|
|||||||
|
|
||||||
## 部署
|
## 部署
|
||||||
|
|
||||||
api_server.py修改微调保存路径
|
在api_server.py修改微调保存路径
|
||||||
```python
|
```python
|
||||||
model, tokenizer = load_model_and_tokenizer(
|
model, tokenizer = load_model_and_tokenizer(
|
||||||
r'E:\Project\Python\ChatGLM3\finetune_demo\output03-24\checkpoint-224000'
|
r'E:\Project\Python\ChatGLM3\finetune_demo\output03-24\checkpoint-224000'
|
||||||
@ -438,3 +440,11 @@ def simple_chat(use_stream=True):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
simple_chat(use_stream=True)
|
simple_chat(use_stream=True)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 体验地址
|
||||||
|
|
||||||
|
[https://chat/memotrace.cn/](https://chat/memotrace.cn/)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
Loading…
Reference in New Issue
Block a user