llama2.c icon indicating copy to clipboard operation
llama2.c copied to clipboard

Use `int` instead of `float` to calculate `weights_ptr`

Open qianzhangxa opened this issue 1 year ago • 2 comments

The Config structure consists of 7 fields of int type, so we should use int instead of float when calculating weights_ptr.

qianzhangxa avatar Apr 27 '24 01:04 qianzhangxa

Haha yea. I noticed that too but the size is the same.

jameswdelancey avatar Apr 27 '24 01:04 jameswdelancey

Been in the code a long time.

jameswdelancey avatar Apr 27 '24 01:04 jameswdelancey