Skip to content

Commit

Permalink
add in default value for sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
chuangtc committed Apr 15, 2024
1 parent 79e7489 commit 6afcdfc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion llm_benchmark/systeminfo/sysmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def get_extra():
ans={}
ans['system'] = f"{system_info.system}"
ans['memory'] = get_total_memory_size()
ans['cpu'] = f"unknown"
ans['gpu'] = f"unknown"
ans['os_version'] = f"unknown"

try:
if(system_info.system=='Darwin'):
ans['system_name'] = "macOS"
Expand Down Expand Up @@ -213,7 +217,9 @@ def get_extra():
return ans

except:
print("error!")
print("error! when retrieving cpu, gpu, os_version")

return ans

def get_uuid():
sys_info = get_extra()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "llm_benchmark"
version = "0.3.15"
version = "0.3.16"
description = "LLM Benchmark for Throughputs via Ollama"
authors = ["Jason Chuang <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='llm_benchmark',
version='0.3.15',
version='0.3.16',
author='Jason Chuang',
author_email='[email protected]',
description='LLM Benchmark',
Expand Down

0 comments on commit 6afcdfc

Please sign in to comment.