微调
2 个节点
本页内容 2
微调语言模型
函数Fine-tunes a LoRA adapter for a language model on a dataset file and saves it to a folder.
签名
微调语言模型 -> (适配器: 文本, 损失: 数字数组)
模型: 文本
数据集: 文本
输出文件夹: 文本
设置: Fine Tune Settingsstring FineTuneLanguageModel(
string model,
string dataset,
string outputFolder,
FineTuneSettings settings,
out double[] losses)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | 文本 | — | The base model: a repository id or a folder. |
| 数据集 | 文本 | — | A JSON Lines, JSON or CSV file of examples. |
| 输出文件夹 | 文本 | — | Where the adapter is saved (adapter_config.json and adapter_model.safetensors). |
| 设置 | Fine Tune Settings | — | How it trains; empty for the defaults. |
返回
| 适配器 | 文本 |
| 损失 | 数字数组 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 微调
- 所属包
- 机器学习
写入训练样本
函数Writes examples to a JSON Lines file in the prompt-and-response shape Fine-Tune Language Model reads: one line per pair.
签名
写入训练样本 -> 文本
路径: 文本
提示词: 文本数组
回复: 文本数组string WriteTrainingExamples(
string path,
string[] prompts,
string[] responses)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 路径 | 文本 | — | The file to write. |
| 提示词 | 文本数组 | — | What the user says in each example. |
| 回复 | 文本数组 | — | What the model should answer, in the same order. |
返回
| 路径 | 文本 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 微调
- 所属包
- 机器学习