Spaces:
Runtime error
Runtime error
zetavg
commited on
Commit
•
c15d0e4
1
Parent(s):
f31c4d4
some fixes
Browse files- llama_lora/globals.py +1 -0
- llama_lora/models.py +1 -1
- llama_lora/ui/main_page.py +1 -1
llama_lora/globals.py
CHANGED
@@ -40,6 +40,7 @@ class Global:
|
|
40 |
ui_subtitle: str = "Toolkit for evaluating and fine-tuning LLaMA models with low-rank adaptation (LoRA)."
|
41 |
ui_show_sys_info: bool = True
|
42 |
ui_dev_mode: bool = False
|
|
|
43 |
|
44 |
|
45 |
def get_package_dir():
|
|
|
40 |
ui_subtitle: str = "Toolkit for evaluating and fine-tuning LLaMA models with low-rank adaptation (LoRA)."
|
41 |
ui_show_sys_info: bool = True
|
42 |
ui_dev_mode: bool = False
|
43 |
+
ui_dev_mode_title_prefix: str = "[UI DEV MODE] "
|
44 |
|
45 |
|
46 |
def get_package_dir():
|
llama_lora/models.py
CHANGED
@@ -98,7 +98,7 @@ def load_base_model():
|
|
98 |
)
|
99 |
else:
|
100 |
Global.loaded_base_model = LlamaForCausalLM.from_pretrained(
|
101 |
-
base_model, device_map={"": device}, low_cpu_mem_usage=True
|
102 |
)
|
103 |
|
104 |
|
|
|
98 |
)
|
99 |
else:
|
100 |
Global.loaded_base_model = LlamaForCausalLM.from_pretrained(
|
101 |
+
Global.base_model, device_map={"": device}, low_cpu_mem_usage=True
|
102 |
)
|
103 |
|
104 |
|
llama_lora/ui/main_page.py
CHANGED
@@ -69,7 +69,7 @@ def main_page():
|
|
69 |
def get_page_title():
|
70 |
title = Global.ui_title
|
71 |
if (Global.ui_dev_mode):
|
72 |
-
title =
|
73 |
if (Global.ui_emoji):
|
74 |
title = f"{Global.ui_emoji} {title}"
|
75 |
return title
|
|
|
69 |
def get_page_title():
|
70 |
title = Global.ui_title
|
71 |
if (Global.ui_dev_mode):
|
72 |
+
title = Global.ui_dev_mode_title_prefix + title
|
73 |
if (Global.ui_emoji):
|
74 |
title = f"{Global.ui_emoji} {title}"
|
75 |
return title
|