Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 964 Bytes

File metadata and controls

23 lines (17 loc) · 964 Bytes

第 7 章:根据指令进行微调

此文件夹包含可用于模型评估的实用程序代码。

 

使用 OpenAI API 评估指令响应

{
    "instruction": "What is the atomic number of helium?",
    "input": "",
    "output": "The atomic number of helium is 2.",               # <-- The target given in the test set
    "model 1 response": "\nThe atomic number of helium is 2.0.", # <-- Response by an LLM
    "model 2 response": "\nThe atomic number of helium is 3."    # <-- Response by a 2nd LLM
},

 

使用 Ollama 在本地评估指令响应