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