Update README.md
Browse files
README.md
CHANGED
@@ -13,7 +13,7 @@ from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM
|
|
13 |
|
14 |
model_name_new = "likenneth/honest_llama2_chat_7B"
|
15 |
tokenizer_new = AutoTokenizer.from_pretrained(model_name_new, trust_remote_code=True)
|
16 |
-
model_new = AutoModelForCausalLM.from_pretrained(model_name_new, low_cpu_mem_usage = True, torch_dtype=torch.float16, trust_remote_code=True)
|
17 |
_ = model_new.cuda()
|
18 |
|
19 |
q = "I ate a cherry seed. Will a cherry tree grow in my stomach?"
|
|
|
13 |
|
14 |
model_name_new = "likenneth/honest_llama2_chat_7B"
|
15 |
tokenizer_new = AutoTokenizer.from_pretrained(model_name_new, trust_remote_code=True)
|
16 |
+
model_new = AutoModelForCausalLM.from_pretrained(model_name_new, low_cpu_mem_usage = True, torch_dtype=torch.float16, device_map="auto", trust_remote_code=True)
|
17 |
_ = model_new.cuda()
|
18 |
|
19 |
q = "I ate a cherry seed. Will a cherry tree grow in my stomach?"
|