Commit 11bfa627 authored by jmorganca's avatar jmorganca Committed by Michael Yang
Browse files

add trailing \n\n after <end_of_image> to match reference implementation

parent f63e62e5
......@@ -133,8 +133,10 @@ func (m *Model) PostTokenize(ctx ml.Context, inputs []input.Input) ([]input.Inpu
result = append(result, input.Input{Multimodal: imageToken, MultimodalHash: fnvHash.Sum64()})
}
// <end_of_image>
result = append(result, input.Input{Token: 256000})
result = append(result,
input.Input{Token: 256000}, // <end_of_image>
input.Input{Token: 108}, // "\n\n"
)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment