Instructions to use lattice-ai/phi-3-mini-private with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lattice-ai/phi-3-mini-private with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lattice-ai/phi-3-mini-private", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Lattice Phi-3 Mini Private
Privacy Tier: wrapped | Parameters: 3.8B | Context: 4,096 tokens | VRAM: ~6GB
Microsoft Phi-3 Mini (3.8B) β surprisingly capable small model wrapped with Lattice privacy. Runs on laptops and edge devices. Perfect for private on-device inference where VRAM is limited.
Privacy Guarantees
| Feature | Status |
|---|---|
| Sandboxed inference (no network egress) | β Yes |
| PII output guardrails (email, SSN, CC, etc.) | β Yes |
| Encrypted inference logs | β Yes |
| Zero telemetry | β Yes |
| Differential privacy (DP-SGD) | β Wrapped only |
Quick Start
pip install ltce
ltce pull lattice-ai/phi-3-mini-private
ltce serve lattice-ai/phi-3-mini-private --port 8080 --sandbox
from ltce import Lattice
lt = Lattice()
lt.serve("lattice-ai/phi-3-mini-private", port=8080, sandbox=True)
The model serves an OpenAI-compatible API at http://localhost:8080/v1/chat/completions.
What Does "Wrapped" Mean?
This model uses the original microsoft/Phi-3-mini-4k-instruct weights β no additional training has been done.
What Lattice adds is the privacy serve layer:
- π Sandbox mode β all outbound network connections are blocked during inference
- π‘οΈ PII guardrails β model output is scanned for emails, phone numbers, SSNs, credit card numbers, API keys
- π Encrypted logs β inference logs are AES-256-GCM encrypted at rest
- π« Zero telemetry β HuggingFace telemetry, W&B, MLflow all disabled
For models with mathematical privacy guarantees (DP-SGD training), see our hardened tier models.
Capabilities
general, reasoning, instruct
Base Model
microsoft/Phi-3-mini-4k-instruct
License
MIT
Built with Lattice β privacy-first local AI.
Model tree for lattice-ai/phi-3-mini-private
Base model
microsoft/Phi-3-mini-4k-instruct