fbaldassarri commited on
Commit
c6dd409
·
verified ·
1 Parent(s): d48e886

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -64,8 +64,8 @@ pip install -vvv --no-build-isolation -e .[cpu]
64
  model = AutoModelForCausalLM.from_pretrained(model_name)
65
  tokenizer = AutoTokenizer.from_pretrained(model_name)
66
  from auto_round import AutoRound
67
- bits, group_size, sym = 4, 128, False
68
- autoround = AutoRound(model, tokenizer, nsamples=128, iters=200, seqlen=512, batch_size=4, bits=bits, group_size=group_size, sym=sym)
69
  autoround.quantize()
70
  output_dir = "./AutoRound/EleutherAI_pythia-12b-deduped-autoawq-int4-gs128-asym"
71
  autoround.save_quantized(output_dir, format='auto_awq', inplace=True)
 
64
  model = AutoModelForCausalLM.from_pretrained(model_name)
65
  tokenizer = AutoTokenizer.from_pretrained(model_name)
66
  from auto_round import AutoRound
67
+ bits, group_size, sym, device, amp = 4, 128, False, 'cpu', False
68
+ autoround = AutoRound(model, tokenizer, nsamples=128, iters=200, seqlen=512, batch_size=4, bits=bits, group_size=group_size, sym=sym, device=device, amp=amp)
69
  autoround.quantize()
70
  output_dir = "./AutoRound/EleutherAI_pythia-12b-deduped-autoawq-int4-gs128-asym"
71
  autoround.save_quantized(output_dir, format='auto_awq', inplace=True)