Update app.py
Browse files
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
|
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"))
|