Skip to content

Commit 467cb16

Browse files
authored
Merge pull request llmware-ai#144 from llmware-ai/windows-updates
Windows updates
2 parents b90df5c + b816d92 commit 467cb16

25 files changed

+82
-65
lines changed

‎examples/bling_rag_benchmark_tests.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def rag_instruct_tester(model_name, from_hf=False, save_path=None):
7272

7373
if save_path:
7474
fn = secure_filename(model_name) + "_rag_instruct_test.jsonl"
75-
f_out = open(os.path.join(save_path, fn), "w")
75+
f_out = open(os.path.join(save_path, fn), "w", encoding='utf-8')
7676

7777
for entry in total_response_output:
7878
jsonl_row = json.dumps(entry)

‎llmware/configs.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@
1616

1717

1818
import os
19+
import platform
1920

2021
from llmware.exceptions import HomePathDoesNotExistException
2122

2223

2324
class LLMWareConfig:
2425

2526
# initial setting will pull from environ variables - future updates must be set directly
26-
27-
_base_fp = {"home_path": os.environ.get("HOME"),
28-
"llmware_path_name": "llmware_data/"}
27+
if platform.system() == "Windows":
28+
_base_fp = {"home_path": os.environ.get("USERPROFILE"),
29+
"llmware_path_name": "llmware_data" + os.sep}
30+
else:
31+
_base_fp = {"home_path": os.environ.get("HOME"),
32+
"llmware_path_name": "llmware_data" + os.sep}
2933

3034
_fp = {"model_repo_path_name": "model_repo" + os.sep,
3135
"library_path_name": "accounts" + os.sep,
1.09 MB
Binary file not shown.
96.8 KB
Binary file not shown.
115 KB
Binary file not shown.
407 KB
Binary file not shown.
1.07 MB
Binary file not shown.
179 KB
Binary file not shown.
4.76 MB
Binary file not shown.
332 KB
Binary file not shown.

0 commit comments

Comments
 (0)