You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guard repo's export_onnx.py does not pass trust_remote_code=True, which causes the non-interactive container to hang on the HuggingFace prompt. We now patch the script after cloning and set HF_TRUST_REMOTE_CODE=1. HF_TOKEN is passed through if set on the host.
sed -i 's/AutoTokenizer.from_pretrained(MODEL_ID, revision=MODEL_REVISION)/AutoTokenizer.from_pretrained(MODEL_ID, revision=MODEL_REVISION, trust_remote_code=True)/' scripts/export_onnx.py
64
+
sed -i 's/AutoModelForSequenceClassification.from_pretrained(/AutoModelForSequenceClassification.from_pretrained(trust_remote_code=True, /' scripts/export_onnx.py
65
+
49
66
echo '==> Installing Python export requirements (this may take a minute)...'
0 commit comments