Phi-3-Small
Phi-3-Small
Phi-3-Small is Microsoft’s 7B model using a distinct Phi3SmallForCausalLM architecture with blocksparse attention, separate from the standard Phi-3 family.
Available Models
- Phi-3-small-8k-instruct: 7B, 8K context
- Phi-3-small-128k-instruct: 7B, 128K context
Architecture
Phi3SmallForCausalLM
Example HF Models
Try with NeMo AutoModel
Install NeMo AutoModel and follow the fine-tuning guide to configure a recipe for this model.
1. Install (full instructions):
2. Clone the repo to get example recipes you can adapt:
3. Fine-tune by adapting a base LLM recipe — override the model ID on the CLI:
Replace <MODEL_HF_ID> with the model ID from Example HF Models above.
Run with Docker
1. Pull the container and mount a checkpoint directory:
2. The recipes are at /opt/Automodel/examples/ — navigate there:
3. Fine-tune:
See the Installation Guide and LLM Fine-Tuning Guide.
Fine-Tuning
See the LLM Fine-Tuning Guide.