Cosmian Python bindings for ggml
This library provides python bindings for the examples models of ggml.
Using this library, you can deploy state-of-the-art LLMs on Intel SGX hardware with Cosmian MSE.
Available models architecture
from cosmian_py_ggml import GPTNeoX
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
model = GPTNeoX("ggml_model_path")
res = model(tokenizer.encode(query))
print("Response:", tokenizer.decode(res))
from cosmian_py_ggml import Falcon
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-40b")
model = Falcon("ggml_model_path")
res = model(tokenizer.encode(query))
print("Response:", tokenizer.decode(res))
from cosmian_py_ggml import MPT
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mosaicml/mpt-30b")
model = MPT("ggml_model_path")
res = model(tokenizer.encode(query))
print("Response:", tokenizer.decode(res))
Build from sources
git clone --recursive git@github.com:Cosmian/cosmian_py_ggml.git
scripts/build.sh
Metadata
Release files for cosmian-py-ggml 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cosmian_py_ggml-1.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
Release files / cosmian_py_ggml-1.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cosmian_py_ggml-1.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 330.3 kB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
7c9b9be6a8f0493f02a0f2cd5885882e680466a49c86029a9656f4b40c9b7113
|
|
BLAKE2b-256 checksum How to use checksums |
af377b040acd4e7fab7ab448b3621a849838b70f6a8335e61b562a90667487fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for cosmian-py-ggml 1.2.0
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.