Downloads · 30 days
0
htdy7703/keras-from-config-external-vocab-poc-20260707
keras-from-config-external-vocab-poc-20260707 is a machine learning model from htdy7703. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This PoC is intentionally narrow and matches the verified behavior on built keras 3.16.0.
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py2.4 KB · 49%
From the Hugging Face model README
from_config() External Vocabulary PoCThis PoC is intentionally narrow and matches the verified behavior on built keras 3.16.0.
What it shows:
.keras archive can carry a StringLookup config whose vocabulary field points to a local path such as /etc/hostnamekeras.saving.load_model() rejects that external vocabulary path under safe modekeras.layers.StringLookup.from_config() on the same extracted config still reads the local fileWhat it does not show:
.keras load_model() bypassrepro.py: builds a small .keras model, mutates its StringLookup config, and demonstrates both behaviorskeras 3.16.02.21.0PYTHONPATH=/mnt/data/huntr/.pkginstall-keras:/mnt/data/huntr/.pydeps-keras \
KERAS_BACKEND=tensorflow \
/home/thun/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3 \
repro.py