fix build
This commit is contained in:
parent
f8b48aa784
commit
80498f76de
@ -164,5 +164,6 @@ func (m *Model) Forward(ctx ml.Context, batch input.Batch) (ml.Tensor, error) {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
model.Register("qwen25vl", New)
|
model.Register("qwen25vl", New)
|
||||||
|
model.Register("qwen2", New)
|
||||||
model.Register("qwen2vl", New)
|
model.Register("qwen2vl", New)
|
||||||
}
|
}
|
||||||
|
@ -303,7 +303,7 @@ func (m *VisionModel) Forward(ctx ml.Context, pixelValues ml.Tensor, grid *Grid)
|
|||||||
m.patchSize, // patch size, e.g., 14
|
m.patchSize, // patch size, e.g., 14
|
||||||
)
|
)
|
||||||
|
|
||||||
rope := rope(ctx, grid)
|
rope(ctx, grid)
|
||||||
|
|
||||||
// spatialMergeSize := 2 // TODO: get this from config
|
// spatialMergeSize := 2 // TODO: get this from config
|
||||||
// // Create the position IDs tensor with correct dimensions
|
// // Create the position IDs tensor with correct dimensions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user