Phi Model Plugin for DashAI
This plugin integrates Microsoft's Phi language models into the DashAI framework using the llama.cpp backend. It provides a lightweight, efficient text generation system with support for quantized GGUF models.
Included Models
1. Phi-3 Mini 4K Instruct
- 3.8B parameter lightweight model from the Phi-3 family
- Designed for high-quality output with strong reasoning abilities
- Trained on synthetic and filtered public datasets
- Fine-tuned with supervised techniques and direct preference optimization
- Based on
microsoft/Phi-3-mini-4k-instruct-gguf - Uses GGUF file:
Phi-3-mini-4k-instruct-q4.gguf
2. Phi-4
- State-of-the-art open model developed by Microsoft Research
- Trained on high-quality public domain content, academic books, and Q&A datasets
- Emphasizes precise instruction-following and strong safety alignment
- Based on
microsoft/phi-4-gguf - Uses GGUF file:
phi-4-IQ3_M.gguf
Both models use the GGUF format and are compatible with CPU and GPU inference.
Components
PhiModel
- Implements the
TextToTextGenerationTaskModelinterface from DashAI - Uses the
llama.cppbackend with GGUF support - Automatically loads the correct quantized model file based on the selected model
- Performs chat-style completion with system/user/assistant messages
Features
-
Configurable text generation with:
max_tokens: Number of tokens to generatetemperature: Controls output randomnessfrequency_penalty: Reduces repetitioncontext_window: Max tokens per forward passdevice:"cpu"or"gpu"(auto-detected)
-
Efficient memory usage with quantized GGUF format
-
Automatic model loading from Hugging Face
-
Compatible with chat-style prompts (role-based message format)
Model Parameters
| Parameter | Description | Default |
|---|---|---|
model_name |
Model ID from Hugging Face | "microsoft/Phi-3-mini-4k-instruct-gguf" |
max_tokens |
Maximum number of tokens to generate | 100 |
temperature |
Sampling temperature (higher = more random) | 0.7 |
frequency_penalty |
Penalizes repeated tokens to encourage diversity | 0.1 |
context_window |
Maximum context window (tokens in prompt) | 512 |
device |
Device for inference ("gpu" or "cpu") |
Auto-detected |
Requirements
DashAIllama-cpp-python- Model files from Hugging Face:
Notes
This plugin uses the GGUF format, introduced by the llama.cpp team in August 2023.
GGUF replaces the older GGML format and is optimized for fast inference and low memory usage.
Both Phi-3 Mini and Phi-4 models have undergone supervised fine-tuning and preference optimization to improve instruction adherence and safety.
⚠️ These models are designed for inference only and are not intended for fine-tuning.
Metadata
Release files for dashai-phi-model-package 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dashai_phi_model_package-0.0.2.tar.gz | 19.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dashai_phi_model_package-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / dashai_phi_model_package-0.0.2.tar.gz
| Download URL | dashai_phi_model_package-0.0.2.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f99ae114f856bc34560ad7c2f172802cfcb7fbb8acfc3e5c15643c54137028cd
|
|
BLAKE2b-256 checksum How to use checksums |
059618f42d6f1e8c516c9ffaa4e030adff8fcbd31d1a08741d66a89e03fa4987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / dashai_phi_model_package-0.0.2-py3-none-any.whl
| Download URL | dashai_phi_model_package-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b5f3c669da1a4506e5b319c30e307f9029ce29d5ad808d8a3e9fdf409f5e2ed
|
|
BLAKE2b-256 checksum How to use checksums |
39374245a057a451f637d49505ca9355c52bf4eadc3cbc2c5c30b22816afa39b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Security for dashai-phi-model-package 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.