Spaces:
Runtime error
Runtime error
Update app.py
Browse files19 unmodified lines2021222324252619 unmodified linesckpts = "ckpts/Qlora_adaptor/"phi2_model = PeftModel.from_pretrained(base_model, ckpts)phi2_model = phi2_model.merge_and_unload().to(device)projection_layer = torch.nn.Linear(config.get("clip_embed"), config.get("phi_embed"))projection_layer.load_state_dict(torch.load('./ckpts/model_phase2.pth', map_location=config.get("device")))19 unmodified lines2021222324252619 unmodified linesckpts = "ckpts/Qlora_adaptor/"phi2_model = PeftModel.from_pretrained(base_model, ckpts)phi2_model = phi2_model.merge_and_unload().to(config.get("device"))projection_layer = torch.nn.Linear(config.get("clip_embed"), config.get("phi_embed"))projection_layer.load_state_dict(torch.load('./ckpts/model_phase2.pth', map_location=config.get("device")))
app.py+1-1