Sephfox commited on
Commit
aa8de66
·
verified ·
1 Parent(s): 4438789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ emotion_prediction_tokenizer = AutoTokenizer.from_pretrained("bhadresh-savani/di
64
  response_model_name = "gpt2-xl"
65
  response_tokenizer = AutoTokenizer.from_pretrained(response_model_name)
66
  with init_empty_weights():
67
- response_model = AutoModelForCausalLM.from_pretrained(response_model_name, device_map="auto", torch_dtype=torch.float16, assign=True)
68
 
69
  # Set the pad token
70
  response_tokenizer.pad_token = response_tokenizer.eos_token
 
64
  response_model_name = "gpt2-xl"
65
  response_tokenizer = AutoTokenizer.from_pretrained(response_model_name)
66
  with init_empty_weights():
67
+ response_model = AutoModelForCausalLM.from_pretrained(response_model_name, device_map="auto", torch_dtype=torch.float16)
68
 
69
  # Set the pad token
70
  response_tokenizer.pad_token = response_tokenizer.eos_token