mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-02-12 14:42:48 +00:00
1.2 KiB
1.2 KiB
Infrastructure
This directory exists to contain the foundation model (pre-trained generative language model). The foundation model files are ignored by git.
Model Choice
The foundation model for this project needed to work under multiple constraints:
- Repo storage limits: Even with Git LFS enabled, GitHub restricts repository size to 5GB (at least for the free tier).
- Build system storage limits: Standard Linux runners in GitHub Actions have a 16GB SSD.
The CPU-optimized microsoft/Phi-3-mini-4k-instruct-onnx model met this storage space requirement.
Provisioning the Foundation Model
The foundation model dependency is loaded differently for local development vs. the build system:
- Local: The model is downloaded once by the
./run.shshell script at the project root, but excluded in.gitignoresince it's too large for GitHub's LFS limitations. - Build System: The model is downloaded on every workflow run with
huggingface-cli.