lora-training-2026
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill downloads standard machine learning libraries, including
transformers,peft,trl, andbitsandbytes, from official package registries. It also installs theunslothlibrary directly from its official GitHub repository (github.com/unslothai/unsloth.git). These are well-known resources within the AI research community. - [COMMAND_EXECUTION]: Several scripts utilize subprocess calls to perform essential tasks such as hardware detection (
nvidia-smi,sysctl), remote environment synchronization (ssh,rsync), and cloud-based training orchestration (modal). These operations are consistent with the skill's primary purpose of facilitating model training across various local and cloud environments. - [DYNAMIC_EXECUTION]: The skill supports the
trust_remote_codeparameter when loading models from Hugging Face. This feature allows the execution of arbitrary modeling code provided by a model's author. The implementation correctly defaults this tofalseand includes explicit documentation warnings (e.g., inscripts/train_lora.pyandassets/run.example.yaml) about the risks of enabling it. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data in the form of training datasets.
- Ingestion points: Datasets in JSONL format are loaded in
scripts/prepare_dataset.py,scripts/visualize_dataset.py, andscripts/train_lora.py. - Boundary markers: The skill expects structured data and includes logic in
scripts/prepare_dataset.pyto detect and warn about "chat-template residue" or potential label leakage. - Capability inventory: The skill has the capability to execute shell commands via
subprocess.runand perform model training/inference viatorchandtransformers. - Sanitization: While the scripts validate JSON structure and verify that assistant responses are properly formatted, they do not sanitize the natural language content of the training data itself, which is a standard characteristic of fine-tuning tools.
Audit Metadata