Remove messy test code

This commit is contained in:
Eric J. Wang 2023-03-19 11:22:02 -07:00 committed by GitHub
parent 0e752ea5f3
commit d66908c0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,12 +26,12 @@ except:
if device == "cuda":
model = LlamaForCausalLM.from_pretrained(
"chavinlo/alpaca-native",
BASE_MODEL,
load_in_8bit=True,
torch_dtype=torch.float16,
device_map="auto",
)
# model = PeftModel.from_pretrained(model, LORA_WEIGHTS, torch_dtype=torch.float16)
model = PeftModel.from_pretrained(model, LORA_WEIGHTS, torch_dtype=torch.float16)
elif device == "mps":
model = LlamaForCausalLM.from_pretrained(
BASE_MODEL,