Skip to content

Commit

Permalink
[vicuna] Exit when mlir is not present in shark tank (#1825)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Shukla <gaurav@nod-labs.com>
  • Loading branch information
Shukla-Gaurav authored Sep 8, 2023
1 parent bde63ee commit c5dcfc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/language_models/scripts/vicuna.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from tqdm import tqdm
from typing import List, Tuple
import subprocess
import sys

import torch
import torch_mlir
Expand Down Expand Up @@ -1434,6 +1435,8 @@ def compile(self):
print(f"[DEBUG] mlir not found")
# Disabling this path of IR generation for now as it is broken.
print("Please check if the mlir file is present at the shark tank. Exiting.")
self.shark_model = None
sys.exit()
return

print("[DEBUG] generating mlir on device")
Expand Down

0 comments on commit c5dcfc1

Please sign in to comment.