transcoders-slim
Quickstart
Installation
pip install transcoders-slim
Usage
Load pre-trained transcoders from Jacob Dunefsky's repository: https://github.com/jacobdunefsky/transcoder_circuits
from transcoders.transcoder import Transcoder
from transcoders_slim.load_pretrained import load_pretrained
transcoders: dict[str, Transcoder] = load_pretrained()
for name, transcoder in transcoders.items():
print(name, transcoder)
Run a transcoder:
d_in = transcoder.d_in
d_tr = transcoder.d_sae
seq_len = 32
tr_in = torch.zeros(1, seq_len, d_in).to(transcoder.device)
tr_out, tr_hid = transcoder(tr_in)[:2]
Development
Refer to Setup for how to set up development environment.
Metadata
Release files for transcoders-slim 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| transcoders_slim-0.2.1.tar.gz | 62.8 kB | Without provenance | Details for transcoders_slim-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| transcoders_slim-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for transcoders_slim-0.2.1-py3-none-any.whl |
Total release size: 75.0 kB
Release files / transcoders_slim-0.2.1.tar.gz
| Download URL | transcoders_slim-0.2.1.tar.gz |
|---|---|
| Size | 62.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15ef2b0329cafea52655418c63beee2d434a59c098f6033819d657a949536aeb
|
|
BLAKE2b-256 checksum How to use checksums |
33db16164e182e84ca38d0fd90b5229799685c5bba009e3267d2d89f933ac7d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / transcoders_slim-0.2.1-py3-none-any.whl
| Download URL | transcoders_slim-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
549b92ea7ea6b8e73f649e6ee427b492b430aaafb30329e8cda9ffbb3ce27b94
|
|
BLAKE2b-256 checksum How to use checksums |
643aa4d757df95804cc928ab8ddd7d5ea8cc73e25c4a09aae3af054fe4413be5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for transcoders-slim 0.2.1
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.