36 lines
784 B
Markdown
36 lines
784 B
Markdown
# model-labeling
|
|
|
|
对已有数据调用线上模型接口批量打标。
|
|
|
|
典型输入:
|
|
|
|
- `output/records.jsonl`
|
|
- `output/training.jsonl`
|
|
- `output/eval_planning.csv`
|
|
- `output/records.csv`
|
|
|
|
典型流程:
|
|
|
|
1. 确认输入文件路径。
|
|
2. 确认线上模型 `generate` URL。
|
|
3. 用 `batch_label_model.py` 的 `dry_run=true` 识别格式。
|
|
4. 批量请求模型,输出 `output/model_predictions.jsonl`。
|
|
|
|
执行示例:
|
|
|
|
```json
|
|
{
|
|
"script_path": "skills/model-labeling/scripts/batch_label_model.py",
|
|
"stdin": {
|
|
"input_path": "output/records.jsonl",
|
|
"model_url": "http://example/generate",
|
|
"output_path": "output/model_predictions.jsonl",
|
|
"parameters": {
|
|
"max_new_tokens": 64
|
|
}
|
|
},
|
|
"timeout_seconds": 600,
|
|
"max_output_chars": 20000
|
|
}
|
|
```
|