数据检查 openai tools fine_tunes.prepare_data -f <LOCAL_FILE>
查看微调任务状态 openai api fine_tunes.list
查看微调结果 openai api fine_tunes.results -i <JOB_ID>
查看可用的模型 curl https://api.openai.com/v1/models -H 'Authorization: Bearer API-KEY'
提交微调
# For multiclass classification
openai api fine_tunes.create \
-t \
-v \
-m \
--compute_classification_metrics \
--classification_n_classes
# For binary classification
openai api fine_tunes.create \
-t \
-v \
-m \
--compute_classification_metrics \
--classification_n_classes 2 \
--classification_positive_class