Python bindings for the GGML GPT-J Laguage model
Project description
PyGPT-J
Official supported Python bindings for GPT4All-J language model based on ggml.
Table of contents
Installation
- The easy way is to use the prebuilt wheels
pip install pygptj
- Build it from source:
git clone --recursive https://github.com/abdeladim-s/pygptj && cd pygptj
pip install .
Usage
from pygptj.model import Model
def new_text_callback(text):
print(text, end="")
model = Model('./models/ggml-gpt4all-j.bin')
model.generate("Once upon a time, ", n_predict=55, new_text_callback=new_text_callback)
If you don't want to use the callback
, you can get the results from the generate
method once the inference is finished:
generated_text = model.generate("Once upon a time, ", n_predict=55)
print(generated_text)
GPT4All-J Model
Download the GPT4All-J model.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygptj-1.0.8.tar.gz
(217.8 kB
view hashes)
Built Distributions
pygptj-1.0.8-cp311-cp311-win32.whl
(140.2 kB
view hashes)
pygptj-1.0.8-cp310-cp310-win32.whl
(140.2 kB
view hashes)
pygptj-1.0.8-cp39-cp39-win_amd64.whl
(169.3 kB
view hashes)
pygptj-1.0.8-cp39-cp39-win32.whl
(140.3 kB
view hashes)
pygptj-1.0.8-cp38-cp38-win_amd64.whl
(169.1 kB
view hashes)
pygptj-1.0.8-cp38-cp38-win32.whl
(140.3 kB
view hashes)
Close
Hashes for pygptj-1.0.8-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd83777b43322702da16c62b5e734b47e30fc531682a77140978762cd6d8e3f |
|
MD5 | 0e55058a8bca2adf9909923b7cd050ee |
|
BLAKE2b-256 | 2d8971b81cff0e3593e4ff8993a40a77c754b8ba83da0018820691f1857359d0 |
Close
Hashes for pygptj-1.0.8-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b7b214294e6b60174be151d5b7c92d4bce668d842ef3c69fe36e4a3fd4dc774 |
|
MD5 | 30acd95cfed612c8b465b475d9a3a09a |
|
BLAKE2b-256 | 59bb504f77f4884aa0a20a91e78490d4ad8b70b602d06376379825fd2446522e |
Close
Hashes for pygptj-1.0.8-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac6b91a4a498ad2f33c02668a94f354723859046c41462795c16df72ffca888 |
|
MD5 | 38fe1bdf899550d8ad7fc2f33fe223c6 |
|
BLAKE2b-256 | 5f48e08dca4b73d32ac6de279805b11ffd6bf792006768a0a8101b349f85a4ca |
Close
Hashes for pygptj-1.0.8-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83dcdc89dbdf2ff44a87494cf8d988c95965f1684673ed9773df0022b8d39fc |
|
MD5 | de5afc13f9fe226a9a0a59a623e7a939 |
|
BLAKE2b-256 | c3b03bb4b6cca515f12a8e8d2dc9afdde18fb58fd063b51c4716d6e400affd4d |
Close
Hashes for pygptj-1.0.8-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c55f744a896c5560106c1cf4368a747f3a4267179b02b08f45c602a0b853a7 |
|
MD5 | 7eac697739e16abf0865446a1f9bd101 |
|
BLAKE2b-256 | b17e7390c922647c1bd2b51ee51e2f42b4419d2ed1534847f9b4dfee6bac93f5 |
Close
Hashes for pygptj-1.0.8-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b8458f0c6d04a52f5f59aaf7ddf32a4cc40dc3fe630a4ee023c573f876c6b43 |
|
MD5 | b886fa73cbeed3630630750be2bbf169 |
|
BLAKE2b-256 | a9eacc00eb2d0db05b565bcb30c30cc1d5b287d88c731de759f635114ef5d20b |
Close
Hashes for pygptj-1.0.8-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee11450c78f8de7afad94bb10611b62daffe443c216062da0e785a1f521299a7 |
|
MD5 | 3729659364240f4f5e4456595ba12439 |
|
BLAKE2b-256 | 75eb59817193452da9609506a06967a4f187b0fd7fff79985d458b87bcbf8a04 |
Close
Hashes for pygptj-1.0.8-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c177d2783b41f179ec9ce535d16327eddc4d1e7a94778f9e0fc89682f3633024 |
|
MD5 | ae03f38303ab73742ceaef1bc7f1b199 |
|
BLAKE2b-256 | d9ae96d71148e223e8bda1fae144b7cf068bd19cbde6303fad34d3fcbef24bea |
Close
Hashes for pygptj-1.0.8-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d83236437f8ac2fb23f574461b5819d8b8fa2911829fa329f86aeb48558192c |
|
MD5 | 4b9ec1a1914676d9b43e5966b5bf6374 |
|
BLAKE2b-256 | 6702a9b126ab529a27b1d31178b5888ab17d725b2b3672cf2d30629c1de5ce78 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22b5fa091ad15b91fd1cb1d2ed787ed12830c8087da612e966263402356886c |
|
MD5 | d1b4c1ad94c14f12c96362a6691f2712 |
|
BLAKE2b-256 | 5719ec73aa7001b2d3567fda0b57a319ea6a4394996a5b5c517d383a4ae5bde0 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78dccdad6f45162ba0490cb0aa72f2b0d0aa251ab24f4f54c039077d9cd83ce |
|
MD5 | 196971c836338adc0afcc081bc497f54 |
|
BLAKE2b-256 | 8346e4be351de48b1ca794e03b17896f819ca79e49617abe842eacabfc09c522 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f21cd1112653d02ef36429393ed4bea7127b14e3afa27cb41a8458caf1d16de |
|
MD5 | e255c570462cf83ba49a8cf7c0c3ad4f |
|
BLAKE2b-256 | 25b3c48463c55476d71cee81dbc844124c7a6d50189e077b8df8e99da8a4c6b1 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4e9dc5abb0e41b5d01d9109fa65e487c8b13b4ba3bf0c70b88494db97624a7 |
|
MD5 | f235b1a3b93764e11350bb8eba068021 |
|
BLAKE2b-256 | 7f61c30941dac150b531824a5f97f3b9961b6b8b1b86b94a4fa7ca29e67e87f1 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db427eb026c95aa51870c1220638a20ee64099dff17d8affcdfb6ce4bbaeff9a |
|
MD5 | ab71b0d95d12e4cfa39b7b33df5bb78b |
|
BLAKE2b-256 | 0ddd4a3f2c536cc99653a3ebd074536c52a2256d26b686e8cec8c96394b09955 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb35c665960e39f756e676d296963e708a8c692823ed430cdf8142b9d5f60c02 |
|
MD5 | d173f35b6fe38429db7ad8eb9a41c3cd |
|
BLAKE2b-256 | c30d048b2b2d3c9e2ebbe4fca6a8a4823e5ca06abc44f6e4218fb7363dd6b925 |
Close
Hashes for pygptj-1.0.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42af22d8df061e5c79830a41fd966dec036e4ee16ddd17a6484083e87c99254a |
|
MD5 | 60bf10157862d9b3051f3e31d641e04a |
|
BLAKE2b-256 | 137539028e6bc7b1406a2a72d43566e8ac1987badd89e883f38813414148a9cb |
Close
Hashes for pygptj-1.0.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8bf9da30af9bd1ce06fc1939b0f921696544167861167e731aaf957bcf9d9fc |
|
MD5 | 7c3dda74a12ab2b8e0a978886de020f2 |
|
BLAKE2b-256 | 363dbffbdeeb80229924b37465833785e2706556484ded5bf98691f936f438c9 |
Close
Hashes for pygptj-1.0.8-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ea5e3250b87a170fee04441f970e28df3804707dac34d474aaee4b8517e0ce |
|
MD5 | e47a5325c8da9a8485d88ac6b32a8cb1 |
|
BLAKE2b-256 | 6edcb1a0b1a2c08d502646652ab69dc23d2eca013192eceaa6c1d19f2b456773 |
Close
Hashes for pygptj-1.0.8-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aab4768b1794ecb394e59d3534a073f9f9aab208598e68aed4a8ea285424a38 |
|
MD5 | 560177078757bdb610d0bab475553e3e |
|
BLAKE2b-256 | f08577978d414bdbfb789f1dafd90e3141f7c0f8b2a348e571f5e02832fd883c |
Close
Hashes for pygptj-1.0.8-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdceba496c9735f3f4aaa700210d4e7aa80a87fcfbb41fa5a3743e5eaacd53f8 |
|
MD5 | ec928bca6e23079c2e1f4f4e8233c886 |
|
BLAKE2b-256 | bb50e3a0607a6a0c8402182182383fa3afb33ead2be776f90b4753def4dce6f6 |
Close
Hashes for pygptj-1.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d2e35241b0b574397df883941a0c3edc7a28023de2306a23ae521fff92620f |
|
MD5 | e2e080fac5190794126911f5b3cfc37e |
|
BLAKE2b-256 | 5fe62e01deee1c2eeda7429fa37a7a354b9c2bcd03b1b481b7ff54d3454da07e |
Close
Hashes for pygptj-1.0.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8b232a2bc6247e43aa1dd0d571211bd846a4bec4e9fa18e96ad6efac8e8f71 |
|
MD5 | ad3ba05ee3b38f2fed015522491f9fd8 |
|
BLAKE2b-256 | 205e029317ba66adc52580fbf5810084660dd983a61f98806bd3064386fccf6a |
Close
Hashes for pygptj-1.0.8-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d02540ff994ea031cd5b9ca29797fa1481326bbd5f9991cd2e9b114261d21d7a |
|
MD5 | 209b86f94ef5fa2e9a6e65eb98bff25d |
|
BLAKE2b-256 | 50185d3f22cf10de9398e0ada9a20167eb041c15721c6a3d2758c2a80a7ad78d |
Close
Hashes for pygptj-1.0.8-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83535c30887819313c9ecffd12bc0f64ddd53eb11305808c7a989550677cb290 |
|
MD5 | d2a6c5d5bcc95a0d8e50e3f63b43b641 |
|
BLAKE2b-256 | 9684af66f160446e8bc6a526ea49ea4a7cbb965cd4747b911a7765a15aeb858c |
Close
Hashes for pygptj-1.0.8-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb0b44a0f4479ed595d90090819fde4a9b31f53474b29df4abbaa91873ce0df |
|
MD5 | 5b28490551bc7bffaf4a6cf4430022a3 |
|
BLAKE2b-256 | a47402c05f6668965dd2c7f69059b4a53860f126314deadfaf74cc588d02655e |
Close
Hashes for pygptj-1.0.8-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb8249ae7b5e6313e81d6d59967f1dfe68be6b0e2dfe3d0ced303e824ae538a6 |
|
MD5 | 084b8219ca8339ef11532f0b5c6e23ce |
|
BLAKE2b-256 | 3d9b95c0dec8bd295e73c98560b5a24ec8d5ba706df73a8c3f94289ab3f465af |
Close
Hashes for pygptj-1.0.8-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60125b5db57fd5e04b848268b6103acfcbdf3a6d2410ec93bd9de4e7626e28aa |
|
MD5 | 09b585363f953cffe7f6160ce704798c |
|
BLAKE2b-256 | 63e89ca7978056320dcb8853bb907a9d8cba06e72544624fe22e854b01aee0f1 |
Close
Hashes for pygptj-1.0.8-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cebf9ceedbda2be236057be1a774dfda70d5dd34a586c1189bd89ccbd0dd2c13 |
|
MD5 | de7a57f657fdfd08eb38936aa414e039 |
|
BLAKE2b-256 | 469c35b6a13e5b6ce2c0d67b81ed8827e890ed26e6177b6f0de68103ca3c229e |
Close
Hashes for pygptj-1.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55459e1d37bc2eb6125a9de783ab29879909c930895102476a775b4b0725df5 |
|
MD5 | f2bc1ff4cfab5a6305073874d7060373 |
|
BLAKE2b-256 | ce9267f6398a3fac650396339efaf3875d375cefbbe34f7d29fbe90ed756ce8e |
Close
Hashes for pygptj-1.0.8-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c7b4c4a86f69764d4ff876be22838b0fcdd1ea7e674f0d62b451c0314f6f6dc |
|
MD5 | e25ed3b76429b3040d58dbaeaca963c7 |
|
BLAKE2b-256 | 124d6a2d300ab39757629339b47747c56958df8ea8a222033eee2f51f6545631 |
Close
Hashes for pygptj-1.0.8-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a50bc48991259a445e432802a7bcd0f4787243c3a2ebd3036f765d1a2030bca7 |
|
MD5 | 102c8a478775f3b09c0c2bfb948892df |
|
BLAKE2b-256 | 51fd2022659ebc1162f502311cbe233c81c0cd1c1ff3d4d6352519cb0c833b86 |
Close
Hashes for pygptj-1.0.8-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c775af4e9d5aede6883d4f3a037ab56d8331819625311664a21830314e8c1cd0 |
|
MD5 | 7036d24d9b179c2e27a3e6ae79e21886 |
|
BLAKE2b-256 | 5a81aa36b9c51c9f0fa4a3915dd1a2406def337a2ae6ee84c53ffd23425b59a1 |
Close
Hashes for pygptj-1.0.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a4ce2f6822088eb84b39a20adb976f8bbad8eac1964a3e0d0f343fedb1dd40 |
|
MD5 | 3138c3235936d01255c4dd79916f031b |
|
BLAKE2b-256 | 514d0dfcf3d7e45586b8a50f55b8b715319fae71432e5b362a4570186d9e584b |
Close
Hashes for pygptj-1.0.8-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0425422c0e863f273c2eab1e6b76440bdfdbc4fe76c2e48ddf482a58f859c28d |
|
MD5 | e3b2305159af5d1fa6517b8044cb1fae |
|
BLAKE2b-256 | ee26ad114dbf48e652867de7807ed5065cc9d57632896539e00bae495ddc2410 |
Close
Hashes for pygptj-1.0.8-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 417213fff88af2dbf0aaa858ea60f3d625de75788440c443493348a6230109d0 |
|
MD5 | 018bcccc51500a824188e944bd34735e |
|
BLAKE2b-256 | 573332ec6d8fd4a67c9d2daac7e95f2a008f8a2c1bba767524ba5c5afd39f4fb |
Close
Hashes for pygptj-1.0.8-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42bbe917f5aab1bf8446006ed36f93accd59b96066bf1a075f0cf8124200acba |
|
MD5 | c0a4bca41b35518a0a95d525e4c57962 |
|
BLAKE2b-256 | 5480f85bb4f76552ec8155d54bbaf6e230c972bd5c29f8e46e40dc77da628886 |
Close
Hashes for pygptj-1.0.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a581e342f50c646bf437092ca70ca4ffcdc9b8ef9db1a9eb09ea1f70ffc4959a |
|
MD5 | 65afd36616e2cf3141b57af450e11f76 |
|
BLAKE2b-256 | 968ea9f9d052c3001335e1e5677789ac02457f8bd128ec32ed926e620e7f671a |
Close
Hashes for pygptj-1.0.8-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28231f371c4c4a487f8437cf11f8844277683dfa07394a08718ee6fda80813cd |
|
MD5 | 9aaf9d3fed55b3a266bd07c230b9ea98 |
|
BLAKE2b-256 | 1e5de9f1106ec4799c8e713585e1d0bc33405710a42f9fd44106ced0d61e2732 |
Close
Hashes for pygptj-1.0.8-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677fc1ed2b4dd6badc36c5c5c7b07582c7e86d88331b98beb32dbd07d0f9e76e |
|
MD5 | 439d777bee66eb1bff407e161b6cb731 |
|
BLAKE2b-256 | a47cdbd3d99a69641b7172c64a70c6c274904d5afeb46584d41b28dd88fc9768 |
Close
Hashes for pygptj-1.0.8-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888eff3f745aaa862c410fb6423f157f5f0667e4392e7882766948f07a4fab06 |
|
MD5 | 7944947b8a051abe4d579e58385ab89f |
|
BLAKE2b-256 | 5aa2ae5be89ac1e9256ca1a0fcba6f4c4d3da9f68f3ad0362f7164183c0be334 |