Update README.md
Browse files
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
|
|
|
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 |
|