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
0189f17c
Commit
0189f17c
authored
Dec 19, 2023
by
zhouxiang
Browse files
add qwen72
parent
ee33e2e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lmdeploy/model.py
lmdeploy/model.py
+1
-0
lmdeploy/serve/turbomind/deploy.py
lmdeploy/serve/turbomind/deploy.py
+4
-2
No files found.
lmdeploy/model.py
View file @
0189f17c
...
...
@@ -448,6 +448,7 @@ If a question does not make any sense, or is not factually coherent, explain why
return
ret
@
MODELS
.
register_module
(
name
=
'qwen-72b'
)
@
MODELS
.
register_module
(
name
=
'qwen-14b'
)
@
MODELS
.
register_module
(
name
=
'qwen-7b'
)
class
Qwen7BChat
(
BaseModel
):
...
...
lmdeploy/serve/turbomind/deploy.py
View file @
0189f17c
...
...
@@ -864,9 +864,11 @@ def deploy_qwen(model_name: str, model_path: str, tokenizer_path: str,
def
get_tensor
(
name
,
trans
=
True
):
"""return a transposed tensor according its name."""
if
trans
:
return
_params
[
name
].
cuda
().
t
()
# return _params[name].cuda().t()
return
_params
[
name
].
t
()
else
:
return
_params
[
name
].
cuda
()
# return _params[name].cuda()
return
_params
[
name
]
for
i
in
range
(
num_layer
):
print
(
i
)
...
...
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