Update README.md
Browse files
README.md
CHANGED
@@ -84,6 +84,7 @@ config = PeftConfig.from_pretrained(MODEL_NAME)
|
|
84 |
model = AutoModelForCausalLM.from_pretrained(
|
85 |
config.base_model_name_or_path,
|
86 |
load_in_8bit=True,
|
|
|
87 |
device_map="auto"
|
88 |
)
|
89 |
model = PeftModel.from_pretrained(model, MODEL_NAME)
|
|
|
84 |
model = AutoModelForCausalLM.from_pretrained(
|
85 |
config.base_model_name_or_path,
|
86 |
load_in_8bit=True,
|
87 |
+
torch_dtype=torch.float16,
|
88 |
device_map="auto"
|
89 |
)
|
90 |
model = PeftModel.from_pretrained(model, MODEL_NAME)
|