Hugging Face Rules
Hugging Face CLI for downloading models, managing datasets, and deploying ML pipelines from the terminal.
3 rules
API Token Security Rules
Beginner
Security rules for HuggingFace API tokens — storage, rotation, permission scoping, environment variable usage, and preventing token exposure in code and logs.
globs: **/*.py, **/.env*, **/.gitignore
api-tokens, security, environment-variables, authentication
View Rule
Dataset Formatting Standards
Intermediate
Enforce consistent dataset formatting for HuggingFace — column naming, instruction format, train/test splits, and metadata requirements for reproducible ML experiments.
globs: **/*.py, **/*.jsonl, **/*.csv
datasets, formatting, standards, instruction-tuning
View Rule
Model Loading Best Practices
Intermediate
Enforce safe and efficient model loading patterns — device mapping, memory management, quantization configuration, and error handling for HuggingFace Transformers models.
globs: **/*.py
model-loading, memory-management, quantization, device-mapping
View Rule