--- license: apache-2.0 base_model: Qwen/Qwen2.5-14B-Instruct tags: - finops - aws - terraform - cloud-governance - qlora - peft language: - en - es pipeline_tag: text-generation library_name: peft datasets: - ccortezb/finoptix-training-data model-index: - name: FinOptix-14B results: [] --- # โ˜๏ธ FinOptix-14B **Your FinOps architect in 14 billion parameters.** A QLoRA fine-tuned Qwen 2.5 14B model specialized in AWS Cloud Governance, FinOps Cost Optimization, and Infrastructure as Code (Terraform HCL) auditing. Developed as a submission for the **[Hugging Face Build Small Hackathon](https://huggingface.co/build-small-hackathon)**. ## ๐Ÿš€ Key Capabilities - **Terraform HCL Auditor** โ€” Scans IaC for cost waste, governance violations, rightsizing opportunities. Outputs compliant code. - **AWS Cost JSON Parser** โ€” Extracts anomalies, burn rates, and actionable insights from Cost Explorer / Anomaly Detection payloads. - **BYaML Governance Engine** โ€” Validates architecture YAML against a 38-type component catalog and 13 governance policies. - **FinOps Q&A** โ€” Expert answers on Reserved Instances, Savings Plans, tagging strategies, unit economics, and more. ## ๐Ÿ› ๏ธ Training Details | Parameter | Value | |-----------|-------| | Base Model | | | Method | QLoRA (4-bit NF4, double quantization) | | LoRA Config | r=16, alpha=32, dropout=0.05, target_linear=True | | Hardware | NVIDIA A100-80GB (Modal) | | Duration | ~40 minutes | | Epochs | 3 | | Dataset | 265 gold synthetic examples (FinOps, Terraform, AWS Cost, BYaML) | | Sequence Length | 2048 tokens | | Optimizer | paged_adamw_8bit, lr=2e-4, cosine schedule | ## ๐Ÿ“Š Dataset Composition | Category | Count | Description | |----------|-------|-------------| | Terraform HCL | 100 | Audit + refactor (rightsizing, tags, encryption, lifecycle) | | AWS Cost JSON | 80 | Anomaly detection, budget alerts, cost-by-service | | BYaML Governance | 50 | Schema validation, policy checks, relationship verification | | FinOps Q&A | 15 | Deep expert answers (frameworks, strategies, tooling) | | Bash/Python Scripts | 20 | Real boto3 + bash for cloud automation | All data is **100% synthetic** โ€” no client or proprietary information. Modeled after real-world AWS patterns. ## ๐Ÿ’ป Usage ### With PEFT (recommended) ## ๐ŸŽฏ Demo Try it live: **[FinOptix-14B Space](https://huggingface.co/spaces/build-small-hackathon/finoptix14b)** ## ๐Ÿ•๏ธ Hackathon Context - **Track:** Backyard AI โ€” solving a real FinOps problem for my own startup (Brickstore AI) - **Constraint:** โ‰ค 32B parameters (this model is 14B โœ…) - **Builder:** Carlos Cortez ([@ccortezb](https://huggingface.co/ccortezb)) โ€” AWS Community Hero, Lima, Peru - **Badges:** ๐ŸŽฏ Well-Tuned ยท ๐ŸŽจ Off-Brand ยท ๐Ÿ““ Field Notes ## โš–๏ธ License Apache 2.0 โ€” inheriting from Qwen 2.5 base model license. ## ๐Ÿ™ Acknowledgments - [Qwen Team](https://huggingface.co/Qwen) for the exceptional base model - [Modal](https://modal.com) for 50 GPU credits (training infrastructure) - [Hugging Face](https://huggingface.co) for hosting and hackathon organization - [Axolotl](https://github.com/axolotl-ai-cloud/axolotl) for the training framework