a repository for PXIA models
Project description
PXIA
A repository for pxia models
This repository is using HuggingFace's PyTorchModelHubMixin classes
How to use
pip install pxia
from pxia import GPT2
model = GPT2(block_size= 1024, vocab_size = 50257, n_layer= 11, n_head= 12, n_embed = 768) # or use default parameters
model.push_to_hub("phxia/gpt2")
pretrained_model = GPT2.from_pretrained("phxia/gpt2")
alternatively you can load weights from source gpt2 models from huggingface and convert them to pxia format
model = GPT2.from_origin("openai-community/gpt2")
we also support AutoModel class in our repository
to load any pxia model either locally or from the hub you can
from pxia import AutoModel
model = AutoModel.from_pretrained("phxia/gpt2")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pxia-0.1.0.tar.gz.
File metadata
- Download URL: pxia-0.1.0.tar.gz
- Upload date:
- Size: 319.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd699a62e81e31aa496332b97613354e381d375b90a8c4939c6cf88ac550f66a
|
|
| MD5 |
b4d70fb7737068354769dad7999ec8b7
|
|
| BLAKE2b-256 |
82db4de9c5752ebcc4cf6ace6e68db9fa58cacf5f0c8b869c918b40630de36de
|
File details
Details for the file pxia-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pxia-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbabffd87b58fbcfc8d843c0e99e86eb1d5ee86eb3c302e40a835071543dfb34
|
|
| MD5 |
3b465a11ba7725fef2416eef165ccfa4
|
|
| BLAKE2b-256 |
f884f57b36124369b6e79f11ee4db402e5b7d19ea9157ab7d75d5445c70e6a2f
|