fix bug on v1 finetune
This commit is contained in:
parent
7762459f1f
commit
7871baf311
|
|
@ -87,7 +87,7 @@ else:
|
||||||
print('Fitting 4bit scales and zeros to half')
|
print('Fitting 4bit scales and zeros to half')
|
||||||
for n, m in model.named_modules():
|
for n, m in model.named_modules():
|
||||||
if '4bit' in str(type(m)):
|
if '4bit' in str(type(m)):
|
||||||
if m.groupsize == -1:
|
if m.is_v1_model:
|
||||||
m.zeros = m.zeros.half()
|
m.zeros = m.zeros.half()
|
||||||
m.scales = m.scales.half()
|
m.scales = m.scales.half()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue