我想要一天分享一點「LLM從底層堆疊的技術」,並且每篇文章長度控制在三分鐘以內,讓大家不會壓力太大,但是又能夠每天成長一點。
- 微調 GPT 模型引言:AI說書 - 從0開始 - 229 | 微調 GPT 模型引言
- 微調 GPT 模型的前置步驟:AI說書 - 從0開始 - 230 | 微調 GPT 模型的前置步驟
- 微調 GPT 模型的函式庫安裝:AI說書 - 從0開始 - 231 | 微調 GPT 模型的函式庫安裝
- 微調 GPT 模型的資料集準備:AI說書 - 從0開始 - 232 | 微調 GPT 模型的資料集準備
- 微調 GPT 模型的資料集檢查:AI說書 - 從0開始 - 233 | 微調 GPT 模型的資料集檢查
- 微調 GPT 模型的資料集檢查:AI說書 - 從0開始 - 234 | 微調 GPT 模型的資料集檢查
- 微調 GPT 模型的必要檔建立:AI說書 - 從0開始 - 235 | 微調 GPT 模型的必要檔建立
- 微調 GPT 模型任務狀態查詢:AI說書 - 從0開始 - 236 | 微調 GPT 模型任務狀態查詢
- 微調 GPT 模型任務狀態查詢:AI說書 - 從0開始 - 237 | 微調 GPT 模型任務狀態查詢
- 微調 GPT 模型之推論:AI說書 - 從0開始 - 238 | 微調 GPT 模型之推論
以下開始使用程式來測試微調好的模型:
text_content = "Space and time are key factors in human reasoning. Human minds cannot think without space and time perceptions."
prompt = "Continue the following text as if you were a scientist and philosopher" + text_content
response = client.completions.create(model = "ft:babbage-002:personal::8g9QuR5t",
prompt = prompt,
max_tokens = 1000,
temperature = 0.8)
if response.choices:
first_choice = response.choices[0]
print("Model's Completion:", first_choice.text)
else:
print("No choices returned in the response")
摘錄的結果為:
