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
"docs/vscode:/vscode.git/clone" did not exist on "81e6345ddf893c594f6d76406a388fa012cb0a29"
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):
role
=
message
[
'role'
]
content
=
message
[
'content'
]
ret
+=
f
'
{
eval
(
f
"self.
{
role
}
")
}{
content
}{
eox_map
[
role
]
}
'
ret
+=
f
'
{
self
.
assistant
}
:
'
ret
+=
f
'
{
self
.
assistant
}
'
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