hugging-face-model-trainer

Fail

Audited by Runlayer on Mar 11, 2026

Risk Level: HIGH
Scan Summary
Max Score
93%
Files
17
Flagged
15
Chunks
27
Flagged Files (15)
hugging-face-model-trainer/scripts/unsloth_sft_example.pyHIGH
92.7%

Supply Chain Compromise

Privilege Escalation

Data Exfiltration

Shadow Persistence

Resource Abuse

hugging-face-model-trainer/SKILL.mdHIGH
90.5%

Prompt Injection

Privilege Escalation

Shadow Persistence

Guardrail Bypass

Supply Chain Compromise

Context Poisoning

hugging-face-model-trainer/references/gguf_conversion.mdMEDIUM
89.7%

Risky tool definition detected

- All dependencies in PEP 723 header - All build steps included - Clear error messages **Prevented failures:** Missing tokenizer libraries, build tool failures ## References **In this skill:** - `scripts/convert_to_gguf.py` - Complete, production-ready script **External:** - [llama.cpp Repository](https://github.com/ggerganov/llama.cpp) - [GGUF Specification](https://github.com/ggerganov/ggml/blob/master/docs/gguf.md) - [Ollama Documentation](https://ollama.ai) - [LM Studio](https://lmstudio.ai)

hugging-face-model-trainer/references/hub_saving.mdMEDIUM
87.5%

Data Exfiltration

hugging-face-model-trainer/references/troubleshooting.mdMEDIUM
86.6%

Risky tool definition detected

Prompt Injection

hugging-face-model-trainer/references/training_patterns.mdMEDIUM
84.6%

Risky tool definition detected

TRL/Accelerate handles distribution automatically: ```python hf_jobs("uv", { "script": """ # Your training script here (same as single GPU) # No changes needed - Accelerate detects multiple GPUs """, "flavor": "a10g-largex2", # 2x A10G GPUs "timeout": "4h", "secrets": {"HF_TOKEN": "$HF_TOKEN"} }) ``` **Tips for multi-GPU:** - No code changes needed - Use `per_device_train_batch_size` (per GPU, not total) - Effective batch size = `per_device_train_batch_size` × `num_gpus` × `gradient_accumulatio

hugging-face-model-trainer/scripts/train_sft_example.pyMEDIUM
84.1%

Supply Chain Compromise

Data Exfiltration

hugging-face-model-trainer/scripts/convert_to_gguf.pyMEDIUM
82.0%

Shadow Persistence

Supply Chain Compromise

Resource Abuse

Data Exfiltration

Unauthorized Communication

hugging-face-model-trainer/scripts/train_grpo_example.pyMEDIUM
81.9%

Data Exfiltration

Unauthorized Communication

Resource Abuse

Supply Chain Compromise

hugging-face-model-trainer/scripts/dataset_inspector.pyMEDIUM
81.5%

Supply Chain Compromise

hugging-face-model-trainer/references/trackio_guide.mdMEDIUM
79.0%

Data Exfiltration

Supply Chain Compromise

hugging-face-model-trainer/scripts/train_dpo_example.pyMEDIUM
78.3%

Data Exfiltration

Supply Chain Compromise

hugging-face-model-trainer/references/training_methods.mdMEDIUM
76.4%

Risky tool definition detected

hugging-face-model-trainer/references/reliability_principles.mdLOW
71.4%

Tool passed security scan

Risky tool definition detected

### How to Apply **Known-good test inputs:** ```python # For training TEST_DATASET = "trl-lib/Capybara" # Small, well-formatted, widely used TEST_MODEL = "Qwen/Qwen2.5-0.5B" # Small, fast, reliable # For GGUF conversion TEST_ADAPTER = "evalstate/qwen-capybara-medium" # Known working model TEST_BASE = "Qwen/Qwen2.5-0.5B" # Compatible base ``` **Testing workflow:** 1.

hugging-face-model-trainer/references/unsloth.mdLOW
54.4%

Tool passed security scan

Passed Files (2)Click to expand
hugging-face-model-trainer/references/hardware_guide.mdOK
22.7%

Tool passed security scan

hugging-face-model-trainer/scripts/estimate_cost.pyOK
19.3%

Tool passed security scan

Audit Metadata
Max File Score
93%
Classification
KNOWN_SERVER_ALL_UNKNOWN
Files Scanned
17
Files Flagged
15
Chunks Analyzed
27
Analyzed
Mar 11, 2026, 06:20 PM
Security Audit — runlayer — hugging-face-model-trainer