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

fix llm_runner for tinyllama #407

Merged
merged 1 commit into from
Feb 8, 2024
Merged

fix llm_runner for tinyllama #407

merged 1 commit into from
Feb 8, 2024

Conversation

jinchen62
Copy link
Contributor

No description provided.

Copy link
Contributor

@IanNod IanNod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@@ -210,13 +214,13 @@ def run_torch_llm(hf_model_name, hf_auth_token, prompt, streaming_llm=False):
hf_auth_token=hf_auth_token,
auto_tokenizer=AutoTokenizer,
)
model_builder.build_model()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@jinchen62 jinchen62 merged commit a1b22ea into nod-ai:main Feb 8, 2024
3 of 4 checks passed
@jinchen62 jinchen62 deleted the tinyllama branch February 8, 2024 01:30
while True:
user_prompt = input("User prompt: ")
prompt = append_user_prompt(prompt, user_prompt)
prompt = append_user_prompt(chat_sys_prompt, user_prompt)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually no bueno for chat because doing this you lose track of your chat history/context.

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

Successfully merging this pull request may close these issues.

3 participants