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.5.tar.gz
(217.2 kB
view hashes)
Built Distributions
pygptj-1.0.5-cp311-cp311-win32.whl
(130.4 kB
view hashes)
pygptj-1.0.5-cp310-cp310-win32.whl
(130.4 kB
view hashes)
pygptj-1.0.5-cp39-cp39-win_amd64.whl
(155.1 kB
view hashes)
pygptj-1.0.5-cp39-cp39-win32.whl
(130.6 kB
view hashes)
pygptj-1.0.5-cp38-cp38-win_amd64.whl
(154.9 kB
view hashes)
pygptj-1.0.5-cp38-cp38-win32.whl
(130.6 kB
view hashes)
Close
Hashes for pygptj-1.0.5-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520e7c2f363fcfc1074999cbf3f211f97b72d7e977a952d594276a0ea3035752 |
|
MD5 | deb4ed61f14f801918414d4710ffef32 |
|
BLAKE2b-256 | 3ac4bd4740a19294d181d2c5616a4c9054251f2506d703c0c93ed5891860c122 |
Close
Hashes for pygptj-1.0.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a28ecd5c5e1c2e18f9cc96fcb82cb159d2066e895a9a30799fd2c1390d14de3 |
|
MD5 | fd83dc01127f4c7b4d652cb32e75ed05 |
|
BLAKE2b-256 | 270edfae30b2fae3ef28c84799ea96c675a6933c74ce880dfaf6d95d07f5be6f |
Close
Hashes for pygptj-1.0.5-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01b6d94b0397c7e8aadf79eac11d9142083397f5b0924b3e67e9d702e00a09b |
|
MD5 | 889213e2aeea36601946f4e0755831c0 |
|
BLAKE2b-256 | 428bd4a5e0b3832939792bc2fda06a04ddce50574b5272ab5d09e2ebcfc144e1 |
Close
Hashes for pygptj-1.0.5-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1becf61229a6bf4ab3d33891ba29df1d7989b06a3299cc79d489d072fc83df5 |
|
MD5 | 8044747eb2960193bc46128e697e20a6 |
|
BLAKE2b-256 | f58ffd8f8a89492b5645d06898670b23c18b9337019db33f0cfb2b8d2dc719e4 |
Close
Hashes for pygptj-1.0.5-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95757c31f0b20357c33d4491b9e3f5d8f12a19764bf2a19ff8be365bb62d1774 |
|
MD5 | 96e9880ddb68fd3e96ce6d3833be95ae |
|
BLAKE2b-256 | 92cb479549a38b76be9ce1130c7bc935c42b44361cfbcb66f8a23178b894b338 |
Close
Hashes for pygptj-1.0.5-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e7d5336c550b6ecd76b695c091170586e1342f6cb296400554cafe015c6fab |
|
MD5 | 6b4d56efd15cecab51c4118294f966ce |
|
BLAKE2b-256 | f2e7772ab5e901828d764ad7b5837b0711459f2a482d0b355d10b17fa03bd13d |
Close
Hashes for pygptj-1.0.5-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8affc6e4a56241517adbf75499970a14ff47cb77d015238d32f60c95cb4755bf |
|
MD5 | f2219bd8f5aefa3d92c6fa0a9171dfa0 |
|
BLAKE2b-256 | 42c213ad796ccf1e1665653bd8f8436db7e1e0feb3a335a2480e72972dcbb508 |
Close
Hashes for pygptj-1.0.5-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04fdb4d887f75884073c87d19ade1aa13608429186749240b5aa7b6f1d85bf6 |
|
MD5 | d4d1f5e2b48dd984d6b3cc122f5fa789 |
|
BLAKE2b-256 | dd6bf776c003a98882a6e775878cb36637425cdf9c7cffeafb1112106e588bc3 |
Close
Hashes for pygptj-1.0.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 431d2251806b09f3755010d2c8fa17d8289b515e47b12a8fb99808b878b97f99 |
|
MD5 | a5da258aff34a20398b3f4bec3787209 |
|
BLAKE2b-256 | 50a1efc1d47a7dd2f8edd9590a824c50b28400f9f392cec11c1b0e8b9a9d5912 |
Close
Hashes for pygptj-1.0.5-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ad93af4dd09c6931156dccc61d4042536254b58016cb9298cc1dffbfb47213a |
|
MD5 | ff7bf4820528d897838f881aee529594 |
|
BLAKE2b-256 | f9770ac99c3296034956f4bdf0bdbb07ee66ba2f10ef76f762dec3591e0c4bfa |
Close
Hashes for pygptj-1.0.5-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6108b856f6350157683cb08741bc58133e20d7cf917a90c4573e3e0dd6f0f599 |
|
MD5 | 03e8d7b58bd1423fb0e5bd070e5fb653 |
|
BLAKE2b-256 | 233e1bf7110627e26f46450ebc4171e3be5d480cbcdbcfb54bfb8e6d0623828d |
Close
Hashes for pygptj-1.0.5-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | becf64d308d38501c7cbbc4a3a01fb09b4c0e647b0987d6c5d4a270c13576860 |
|
MD5 | f5e572707224a141b051f16496888bef |
|
BLAKE2b-256 | a9004bca2b0266f58da853be9101e65edbf08d0329598b5bca612f899b736df7 |
Close
Hashes for pygptj-1.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a98679adec40590dc714d691850ddd76f024385d0f24b79e4c9d53ca8e449f17 |
|
MD5 | ed00bcf283cfe115e01d34cedff69e05 |
|
BLAKE2b-256 | 38168ecd276d1028df00a79234d0d05a4cb870d4edabcc4e58b42abf86279fc8 |
Close
Hashes for pygptj-1.0.5-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8acea0dfb4a33b337586586d0b99d10a289d8877bcb0c0d735277335a2dc32a3 |
|
MD5 | c7f2ad471dc92585666d7951084b7112 |
|
BLAKE2b-256 | 694af441fdba89d1766713d354bebc52b98a1389c1d1b335d6a587158d9e6b93 |
Close
Hashes for pygptj-1.0.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49aca0d547f30e28f9806ca5f65c4b4c01a6994c5eadb1a998808a01b2df4d50 |
|
MD5 | af5f727f0f479f4538016fbfd2057014 |
|
BLAKE2b-256 | ef340205f06471bc225eb185d3273705fcedc2e1dfdd3bbbf86ee6483205eb2a |
Close
Hashes for pygptj-1.0.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eee2303711d6c4e6c4fb8015e47788f4c9afa25b2331e9a050907a03a9640069 |
|
MD5 | 99d1325613759c67e7a8a32dcb44eec5 |
|
BLAKE2b-256 | 4f3b07a2e89b3c79ba0f9c75fe6a2743557ce47f06c7c6e19ddffab4cb3dcdc5 |
Close
Hashes for pygptj-1.0.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9beb693bc28641abc8a6a8b46b684a5f8537ee093d03a6efae6835f3b18cbbad |
|
MD5 | b7c1922dd7596b6b456c1db649453fc1 |
|
BLAKE2b-256 | b002eddb332447d4578c79b5a9f9813af0d3eabf0e31fa52d9cb141cf88d7563 |
Close
Hashes for pygptj-1.0.5-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcf85ef3236873b567cb001d2e8e98631ddb48bccb0f6aa5baa7db817cf3f599 |
|
MD5 | 4327ed50980117cf5cef0fcbb8014277 |
|
BLAKE2b-256 | 4cd3a4325dab02618d5c856d840738a5733dcb66a1143d0112c1e130353e1e6d |
Close
Hashes for pygptj-1.0.5-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 803b70d2960b507bdee7a2f59528a1b988c7528ec2c1c2b2f00a62e5cba0587f |
|
MD5 | cbabfe0dffca24d8992f141571d62a3f |
|
BLAKE2b-256 | 500477deef9f99f9f0e8d862e9b5d2bdb860f5156eccddc72fb5105a5232cc59 |
Close
Hashes for pygptj-1.0.5-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf946e0d025ee6416131a8e8f7f64b6f9092bcfe57101987327347362d7f206 |
|
MD5 | 3f8d678945544c5bffa6f7ef295157cd |
|
BLAKE2b-256 | c9b409c1a9ebfbe9adf20dad8c99b97bf2cd1265781363f10ef8837f14f4b3d5 |
Close
Hashes for pygptj-1.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d591ee207c7c3798bb6d0a73b936e48b690f5a8a7bb2fbab31b9e1abc6d07337 |
|
MD5 | 37afaa165c50c91771c04b61b0e39ab5 |
|
BLAKE2b-256 | 6df12d368976860124c5f3850c2843a49922c17c3cef49bc6f184a463ddfa95c |
Close
Hashes for pygptj-1.0.5-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f2a2a5b3e8661813f1dbd743ead5282e3f96f89d114f9740ad859dec84dff14 |
|
MD5 | 1d5b8ec0df1f8887792856e0bffdabdd |
|
BLAKE2b-256 | ed4ef80761e3711550ac4d087668245f13004ddd5d5583833a2211b66e3cef5b |
Close
Hashes for pygptj-1.0.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a37fea4c98727f26f23752ecb536af4e4c6cc31d1fa1f68f4602e53e22b2f7 |
|
MD5 | 0406cc0e88e8319e33f54148a8d8d256 |
|
BLAKE2b-256 | 5f25b02877938711eae16c137ca4ee328523db3c0f46e0bdacc0845df184f948 |
Close
Hashes for pygptj-1.0.5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7426bbef695abbe058e87e78333c793d669d1a8c7b50b001359374c4aac0564a |
|
MD5 | 17b0f49ca966b5854d9504bd94d861f3 |
|
BLAKE2b-256 | 1ee921e46587ee92218359630f460361f2393e5f14419d9b4d90004d5a47ca57 |
Close
Hashes for pygptj-1.0.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29984d02b0bd0b287464dc1c618ecbb21e9735fbd1bd40454331729f6e9565b0 |
|
MD5 | 4197115d84ad4f827c894991a5641fb3 |
|
BLAKE2b-256 | c48d108896dd988f9dcd5a7d00d0780bac4d6585bdc5155e2c6bf032b3a30050 |
Close
Hashes for pygptj-1.0.5-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c80604c10f41da6aa83f3a9951bdb0c8c276391ad93f6a00895e04281d7def4 |
|
MD5 | 60072acfd6ae217883e98d4ac9e27730 |
|
BLAKE2b-256 | 944f7e2254fd8c37e936debc0d371be61e8e98bae2d4ce463bea625e6dbd6694 |
Close
Hashes for pygptj-1.0.5-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acaca80bc75af4fb65065ebc4359411134eddfc436158d8911775587e6459bd7 |
|
MD5 | 39fb215693bc8c6c69912aedf76f258c |
|
BLAKE2b-256 | 758310813c657813e7b4627d5f903c1a91fabdd47d4e2e04c0bbc294ebe93a9e |
Close
Hashes for pygptj-1.0.5-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f6fcc18846807fd238dd74cf053f7e8e06613b87a25f320607fa2f80a051388 |
|
MD5 | dadd438e61ebeb5efc83d8f67b10a9de |
|
BLAKE2b-256 | 2819b8594168dd153c49ca1e356d841aa8b5bc7a563ce53183898a4b641330e7 |
Close
Hashes for pygptj-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b80293433ad94dfd4b9e2c3929ef67f10261e4119c7206890bba7cec9b72c8ad |
|
MD5 | 60d89982f5debfe907dbd7b61f3b0bdc |
|
BLAKE2b-256 | 4809d26c70766802031190b87ce4471454fc26c86e015d0fea4f5772e6c0055b |
Close
Hashes for pygptj-1.0.5-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549c8d5ec764978902bb39726fad22bcdfba94e05fc72c12e156b0a516b29850 |
|
MD5 | 13aeb9b365708da3c519444e973956ab |
|
BLAKE2b-256 | 9f1f9834d1159fc64e878ed9a2ca7269e611e63807061b74f53fbe060df550fe |
Close
Hashes for pygptj-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f3183f29341fd37ef6088cca4039ea5fb196f7baf1892020b81f09d98bae2f |
|
MD5 | c0d070ca16874dcbdcbdad80cdd599de |
|
BLAKE2b-256 | bc7943d58a79f192cd0ea97345189926b09e6fb03bdbad5f2886bb2245efeb8c |
Close
Hashes for pygptj-1.0.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3189100be8d645ccb6a1b81a8f0db93dd9e261266f81ee09aeb2267fc0f9b833 |
|
MD5 | 6db2b70e678ed309092f20b54a40bea6 |
|
BLAKE2b-256 | 20f8b2787269e385b82550fa3ebe6d669bac9b3140a45b9116c837e9b1c5aca3 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e003aa45992578ebc25403747bd212b64f4f96b43a7b18b3225f989703dcc50a |
|
MD5 | 79bb65fb3f6a119c4075b7fde21b0596 |
|
BLAKE2b-256 | 4025aa11959424fb34ee1e749d49441558fd6f78609cf5bb16944cc6903c5ec0 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e77aae7e83cbe4313bd10902c351b4a1a41a70ac2858f6a87bb94d602eecf57 |
|
MD5 | 6cc32daae8523b64336bba50b7f5cffb |
|
BLAKE2b-256 | 361189b435e8c844a87028e1c8db790bbd0ec1420e4f723b597c254a262f7b01 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 901265da75fa267d54501873f9009650b9fb233ebd463331e635705e01c150df |
|
MD5 | 8933fa4cff375a659eca9528e4012ba5 |
|
BLAKE2b-256 | f132614eac97f4a43141604979e06691b1065a4351c6ff9badc4116252b60d88 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55dc38fa16b562ef52bd94928359ff52b5190b236b0f6e1630b00a98684c4708 |
|
MD5 | 9f9a925b6c37360f58fbe32de8800df4 |
|
BLAKE2b-256 | f92f751e3124c7da5f7e849a8bf9ce1d3a7e07e0298cffa9762caec7c9ad1d76 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 812c57132be958fda41844e879ea9368d9955d9c603f04a39c26f947a4355bc2 |
|
MD5 | 0a1e96302c47c0a1b6de07f5a74e6198 |
|
BLAKE2b-256 | a121b379063003e63ff98d71a7b3da33d0cb09d07e66bf7d589efa5a2e153575 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6393d7a43a7551716827a197a279039b672dc5d389b7d9d317667ae7963ef2d7 |
|
MD5 | bcfe915767fc32e63d60f4513330db0d |
|
BLAKE2b-256 | 7ee3eeb8ac2b5e6e13ce34bcabe8603d628eb14839123b68d3a13cea25f4ac56 |
Close
Hashes for pygptj-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07a23497c51632980c30c1f9a2e43f70f4155b3bc00580e6cb7314465aabed7 |
|
MD5 | aa5a722bdc57eea3f2f334e004cf12c1 |
|
BLAKE2b-256 | 94964018bf414e33f62dca34b5d2f3b57c5469dcfe63a19cf691175f50e36b7f |
Close
Hashes for pygptj-1.0.5-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b623a54a1e9ba93bdf47771abf13c93ebd404dde5eb4ea4b0e50c90c93f1c92f |
|
MD5 | db0dbeb4ba8d0e154b10a284cb079ae9 |
|
BLAKE2b-256 | 980868332479f66d79cc14775833482cf88283b7864b65c01aeb7ff7b2cfa8a7 |