【求助帖】将微调模型仿OpenAI兼容接口出错 #366
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#366
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?
将微调模型仿OpenAI兼容接口出错
按照《基于LLaMA-Factory的模型微调训练》课件操纵
也许是启动接口的时候,出了问题,方便对启动llama-factory 接口的时候录屏么?我这边方便判断,接口是否启动成功
这里没有看懂
这里的操作能否录个视频
如何查看显存:
在命令行输入:nvidia-smi
在哪里启动接口
在autodl的命令行里,输入命令,具体命令请参考文档,下面是一个例子:llamafactory-cli api --model_name_or_path /root/autodl-tmp/modelscope/hub/ZhipuAI/glm-4-9b-chat --template glm4 --adapter_name_or_path saves/GLM-4-9B-Chat/lora/train_2024-08-31-17-56-13 --finetuning_type lora
GIT bash 在微调时,是一直在运行中的,需要先退出运行状态,再设置一个新的隧道吗?
不需要
注意,上述命令llamafactory-cli api --model_name_or_path /root/autodl-tmp/modelscope/hub/ZhipuAI/glm-4-9b-chat --template glm4 --adapter_name_or_path saves/GLM-4-9B-Chat/lora/train_2024-08-31-17-56-13 --finetuning_type lora中,--adapter_name_or_path后,跟随的内容:saves/GLM-4-9B-Chat/lora/train_2024-08-31-17-56-13,可能和你实际需要键入的内容不同,因为你的微调文件夹也许不叫这个名字,要根据实际情况而定。下面是启动命令截图:

nextchat无回复
视频最后,发送信息以后,可以麻烦看一下jupyter里面的命令行报什么错么?看看nextchat的api密钥随便设置一个,还有就是聊天之前,模型是否选择对了。
请给出操作教程,这些都不知如何操作
如何设置nextchat的api密钥?
这一步之前的操作都是按照《基于LLaMA-Factory的模型微调训练》教程操作,结果与教程陈述一致,模型应该是选择对的
教程中是否有些操作省略掉了
可以看下面的截图,确认下模型名称:
