barty commited on
Commit
f2b7f5a
·
verified ·
1 Parent(s): 8c0f52b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -54,7 +54,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
54
  model = AutoModelForCausalLM.from_pretrained(
55
  model_name,
56
  device_map="auto",
57
- load_in_8bit=True # Enable 8-bit quantization for efficiency
 
58
  )
59
  pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
60
 
 
54
  model = AutoModelForCausalLM.from_pretrained(
55
  model_name,
56
  device_map="auto",
57
+ load_in_8bit=True,
58
+ torch_dtype=torch.float16
59
  )
60
  pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
61