A lightweight GPT-style transformer for research and inference.
Project description
minigpt
Official pip package for the MiniGPT series.
pip install minigptai
from minigpt import load_model, generate
from tokenizers import ByteLevelBPETokenizer
model, vocab, merges = load_model("minigpt0")
tokenizer = ByteLevelBPETokenizer(vocab, merges)
prompt = "What is a neural network?"
generate(model, tokenizer, prompt)
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
minigptai-0.1.0.tar.gz
(1.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minigptai-0.1.0.tar.gz.
File metadata
- Download URL: minigptai-0.1.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbdcdf3b1563e01e80e279b2b92d43b2b525ff9b0dcb22e26d172cca7439cb17
|
|
| MD5 |
72f0e5e4ce70ba1d0bbb172fd0e0e1ff
|
|
| BLAKE2b-256 |
b578c777d68ef54df3eb06942afb5479e7e4264c8c89411a0dd9fdb42fb5c126
|
File details
Details for the file minigptai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: minigptai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6a7aa0aa26fd46abd6e3df3fdb506de995b321d027094a40de967090e296bca
|
|
| MD5 |
09df9c9bdb1951970a58adced857a922
|
|
| BLAKE2b-256 |
1f6a1e90282f1231b438df674538322089b011b6e8cbf65bc85cf91a57b98fc3
|