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
bd7c4e39
Unverified
Commit
bd7c4e39
authored
Dec 05, 2023
by
Qian Zhao
Committed by
GitHub
Dec 05, 2023
Browse files
fix extra colon in InternLMChat7B (#796)
parent
079f29bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lmdeploy/model.py
lmdeploy/model.py
+1
-1
No files found.
lmdeploy/model.py
View file @
bd7c4e39
...
@@ -238,7 +238,7 @@ class InternLMChat7B(BaseModel):
...
@@ -238,7 +238,7 @@ class InternLMChat7B(BaseModel):
role
=
message
[
'role'
]
role
=
message
[
'role'
]
content
=
message
[
'content'
]
content
=
message
[
'content'
]
ret
+=
f
'
{
eval
(
f
"self.
{
role
}
")
}{
content
}{
eox_map
[
role
]
}
'
ret
+=
f
'
{
eval
(
f
"self.
{
role
}
")
}{
content
}{
eox_map
[
role
]
}
'
ret
+=
f
'
{
self
.
assistant
}
:
'
ret
+=
f
'
{
self
.
assistant
}
'
return
ret
return
ret
...
...
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