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

It seems that, "Assistant: " will be appended to the end of prompt twice? #29

Open
iSuneast opened this issue Jul 29, 2023 · 0 comments

Comments

@iSuneast
Copy link

https://github.com/a16z-infra/llama2-chatbot/blob/main/llama2_chatbot.py#L169C1-L170C1

output = debounce_replicate_run(st.session_state['llm'], string_dialogue + "Assistant: ", st.session_state['max_seq_len'], st.session_state['temperature'], st.session_state['top_p'], REPLICATE_API_TOKEN)

https://github.com/a16z-infra/llama2-chatbot/blob/main/utils.py#L27

output = replicate.run(llm, input={"prompt": prompt + "Assistant: ", "max_length": max_len, "temperature": temperature, "top_p": top_p, "repetition_penalty": 1}, api_token=API_TOKEN)

It seems that, "Assistant: " will be appended to the end of prompt twice?

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

1 participant