Chinese-LLaMA-Alpaca icon indicating copy to clipboard operation
Chinese-LLaMA-Alpaca copied to clipboard

后续会规划做python语言的API调用方式吗?

Open garvinzhang opened this issue 1 year ago • 3 comments

目前好像只能通过在控制台终端执行 ./main -m zh-models/7B/ggml-model-q4_0.bin --color -f prompts/alpaca.txt -ins -c 2048 --temp 0.2 -n 256 --repeat_penalty 1.3进入会话模式。

如果我想用python搭建一个服务,如何用python语言调用输入输出的接口模型呢?

garvinzhang avatar May 04 '23 07:05 garvinzhang

建议你参考其他llama API化的项目(github自行查找)。 我们的模型合并转换之后,原则上与原版llama没什么区别了(除了词表大小不一样)。

ymcui avatar May 04 '23 08:05 ymcui

兄,你用的是 7b plus 吗?能不能..?

honglvagan avatar May 05 '23 11:05 honglvagan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.

github-actions[bot] avatar May 13 '23 00:05 github-actions[bot]

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.

github-actions[bot] avatar May 16 '23 22:05 github-actions[bot]