Skip to content

get_response.py里面的chat函数未找到 #28

Description

@DavdGao

您好,我在运行get_response.py的代码的时候,模型是qwen 2 7B instruct模型;会报错

AttributeError: 'Qwen2Model' object has no attribute 'chat'

并且根据requirements里面的transformers的版本号,我去找了transformers的源码,也是没有chat这个函数的,所以不明白这里的chat是什么逻辑,它的参数是tokenizer,message和query,这里query这个参数是什么作用?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions