Commit ·
7aac6c0
1
Parent(s): 0bb9433
Disable SSR; adapters now peft-format
Browse files11 unmodified lines121314151617181978 unmodified lines989910010111 unmodified linesBASE_7B = "Qwen/Qwen2.5-Coder-7B-Instruct"BASE_15B = "Qwen/Qwen2.5-Coder-1.5B-Instruct"# ZeroGPU reports cuda "available" at module level but has no real GPU there, which# makes peft read adapter weights straight onto a missing GPU. Load on CPU, then move._avail = torch.cuda.is_availabletorch.cuda.is_available = lambda: Falsetok7 = AutoTokenizer.from_pretrained(BASE_7B)78 unmodified linesgr.Examples(EXAMPLES, inputs=question)go.click(compare, [question, left, right], [out_l, out_r])demo.queue().launch()11 unmodified lines12131415161778 unmodified lines9697989911 unmodified linesBASE_7B = "Qwen/Qwen2.5-Coder-7B-Instruct"BASE_15B = "Qwen/Qwen2.5-Coder-1.5B-Instruct"_avail = torch.cuda.is_availabletorch.cuda.is_available = lambda: Falsetok7 = AutoTokenizer.from_pretrained(BASE_7B)78 unmodified linesgr.Examples(EXAMPLES, inputs=question)go.click(compare, [question, left, right], [out_l, out_r])demo.queue().launch(ssr_mode=False)
app.py+1-3