Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Lmdeploy
Commits
86e70591
Unverified
Commit
86e70591
authored
Jul 14, 2023
by
lvhan028
Committed by
GitHub
Jul 14, 2023
Browse files
miss <bos> of InternLM chat template (#112)
parent
c4d061d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lmdeploy/model.py
lmdeploy/model.py
+1
-2
No files found.
lmdeploy/model.py
View file @
86e70591
...
@@ -58,8 +58,7 @@ class InternLM:
...
@@ -58,8 +58,7 @@ class InternLM:
str: the concatenated prompt
str: the concatenated prompt
"""
"""
if
sequence_start
:
if
sequence_start
:
return
f
'
{
self
.
system
}
\n
'
\
return
f
'<bos>
{
self
.
user
}
:
{
prompt
}{
self
.
eoh
}
\n
'
\
f
'
{
self
.
user
}
:
{
prompt
}{
self
.
eoh
}
\n
'
\
f
'
{
self
.
assistant
}
:'
f
'
{
self
.
assistant
}
:'
else
:
else
:
return
f
'
\n
{
self
.
user
}
:
{
prompt
}{
self
.
eoh
}
\n
'
\
return
f
'
\n
{
self
.
user
}
:
{
prompt
}{
self
.
eoh
}
\n
'
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment