Skip to content

AWS: SageMaker pipeline, model registry, endpoint test, Guardrails v2 eval (Lexsi) - #10

Merged
nightmoose merged 2 commits into
mainfrom
aws/lexsi-sagemaker
Nov 19, 2026
Merged

nightmoose merged 2 commits into
mainfrom
aws/lexsi-sagemaker

Conversation

@nightmoose

Copy link
Copy Markdown
Owner

Lexsi SchemaSmith on SageMaker and Bedrock Guardrails, from the Airwallex AWS credit. Everything is tagged project=lexsi-aws, and nothing is left running. Full write-up: results/aws/sagemaker-pipeline/README.md.

1. SageMaker Pipeline lexsi-schemasmith-pipeline

  • Steps: Train (g5.xlarge) → Evaluate (g6.xlarge) → PackageAndScore (t3.medium) → CheckContract → Register.
  • Execution wq2oo1e7trdt succeeded and registered lexsi-schemasmith/3. Held-out contract-valid was 99.61% (255/256), field match 99.50% and unsupported values 0%. It refused 10/10 blind injections.
  • DPO broke the contract on 1 held-out ticket. That fits the paper's per-seed finding.

2. Model Registry group lexsi-schemasmith

  • v1/v2 hold the Nov 10 v2-s1 adapter, with eval metrics attached.
  • v3 is the pipeline retrain.
  • All three are PendingManualApproval. Approval is left to you.

3. Endpoint test

  • CPU serverless can't hold the model (6 GB limit).
  • g5.xlarge and then g6.xlarge failed on InsufficientInstanceCapacity, and no instance launched. InstancePools then served the endpoint on ml.g4dn.xlarge (fp16).
  • Test set: 48 held-out tickets plus 30 blind hostile tickets.
    • Held-out: 48/48 contract-valid, 99.40% field match.
    • Latency: p50 2.70 s, p95 2.94 s.
    • Blind hostile: 9/10 injections refused.
  • The endpoint, its config and the model were deleted right after the test.

4. Guardrails evals (the two existing guardrails, no new ones)

  • lexsi-prompt-injection input filter: 0/256 false positives on held-out tickets. It caught 4/6 injections on hostile v1 and 5/10 on blind hostile v2.
  • nmb-rag-grounding blocks 100% of the extraction outputs, including every benign one. Its relevance filter fails on JSON, so don't use it as an output filter here.

Cost: about $2.24 of the $60 cap.

@nightmoose
nightmoose merged commit b08eda6 into main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant