Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -507,6 +507,9 @@ dtype = dt
|
|
| 507 |
quantize = None
|
| 508 |
t0 = time.time()
|
| 509 |
|
|
|
|
|
|
|
|
|
|
| 510 |
with EmptyInitOnDevice(
|
| 511 |
device=fabric.device, dtype=dtype, quantization_mode=quantize
|
| 512 |
), lora(r=args.lora_r, alpha=args.lora_alpha, dropout=args.lora_dropout, enabled=True):
|
|
@@ -531,8 +534,6 @@ with EmptyInitOnDevice(
|
|
| 531 |
)
|
| 532 |
model = GPT(config).bfloat16()
|
| 533 |
|
| 534 |
-
mlp_path = args.mlp_path
|
| 535 |
-
pretrained_checkpoint_mlp = torch.load(mlp_path)
|
| 536 |
|
| 537 |
X = ['Video']
|
| 538 |
|
|
|
|
| 507 |
quantize = None
|
| 508 |
t0 = time.time()
|
| 509 |
|
| 510 |
+
mlp_path = args.mlp_path
|
| 511 |
+
pretrained_checkpoint_mlp = torch.load(mlp_path)
|
| 512 |
+
|
| 513 |
with EmptyInitOnDevice(
|
| 514 |
device=fabric.device, dtype=dtype, quantization_mode=quantize
|
| 515 |
), lora(r=args.lora_r, alpha=args.lora_alpha, dropout=args.lora_dropout, enabled=True):
|
|
|
|
| 534 |
)
|
| 535 |
model = GPT(config).bfloat16()
|
| 536 |
|
|
|
|
|
|
|
| 537 |
|
| 538 |
X = ['Video']
|
| 539 |
|