0704
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# LM Studio 本地润色脚本
|
||||
|
||||
用途:用本机 LM Studio 的 OpenAI 兼容接口润色章节。当前提示词偏“大胆润色”,允许模型较大幅度调整句子、段落和对话,输出作为二次人工修订底稿。
|
||||
|
||||
默认接口:
|
||||
|
||||
- 地址:`http://localhost:1234/v1`
|
||||
- 模型:`gemma4-12b-qat-uncensored-hauhaucs-balanced`
|
||||
|
||||
## 查看本机模型
|
||||
|
||||
```powershell
|
||||
python 脚本/lmstudio_polish.py --list-models
|
||||
```
|
||||
|
||||
## 润色单章
|
||||
|
||||
```powershell
|
||||
python 脚本/lmstudio_polish.py `
|
||||
--input "正文/1.1.1-坠毁后的第一夜/第01章-我不是博士.md" `
|
||||
--out "中间文件/润色输出/第01章-我不是博士.md"
|
||||
```
|
||||
|
||||
## 批量润色一个文件夹
|
||||
|
||||
```powershell
|
||||
python 脚本/lmstudio_polish.py `
|
||||
--input "正文/1.1.1-坠毁后的第一夜" `
|
||||
--out "中间文件/润色输出/1.1.1-坠毁后的第一夜"
|
||||
```
|
||||
|
||||
## 常用参数
|
||||
|
||||
- `--temperature 0.25`:相对保守。
|
||||
- `--temperature 0.5`:更敢改句子。
|
||||
- `--temperature 0.8`:当前推荐,比较敢改但不至于太漂。
|
||||
- `--temperature 1.0`:更大胆,适合出二修素材后再人工筛。
|
||||
- `--top-p 0.95`:可选,采样范围;不传则使用 LM Studio / 模型默认值。
|
||||
- `--presence-penalty 0.0`、`--frequency-penalty 0.0`、`--repeat-penalty 1.0`:可选,按模型支持情况传入。
|
||||
- `--model 模型名`:切换 LM Studio 已加载模型。
|
||||
- `--timeout 1800`:默认 1800 秒,长章可继续加大。
|
||||
- `--dry-run`:只看输入输出路径,不调用模型。
|
||||
|
||||
默认提示词在 `脚本/lmstudio-润色-system.md`,可以按本书风格继续改。
|
||||
|
||||
建议把输出当作二修候选稿:先和正文做对比,再迁移更顺、更舒服的局部,不建议直接整章覆盖。
|
||||
Reference in New Issue
Block a user