Python bindings for GGML
Project description
Cosmian Python bindings for ggml
This library provides python bindings for the examples models of ggml.
Available models architecture
from cosmian_py_ggml import gpt_neox
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
model = gpt_neox.load_model("ggml_model_path")
res = gpt_neox.generate(model, tokenizer.encode(query))
print("Response:", tokenizer.decode(res))
gpt_neox.free_model(model)
Build from sources
git clone --recursive git@github.com:Cosmian/cosmian_py_ggml.git
scripts/build.sh
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cosmian_py_ggml-0.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6694bea42274dee0b770703fc425f28b2085b4294990cfe18a1378d9c38d7d42 |
|
MD5 | 3574a7cbf49615501520b0f94da2a429 |
|
BLAKE2b-256 | 0f525d14b8efbbf6f7224cbae582a3e5c4fe0f8ec07f53d1ead81c460c32d079 |