harrrshall/BarunAction-35M main
PYTHON
Verdict: BENIGN
Local reference
Suspicious dependency
Inferred
| 1 |
"""Public, proposal-only Gradio demo for BarunAction-35M candidate-v2.""" |
|
| 2 |
|
|
| 3 |
from __future__ import annotations |
|
| 4 |
|
|
| 5 |
import hashlib |
|
| 6 |
import html |
|
| 7 |
import json |
|
| 8 |
import os |
|
| 9 |
import thread… |
|
| 19:17 |
… "candidate-v2" |
|
| 20 |
MODEL_PARAMETERS = 35_072_768 |
|
| 21 |
SOURCE_RELEASE = "https://github.com/harrrshall/barunaction-35m/tree/v1.0.0" |
References a public code-forge URL |
| 22 |
|
|
| 23 |
EXPECTED_CHECKPOINT_SHA256 = { |
|
| 24 |
"barun_config.json": "9b3a1d71baa95a198744d250f9629231738d942570b8685c44307fd83dd33565", |
|
| 25 |
"model.safetensors": "fdb95ccf58a095e0d321be998924318b35ee59a334f6dd97d8726d2cf80021d3", |
|
| 26 |
"tokenizer.json": "70ded9605fccd09c2340ca7e225361eab0ae8b4dbbb0d6e26343ab5183979db6", |
|
| 27 |
} |
|
| 28 |
CHECKPOINT_MANIFEST_SHA256 = "c743ab7c4d33ae75c6b0aa4547458a961b92766da8fcf85fd148fda2ebb5530a" |
|
| 29 |
|
|
| 30 |
MAX_REQUEST_CHARS = 4_000 |
|
| 31 |
MAX_NOW_CHARS = 128 |
|
| 32 |
MAX_TOOLS_BYTES = 64_000 |
|
| 33 |
MAX_CONTEXT_BYTES = 32_000 |
|
| 34 |
MAX_NEW_TOKENS = 192 |
|
| 35 |
|
|
| 36 |
DEFAULT_TOOL_SCHEMAS: list[dict[str, Any]] = [ |
|
| 37 |
{ |
|
| 38 |
… |
|
| 168:9 |
…self.path = path |
|
| 169 |
|
|
| 170 |
|
|
| 171 |
def _sha256(path: Path) -> str: |
|
| 172 |
digest = hashlib.sha256() |
Performs Python SHA-256 operation |
| 173 |
with path.open("rb") as handle: |
|
| 174 |
for chunk in iter(lambda: handle.read(1024 * 1024), b""): |
|
| 175 |
digest.update(chunk) |
|
| 176 |
return digest.hexdigest() |
|
| 177 |
|
|
| 178 |
|
|
| 179 |
def _verify… |
|
| 192:65 |
…nt_manifest.json") |
|
| 193 |
|
|
| 194 |
|
|
| 195 |
def _runtime_device() -> str: |
|
| 196 |
device = os.getenv("BARUNACTION_DEVICE", "cpu").strip().casefold() |
Python reads an environment variable |
| 197 |
if device not in {"cpu", "cuda"}: |
|
| 198 |
raise RuntimeError("BARUNACTION_D… |
|
| 253:14 |
…input_too_large", |
|
| 254 |
f"{label} exceeds this public demo's {byte_limit:,}-byte limit.", |
|
| 255 |
path, |
|
| 256 |
) |
|
| 257 |
try: |
|
| 258 |
return json.loads( |
Parses JSON data with Python |
| 259 |
raw, |
|
| 260 |
object_pairs_hook=_reject_pairs, |
|
| 261 |
parse_constant=_reject_constant, |
|
| 262 |
) |
|
| 263 |
excep… |
|
Micro-behaviors
| 19:17 |
… "candidate-v2" |
|
| 20 |
MODEL_PARAMETERS = 35_072_768 |
|
| 21 |
SOURCE_RELEASE = "https://github.com/harrrshall/barunaction-35m/tree/v1.0.0" |
|
| 22 |
|
|
| 23 |
EXPECTED_CHECKPOINT_SHA256 = { |
|
| 24 |
"barun_config.json": "9b3a1d71baa95a198744d250f9629231738d942570b8685c44307fd83dd33565", |
|
| 25 |
"model.safetensors": "fdb95ccf58a095e0d321be998924318b35ee59a334f6dd97d8726d2cf80021d3", |
|
| 26 |
"tokenizer.json": "70ded9605fccd09c2340ca7e225361eab0ae8b4dbbb0d6e26343ab5183979db6", |
|
| 27 |
} |
|
| 28 |
CHECKPOINT_MANIFEST_SHA256 = "c743ab7c4d33ae75c6b0aa4547458a961b92766da8fcf85fd148fda2ebb5530a" |
|
| 29 |
|
|
| 30 |
MAX_REQUEST_CHARS = 4_000 |
|
| 31 |
MAX_NOW_CHARS = 128 |
|
| 32 |
MAX_TOOLS_BYTES = 64_000 |
|
| 33 |
MAX_CONTEXT_BYTES = 32_000 |
|
| 34 |
MAX_NEW_TOKENS = 192 |
|
| 35 |
|
|
| 36 |
DEFAULT_TOOL_SCHEMAS: list[dict[str, Any]] = [ |
|
| 37 |
{ |
|
| 38 |
… |
|
| 168:9 |
…self.path = path |
|
| 169 |
|
|
| 170 |
|
|
| 171 |
def _sha256(path: Path) -> str: |
|
| 172 |
digest = hashlib.sha256() |
|
| 173 |
with path.open("rb") as handle: |
|
| 174 |
for chunk in iter(lambda: handle.read(1024 * 1024), b""): |
|
| 175 |
digest.update(chunk) |
|
| 176 |
return digest.hexdigest() |
|
| 177 |
|
|
| 178 |
|
|
| 179 |
def _verify… |
|
| 253:14 |
…input_too_large", |
|
| 254 |
f"{label} exceeds this public demo's {byte_limit:,}-byte limit.", |
|
| 255 |
path, |
|
| 256 |
) |
|
| 257 |
try: |
|
| 258 |
return json.loads( |
|
| 259 |
raw, |
|
| 260 |
object_pairs_hook=_reject_pairs, |
|
| 261 |
parse_constant=_reject_constant, |
|
| 262 |
) |
|
| 263 |
excep… |
|
| 192:65 |
…nt_manifest.json") |
|
| 193 |
|
|
| 194 |
|
|
| 195 |
def _runtime_device() -> str: |
|
| 196 |
device = os.getenv("BARUNACTION_DEVICE", "cpu").strip().casefold() |
|
| 197 |
if device not in {"cpu", "cuda"}: |
|
| 198 |
raise RuntimeError("BARUNACTION_D… |
|
Metadata
| 138:9 |
…"request": ( |
|
| 139 |
"Email [email protected] with subject Release notes and body " |
|
| 140 |
"The candidate package is ready for review." |
|
| 141 |
… |
|
| 11:6 |
…typing import Any |
|
| 12 |
|
|
| 13 |
try: |
|
| 14 |
import gradio as gr |
|
| 15 |
except ImportError: # Keeps the core request path importable for offline tests. |
|
| 16 |
gr = None # type: ignore[assignment] |
|
| 17 |
|
|
| 18 |
MODE… |
|
| 1 |
"""Public, proposal-only Gradio demo for BarunAction-35M candidate-v2.""" |
|
| 2 |
|
|
| 3 |
from __future__ import annotations |
|
| 4 |
|
|
| 5 |
import hashlib |
|
| 6 |
import html |
|
| 7 |
import json |
|
| 8 |
import os |
|
| 9 |
import thread… |
|
| 253:14 |
…input_too_large", |
|
| 254 |
f"{label} exceeds this public demo's {byte_limit:,}-byte limit.", |
|
| 255 |
path, |
|
| 256 |
) |
|
| 257 |
try: |
|
| 258 |
return json.loads( |
|
| 259 |
raw, |
|
| 260 |
object_pairs_hook=_reject_pairs, |
|
| 261 |
parse_constant=_reject_constant, |
|
| 262 |
) |
|
| 263 |
excep… |
|
| 44:5 |
… "description": "Calendar event date and time.", |
|
| 45 |
}, |
|
| 46 |
}, |
|
| 47 |
"required": ["title", "datetime"], |
|
| 48 |
"additiona… |
|
Identity
| SHA-256 |
19c124916b07cc914bbd79cdb267d248d6123f21ffb7c2175f608224dacda635 |
| Filename |
app.py |
| Package |
harrrshall/BarunAction-35M |
| Version |
main |
| PURL |
pkg:huggingface/harrrshall/BarunAction-35M@main |
Timeline
| First seen |
5 Aug 2026 10:58 UTC |
| First analyzed |
28 Aug 2026 14:25 UTC |
| Last analyzed |
28 Aug 2026 14:25 UTC |
| Last updated |
28 Aug 2026 14:25 UTC |
Labeling
| Label |
unknown |
| Label source |
forager |
| Traits version |
b59b7 |