Skip to main content

Small Language Model

Final project for Matt Harrison / MetaSnake's Professional Python course.

The core code in this repo is the class SmallLanguageModel in the file small_language_model.py. However, that code is largely irrelevant, and exists just as a vehicle for us to explore modern tools used in Python development:

  • uv instead of pip for installing packages
  • LLMs to write code
  • Automated tests with pytest
  • Type Annotations
  • pre-commit and GitHub Actions to automate testing, linting with ruff, etc.
  • Deploying a package to PyPI

If, despite the above warning, you still want to run the code in this repo, you can do so like this:

from propy_alamstein.small_language_model import SmallLanguageModel

slm = SmallLanguageModel()
slm.train("The quick brown fox jumped over the lazy dogs")

slm.predict_next("a")
slm.get_character_training_frequency()

Metadata

Release files for propy-alamstein 0.1.2

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

Source distribution (sdist)

Source distribution for propy-alamstein 0.1.2
File Size Uploaded Provenance Actions
propy_alamstein-0.1.2.tar.gz 3.1 kB Without provenance Details for propy_alamstein-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for propy-alamstein 0.1.2
File Interpreter ABI Platform Actions
propy_alamstein-0.1.2-py3-none-any.whl Python 3 none any Details for propy_alamstein-0.1.2-py3-none-any.whl

Total release size: 5.7 kB

Release files / propy_alamstein-0.1.2.tar.gz

Download URL propy_alamstein-0.1.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4d8955ec9a6fded65919025d9e51b8c09915e1dd07c86a14764f112eb4b372bb
BLAKE2b-256 checksum
How to use checksums
a1ecd7fdf31b9ca38506841b43ac8e70ac681d630c61b1656bed624023fa50c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release files / propy_alamstein-0.1.2-py3-none-any.whl

Download URL propy_alamstein-0.1.2-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1b6ebeeb7042a3378581c3b112f0e6dfbf0b595c36b86b98dc4c29ee0e1cf1f
BLAKE2b-256 checksum
How to use checksums
202a25f5ff737cbf7f01f3ef53199acf0e7254e27dadbc71a9798fc82ae736cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Security for propy-alamstein 0.1.2

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.

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