ford442 commited on
Commit
8bf3a71
·
verified ·
1 Parent(s): ad17e31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ pipe.to(device=device, dtype=torch.bfloat16)
98
 
99
  tokenizer = AutoTokenizer.from_pretrained(checkpoint, add_prefix_space=False)
100
  tokenizer.tokenizer_legacy=False
101
- model = AutoModelForCausalLM.from_pretrained(checkpoint,attn_implementation="flash_attention_2").to('cuda')
102
  #model = torch.compile(model)
103
 
104
  upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1") #.to(torch.device("cuda:0"))
 
98
 
99
  tokenizer = AutoTokenizer.from_pretrained(checkpoint, add_prefix_space=False)
100
  tokenizer.tokenizer_legacy=False
101
+ model = AutoModelForCausalLM.from_pretrained(checkpoint).to('cuda')
102
  #model = torch.compile(model)
103
 
104
  upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1") #.to(torch.device("cuda:0"))