06-Function Call实战练习 #141
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#141
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
申请国内其他大模型apikey,对照官方API文档使用functioncall:#83 (comment)
step1: 在【训练管理】中创建训练任务
4机16卡训练用时:2d18h34m44s

step2: 在【模型调试】打开notebook
step3: 查看训练好的模型文件
ls -lt /userhome/llama3-8b-ft/agent-flan
step4: 将pt模型转成hf格式
xtuner convert pth_to_hf /userhome/llama3-8b-ft/agent-flan/llama3_8b_instruct_qlora_agentflan_3e.py /userhome/llama3-8b-ft/agent-flan/iter_6441.pth /userhome/llama3-8b-ft/agent-flan/iter_6441_hf
step5: lora hf格式模型合并
xtuner convert merge /dataset/Llama-3-8B-Instruct/ /userhome/llama3-8b-ft/agent-flan/iter_6441_hf /code/llama3-8b-ft/agent-flan/6441merged --device cpu
step6: 调用模型问答