aixsatoshi commited on
Commit
2fdd0a5
1 Parent(s): 63aa940

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
11
  model = AutoModelForCausalLM.from_pretrained(
12
  model_id,
13
  torch_dtype=torch.float16,
14
- device_map="auto",
15
  trust_remote_code=True,
16
  use_flash_attention_2=True,
17
  #offload_folder="offload", # オフロードフォルダの指定
 
11
  model = AutoModelForCausalLM.from_pretrained(
12
  model_id,
13
  torch_dtype=torch.float16,
14
+ device_map="sequential",
15
  trust_remote_code=True,
16
  use_flash_attention_2=True,
17
  #offload_folder="offload", # オフロードフォルダの指定