Upload folder using huggingface_hub
Browse files
modeling_internvl_chat.py
CHANGED
@@ -381,7 +381,7 @@ class InternVLChatModel(PreTrainedModel):
|
|
381 |
img_context_token_id = tokenizer.convert_tokens_to_ids(IMG_CONTEXT_TOKEN)
|
382 |
self.img_context_token_id = img_context_token_id
|
383 |
|
384 |
-
from
|
385 |
|
386 |
template = get_conv_template(self.template)
|
387 |
if history is None:
|
|
|
381 |
img_context_token_id = tokenizer.convert_tokens_to_ids(IMG_CONTEXT_TOKEN)
|
382 |
self.img_context_token_id = img_context_token_id
|
383 |
|
384 |
+
from .conversation import get_conv_template
|
385 |
|
386 |
template = get_conv_template(self.template)
|
387 |
if history is None:
|