Update model.py
Browse files
model.py
CHANGED
@@ -34,21 +34,6 @@ dtype = torch.float32
|
|
34 |
warnings.filterwarnings("ignore")
|
35 |
logging.basicConfig(level=logging.ERROR)
|
36 |
|
37 |
-
from rich.traceback import install
|
38 |
-
install(show_locals=True)
|
39 |
-
|
40 |
-
import pretty_errors
|
41 |
-
pretty_errors.configure(
|
42 |
-
separator_character = '*',
|
43 |
-
filename_display = pretty_errors.FILENAME_EXTENDED,
|
44 |
-
line_number_first = True,
|
45 |
-
display_link = True,
|
46 |
-
lines_before = 5,
|
47 |
-
lines_after = 2,
|
48 |
-
line_color = pretty_errors.RED + '> ' + pretty_errors.default_config.line_color,
|
49 |
-
code_color = ' ' + pretty_errors.default_config.line_color,
|
50 |
-
)
|
51 |
-
|
52 |
extractor = None
|
53 |
tokenizer = None
|
54 |
optimizer = None
|
|
|
34 |
warnings.filterwarnings("ignore")
|
35 |
logging.basicConfig(level=logging.ERROR)
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
extractor = None
|
38 |
tokenizer = None
|
39 |
optimizer = None
|