Downloads · 30 days
0
pragnyanramtha/hf-avro-poc
hf-avro-poc is a machine learning model from pragnyanramtha. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This PoC demonstrates a scanner/runtime mismatch for Avro artifacts in ML-adjacent pipelines:
Downloads · 30 days
0
Access
Public
Updated May 12, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py7.7 KB · 48%
From the Hugging Face model README
This PoC demonstrates a scanner/runtime mismatch for Avro artifacts in ML-adjacent pipelines:
modelscan does not treat .avro as a supported model file type and skips it.avro and fastavro fully decompress an Avro object-container block before yielding the first record..avro file can therefore trigger disproportionate memory and CPU work when used for ML dataset shards, metadata bundles, or checkpoint-adjacent binary blobs.generate_poc.py - builds a benign .avro artifact with a highly compressible tensor_bytes payloadverifier.py - reads the artifact with both Python runtimes, captures working-set deltas, and records modelscan outputartifacts/avro_bzip2_dos.avro - staged benign artifactresults/results.json - summarized run outputcd C:\Users\Pragnyan\dev\huntr-exp1\avro
.\.venv\Scripts\python.exe .\hf_avro_poc\generate_poc.py
.\.venv\Scripts\python.exe .\hf_avro_poc\verifier.py
tensor_bytes_len equal to the large embedded payload.modelscan reports the file as skipped or unsupported, leaving the runtime behavior unanalyzed.