Transformers from scratch
Project description
Rawformer
This library implements transformer architectures from pure PyTorch. It's not production ready, more so for my personal use and understanding.
Supported architectures:
- ViT
Supported positional encodings:
- Learned
- RoPE (1D and 2D)
This library uses runtime checks to validate itself and throw better error messages early. NOTE: Beartype is incompatible with torch.compile.
- Turn off runtime type checking with env var:
BEARTYPE=0 - Turn off python interpreter's assert statements with env var:
PYTHONOPTIMIZE=1
Developer install
uv sync --extra cpu
uv sync --extra cuda
pre-commit install
pre-commit run --all-files
uv pip install -e .
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 rawformer-0.1.1.tar.gz.
File metadata
- Download URL: rawformer-0.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
065d7a6ad33f1bbe393787fcf1e95dc89d169a97f14dafb3aa260067f53ade7f
|
|
| MD5 |
86f0b3aa2fcf7dda4c910573040b01bc
|
|
| BLAKE2b-256 |
09950a55e40ea7dd784460240dd9908cb12035356afa02def28d0fcdcd2811bc
|
File details
Details for the file rawformer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rawformer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1028b81559cf5fe7c24d21c3e788d37cf4e1d748045c68e229581cdbe187a1d4
|
|
| MD5 |
5252e0de1a51b8931e86df8d98413de5
|
|
| BLAKE2b-256 |
fd93e6bf9ca10e65fd565cd0fdf32ed597bfd4e2337ee6bf0f1263444b1def6a
|