Skip to content

Commit afdd111

Browse files
committed
Kimi-VL: fix arbitrary 2D rope
1 parent a289b91 commit afdd111

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

models/kimi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ namespace vit
130130

131131
v_pos_h.resize(len);
132132

133-
for (int i = 0; i < grid_w; i++)
133+
for (int i = 0; i < grid_h; i++)
134134
{
135-
for (int j = 0; j < grid_h; j++)
135+
for (int j = 0; j < grid_w; j++)
136136
{
137-
v_pos [i * grid_h + j] = j;
138-
v_pos_h[i * grid_h + j] = i;
137+
v_pos [i * grid_w + j] = j;
138+
v_pos_h[i * grid_w + j] = i;
139139
}
140140
}
141141

0 commit comments

Comments
 (0)