Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
6b03cfdb
Commit
6b03cfdb
authored
Mar 12, 2026
by
guanyu1
Browse files
补充mrope创建部分
parent
fb445dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+9
-3
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
6b03cfdb
...
...
@@ -611,9 +611,15 @@ class GPUModelRunner(
# identical position IDs, making M-RoPE functionally equivalent to
# 1D-RoPE.
# See page 5 of https://arxiv.org/abs/2409.12191
self
.
mrope_positions
=
self
.
_make_buffer
(
(
3
,
self
.
max_num_tokens
+
1
),
dtype
=
torch
.
int64
)
if
self
.
use_1d_mrope
:
self
.
mrope_positions
=
self
.
_make_buffer
(
3
*
(
self
.
max_num_tokens
+
1
),
dtype
=
torch
.
int64
)
else
:
self
.
mrope_positions
=
self
.
_make_buffer
(
(
3
,
self
.
max_num_tokens
+
1
),
dtype
=
torch
.
int64
)
# Only relevant for models using XD-RoPE (e.g, HunYuan-VL)
if
self
.
uses_xdrope_dim
>
0
:
...
...
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