CogVLM icon indicating copy to clipboard operation
CogVLM copied to clipboard

我想用同样的promt,在每次都清除上下文的情况下得到3种答案,为什么结果都是一样的

Open tygogogo opened this issue 9 months ago • 2 comments

            这是调用的代码
            for i in range(3):
                while True:
                    print(query)
                    response, history, cache_image = chat(
                                image_path,
                                model,
                                text_processor_infer,
                                image_processor,
                                query,
                                history=history,
                                cross_img_processor=cross_image_processor,
                                image=cache_image,
                                max_length=args.max_length,
                                top_p=args.top_p,
                                temperature=args.temperature,
                                top_k=args.top_k,
                                invalid_slices=text_processor_infer.invalid_slices,
                                args=args
                            )
                    print(response)
                    history = None
                    break

这三次每次的结果都是一样的,请问是为什么

tygogogo avatar May 09 '24 08:05 tygogogo