Instructions to use bononi/healguard-v0-final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bononi/healguard-v0-final with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-global") model = PeftModel.from_pretrained(base_model, "bononi/healguard-v0-final") - Notebooks
- Google Colab
- Kaggle
Model Card for HealGuard v0 Final (SFT Baseline)
Model Details
Model Description
This is the v0 baseline adapter for HealGuard, a self-healing agent pipeline built for the Lexsi Hackathon (Track 3: Agentic Fine-Tuning).
This adapter acts as the control model. It was trained to perform cloud audits by calling 8 specific tools (S3 buckets, IAM roles, security groups) in a deterministic, simulated AWS environment.
- Developed by: The HealGuard Team
- Model type: QLoRA (PEFT) Adapter
- Language(s) (NLP): English
- License: CC-BY-NC-4.0 (inherited from the base model)
- Finetuned from model:
CohereLabs/tiny-aya-global
Model Sources
- Repository: HealGuard-Lexsi GitHub
- Paper/Article: HealGuard: When the Best Deployment is a Rejection
- Demo: Gradio Space
Uses
Direct Use
This model is intended to be used as the baseline for evaluating self-healing strategies. It takes a cloud audit prompt and outputs a sequence of JSON tool calls to inspect buckets, roles, and security groups.
Out-of-Scope Use
This model is trained on a simulated, deterministic environment. It should not be deployed against a real AWS account. It is a research artifact.
Bias, Risks, and Limitations
Crucial Research Finding: When evaluated on raw task success under API drift, v0 scores 75.0%. However, its grounded success (correct answer + actually performing the required evidence calls) is only 35.0%.
Because 50% of the tasks in the benchmark have an empty correct answer ([]), a lazy policy that gives up when it encounters an error scores well. v0 exhibits the **"None-Floor Illusion"**โit often skips reads and guesses [] to hack the raw metric.
How to Get Started with the Model
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "CohereLabs/tiny-aya-global"
adapter_id = "bononi/healguard-v0-final"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
load_in_4bit=True,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_id)
Training Details
Training Data
The model was trained on 400 expert trajectories (data/train_clean/expert_traces.jsonl) generated by a scripted Oracle. The data ensures a strict 50/50 balance of vulnerable tasks and "none" tasks.
Training Procedure
- Preprocessing: The model uses a custom Tiny Aya chat template (
{% generation %}markers) to mask the loss on the system prompt and tool outputs. - Hardware: Trained on a single Kaggle T4 GPU (16GB).
- Optimization: We used a custom bf16 โ fp32 cast for the GradScaler to prevent T4 mixed-precision crashes.
Training Hyperparameters
| Parameter | Value |
|---|---|
| Training regime | 4-bit NF4 QLoRA |
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.05 |
| Target modules | all-linear |
| Learning rate | 1e-4 |
| Epochs | 5 |
| Batch size | 1 |
| Gradient accumulation | 8 |
| Max sequence length | 2048 |
Evaluation
Testing Data
Evaluated on paired blocks of 60 clean tasks and 60 drifted tasks (API argument renames).
Results
| Condition | Raw Task Success | Grounded Success |
|---|---|---|
| Clean API | 73.3% | 46.7% |
| Drift (D1) | 75.0% | 35.0% |
For full results comparing this baseline to the 8 rejected healing attempts (DPO, SFT, KL-DPO, Runtime Guard), please read the HealGuard Article.
Environmental Impact
- Hardware Type: NVIDIA T4 (16GB)
- Hours used: ~2 hours
- Cloud Provider: Kaggle
- Carbon Emitted: Negligible (estimated < 0.1 kg CO2eq)
- Downloads last month
- 90