lucas-w commited on
Commit
e5cdfca
β€’
1 Parent(s): 5e00dcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
27
  peft_model_id = "charansr/llama2-7b-chat-hf-therapist"
28
  config = PeftConfig.from_pretrained(peft_model_id,
29
  use_auth_token="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")
30
- #newmodel = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True, load_in_8bit=True, device_map='auto',
31
- # use_auth_token="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")
32
 
33
  newtokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path,
34
  use_auth_token="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")
 
27
  peft_model_id = "charansr/llama2-7b-chat-hf-therapist"
28
  config = PeftConfig.from_pretrained(peft_model_id,
29
  use_auth_token="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")
30
+ newmodel = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True, load_in_8bit=True, device_map='auto',
31
+ use_auth_token="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")
32
 
33
  newtokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path,
34
  use_auth_token="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")