Skip to main content

a repository for PXIA models

Project description

PXIA

A repository for pxia models

This repository is using HuggingFace's PyTorchModelHubMixin classes

Downloads

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")

pxia

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

pxia-0.0.6.tar.gz (318.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pxia-0.0.6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pxia-0.0.6.tar.gz.

File metadata

  • Download URL: pxia-0.0.6.tar.gz
  • Upload date:
  • Size: 318.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pxia-0.0.6.tar.gz
Algorithm Hash digest
SHA256 da64913ba8970c16807c39564d0a0d6abf2e270a23bd0ab6f4246152a2b9b132
MD5 ed6f4a50b8bd9deda4696c16cf3513ae
BLAKE2b-256 4da1bf2f49ab5f97d7ac13e976256082ed5114b614373d97742266e6e90c9078

See more details on using hashes here.

File details

Details for the file pxia-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pxia-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pxia-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 68a1a5d4070f0b4ecd84ba0eef0bed5f7b6a797f54d7e5faad8bd3b3777fcf7c
MD5 03f2b13167ec57da2f38bf20bcdb9662
BLAKE2b-256 41670c064ef56c0500c73e1e87f6c4ee2685181982a72b171960a76df22c8efe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page