matsuap commited on
Commit
93c486c
1 Parent(s): c196004

remove device_map

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ h1 {
41
 
42
  # Load the tokenizer and model
43
  tokenizer = AutoTokenizer.from_pretrained("elyza/Llama-3-ELYZA-JP-8B")
44
- model = AutoModelForCausalLM.from_pretrained("elyza/Llama-3-ELYZA-JP-8B", device_map="auto")
45
  terminators = [
46
  tokenizer.eos_token_id,
47
  tokenizer.convert_tokens_to_ids("<|eot_id|>")
 
41
 
42
  # Load the tokenizer and model
43
  tokenizer = AutoTokenizer.from_pretrained("elyza/Llama-3-ELYZA-JP-8B")
44
+ model = AutoModelForCausalLM.from_pretrained("elyza/Llama-3-ELYZA-JP-8B")
45
  terminators = [
46
  tokenizer.eos_token_id,
47
  tokenizer.convert_tokens_to_ids("<|eot_id|>")