ymcui / Chinese-LLaMA-Alpaca-2

中文LLaMA-2 & Alpaca-2大模型二期项目 + 64K超长上下文模型 (Chinese LLaMA-2 & Alpaca-2 LLMs with 64K long context models)
Apache License 2.0
7.04k stars 581 forks source link

hf推理 #410

Closed tkone2018 closed 9 months ago

tkone2018 commented 9 months ago

提交前必须检查以下项目

问题类型

模型推理

基础模型

Chinese-LLaMA-2 (7B/13B)

操作系统

Linux

详细描述问题

# 请在此处粘贴运行代码(请粘贴在本代码块里)

我是用inference_hf.py推理的时候,回答问题的时候回家input的问题列出来 image

依赖情况(代码类问题务必提供)

# 请在此处粘贴依赖情况(请粘贴在本代码块里)

image

运行日志或截图

# 请在此处粘贴运行日志(请粘贴在本代码块里)

image

iMountTai commented 9 months ago

没有复现你的问题 image

tkone2018 commented 9 months ago

好吧,我也不知道哪里有啥问题

tkone2018 commented 9 months ago

我用的 Chinese-Alpaca-2-13B这个模型推理没问题吧


tkone2018 commented 9 months ago

@iMountTai 解决了,是需要将with_prompt参数设置为True,我建议如果是alpaca,改为默认为True

github-actions[bot] commented 9 months ago

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.