Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tygogogo opened this issue May 9, 2024 · 2 comments
Assignees

Comments

@tygogogo
Copy link

tygogogo commented May 9, 2024

            这是调用的代码
            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

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

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this May 10, 2024
@zRzRzRzRzRzRzR
Copy link
Collaborator

你的温度是不是0

@tygogogo
Copy link
Author

你的温度是不是0
噢噢 确实是这个问题! 谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants