Final Project for Matt Harrison / MetaSnake's 'Professional Python' Course
Project description
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:
uvinstead ofpipfor 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()
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
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 propy_alamstein-0.1.2.tar.gz.
File metadata
- Download URL: propy_alamstein-0.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d8955ec9a6fded65919025d9e51b8c09915e1dd07c86a14764f112eb4b372bb
|
|
| MD5 |
42c9914c6a9681464dd0f92128c397a0
|
|
| BLAKE2b-256 |
a1ecd7fdf31b9ca38506841b43ac8e70ac681d630c61b1656bed624023fa50c5
|
File details
Details for the file propy_alamstein-0.1.2-py3-none-any.whl.
File metadata
- Download URL: propy_alamstein-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1b6ebeeb7042a3378581c3b112f0e6dfbf0b595c36b86b98dc4c29ee0e1cf1f
|
|
| MD5 |
b599a86c9e848934352ad532cc737f3b
|
|
| BLAKE2b-256 |
202a25f5ff737cbf7f01f3ef53199acf0e7254e27dadbc71a9798fc82ae736cb
|