Skip to content

Commit

Permalink
fix (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjh0119 authored Apr 16, 2024
1 parent 3e848b2 commit 61785fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions swift/llm/utils/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,11 +943,10 @@ def get_generate_ids(generate_ids: Tensor,


class LLavaYiTemplate(LLavaTemplate):
llavayi_query_template = '\n<|im_start|>user\n{{QUERY}}<|im_end|>\n<|im_start|>assistant\n'

def __init__(self):
Template.__init__(self, [], [[
-200
], '\n<|im_start|>user\n{{QUERY}}<|im_end|>\n<|im_start|>assistant\n'],
Template.__init__(self, [], [[-200], self.llavayi_query_template],
None, ['<|im_end|>'])


Expand Down

0 comments on commit 61785fc

Please sign in to comment.