The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(platform): setup facts read nvidia_platform(); drop is_nvidia_arm_soc
alt-glitchd9617f492481
diff --git a/agent/initiate_setup_facts.py b/agent/initiate_setup_facts.pyindex 6e57adb1ad0..2dd95e1ee6c 100644--- a/agent/initiate_setup_facts.py+++ b/agent/initiate_setup_facts.py@@ -24,7 +24,6 @@ _NON_NAMES = frozenset({"admin", "administrator", "default", "guest", "me", "owner", "root", "test", "user",})_HANDLE_CHARS = re.compile(r"[\d_@/\\]")-_SPARK_MODEL = re.compile(r"\b(dgx|spark|gb10)\b", re.IGNORECASE)FORK_QUESTION = "Know what you'd like it to make?"# Reading the Blender plugin's app declaration takes the network.@@ -157,12 +156,6 @@ def _locale() -> str:# --- the facts block -------------------------------------------------------------------def _is_spark(os_family: str, arch: str, gpu: str, cpu: str) -> bool:- """RTX Sparks by platform, architecture and GPU; DGX Sparks by model string."""- rtx = os_family == "win32" and arch == "arm64" and gpu == "nvidia"- return rtx or products.is_nvidia_arm_soc() or bool(_SPARK_MODEL.search(cpu.replace("_", " ")))--def _machine_kind(os_family: str, spark: bool) -> str:if spark:return "Spark"@@ -175,7 +168,7 @@ def facts() -> dict:model only when the user picks it."""os_family, arch, gpu, cpu = host.os_family(), host.native_arch(), host.gpu_class(), host.cpu_model()ram = host.ram_total_bytes()- spark = _is_spark(os_family, arch, gpu, cpu)+ spark = products.nvidia_platform() in ("rtx_spark", "dgx_spark")machine = {"os_family": os_family,"os_release": platform.release(),diff --git a/hermes_platform/host/products.py b/hermes_platform/host/products.pyindex 67e315004cc..4447d3966d3 100644--- a/hermes_platform/host/products.py+++ b/hermes_platform/host/products.py@@ -53,8 +53,3 @@ def nvidia_platform() -> NvidiaPlatform | None:return classify_nvidia_platform(os_family=facts.os_family(), native_arch=facts.native_arch(), cpu_model=facts.cpu_model(),gpu_class=facts.gpu_class(), nvidia_gpu_names=facts.nvidia_gpu_names())---def is_nvidia_arm_soc() -> bool:- """Return whether this host is an RTX Spark or a DGX Spark."""- return nvidia_platform() in ("rtx_spark", "dgx_spark")