Skip to content

Commit

Permalink
Remove test template
Browse files Browse the repository at this point in the history
  • Loading branch information
jncraton committed Sep 27, 2024
1 parent 337578f commit a221e9a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions languagemodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,6 @@ def load_hf_model(hf_path, revision, model_type="instruct"):

env = Environment(loader=BaseLoader())

chat_template = "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"

template = env.from_string(chat_template)

prompt_fmt = template.render(
Expand Down

0 comments on commit a221e9a

Please sign in to comment.