Skip to main content

How to Run

Language & Framework

  • Language: Python
  • Framework: PyTorch

Installation

Make sure you have Python installed, then run the following commands to set up the environment:

pip install -i https://test.pypi.org/simple/ sagar-nueron-gpt2==0.1.7
pip install torch
pip install tiktoken

Train the Model

To train and save your GPT-2 model weights, run the following:

from sagar_nueron_gpt2.TrainAndSaveGptWeights import Execute

exe = Execute()
exe.execute()

Inference from Trained Model

To run inference using the model you trained:

from sagar_nueron_gpt2.inference_model import Inferencing

exe = Inferencing()
exe.inference()

Metadata

Release files for sagar-nueron-gpt2 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sagar-nueron-gpt2 0.1.8
File Size Uploaded Provenance Actions
sagar_nueron_gpt2-0.1.8.tar.gz 371.6 kB Without provenance Details for sagar_nueron_gpt2-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sagar-nueron-gpt2 0.1.8
File Interpreter ABI Platform Actions
sagar_nueron_gpt2-0.1.8-py3-none-any.whl Python 3 none any Details for sagar_nueron_gpt2-0.1.8-py3-none-any.whl

Total release size: 566.1 kB

Release files / sagar_nueron_gpt2-0.1.8.tar.gz

Download URL sagar_nueron_gpt2-0.1.8.tar.gz
Size 371.6 kB
Tags Source
SHA-256 checksum
How to use checksums
53b8aad0f32a4e762c63a35bcc29fa4b662ca9459ad37ad38ed04cd7156f495f
BLAKE2b-256 checksum
How to use checksums
dabb1a8be504a12bc3e5c6f3690154ac7eaff23eb4d79da3d7d7d32fb06ee9ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / sagar_nueron_gpt2-0.1.8-py3-none-any.whl

Download URL sagar_nueron_gpt2-0.1.8-py3-none-any.whl
Size 194.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ce9705b10db46c164e0ffce699455dbc6188b9d5dad645d716e3e65da20a61a
BLAKE2b-256 checksum
How to use checksums
c2ea0a51476a9d820b514f67c37cabe8dccff4dc403850d70ac84602f2c463ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for sagar-nueron-gpt2 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page