fix f16 format detection in neox
This commit is contained in:
parent
f5e1fe46e1
commit
1225fab2ec
1 changed files with 6 additions and 1 deletions
|
@ -166,6 +166,11 @@ void print_tok_vec(std::vector<float> &embd)
|
||||||
if(!isNewFtype)
|
if(!isNewFtype)
|
||||||
{
|
{
|
||||||
fileformat = FileFormat::NEOX_2;
|
fileformat = FileFormat::NEOX_2;
|
||||||
|
if((temp==0||temp==1)&&(temp2==0||temp2==1))//special case: par_res and ftype are both 1 or 0
|
||||||
|
{
|
||||||
|
//its a f16/f32 model in the new format
|
||||||
|
fileformat = FileFormat::NEOX_4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue