phi2-mps
An opinionated CLI to use Microsoft Phi-2 Model on your macOS!
You should have at least 8GB of memory to run this SLM on Apple silicon
Start
Install phi2-mps with pip:
pip install phi2-mps
Download Phi-2 Model with this url:
# this may take a while,cause the model size is about 5.18G
wget https://huggingface.co/AlexWuKing/atomgradient_models/resolve/main/weights.npz
Run inference from any path on your computer:
# [weights.npz] should be the download path of the model file
phi2-mps --model weights.npz --prompt "Hi how are you" --max_tokens 256
CLI Options
The whisper-mps repo provides an all round support for running Whisper in various settings. More command-line support will be provided later
--model MODEL-PATH
Local model file path where you put the weights file
--prompt PROMPT
The prompt will send to model to gen tokens
--max_tokens MAX-TOKEN
The Total number of tokens will be replied to you
WE ARE HIRING
refer here: https://daxiang.feishu.cn/docx/LluCd7J38o9U5pxN3kdcpSh6nEh
Metadata
Release files for phi2_mps 0.0.4
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 | Actions |
|---|---|---|---|---|
| phi2_mps-0.0.4.tar.gz | 3.9 kB | Without provenance | Details for phi2_mps-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phi2_mps-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for phi2_mps-0.0.4-py3-none-any.whl |
Total release size: 8.6 kB
Release files / phi2_mps-0.0.4.tar.gz
| Download URL | phi2_mps-0.0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99779c7352e9b210fa1784b27e8cf6de2f5930bf4f3b1284cfe8fb7e8f0d1b5c
|
|
BLAKE2b-256 checksum How to use checksums |
09e50bd262153faf6ce2d033ce76a935a28a415780658bcac4be1f299c645324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.11.0 CPython/3.12.0
|
Release files / phi2_mps-0.0.4-py3-none-any.whl
| Download URL | phi2_mps-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4aead08faa56b1f5d06b6e8cd7d6558633c5982b60554d825e3cbb5b2bfdc0d
|
|
BLAKE2b-256 checksum How to use checksums |
152bfebfa19898ea2d2af39ccda632fefc118c72abf498ff5088f864a56bf849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.11.0 CPython/3.12.0
|
Security for phi2_mps 0.0.4
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.