Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.4.13 instead.
ProgramAsWeights
A minimal runtime where programs are weight blobs run by a fixed interpreter.
Installation
pip install programasweights
Quick Start
import programasweights as paw
# Load a compiled program
f = paw.function("path/to/program", interpreter_name="yuntian-deng/paw-interpreter")
# Use the program function
result = f("Your input string here")
print(result)
Example Usage
import programasweights as paw
# Load a program that processes key-value mappings
f = paw.function("outputs_1spec/prefix_kv/eval_program", interpreter_name="yuntian-deng/paw-interpreter")
# Process input
string = "A: b b:a, d:a"
result = f(string)
print(result) # Output: {"A":"b":"a","D":"d":"a"}
Features
- Simple API: Load and run neural programs with just a few lines of code
- Flexible Interpreters: Support for different transformer models as interpreters
- Efficient Execution: Optimized runtime for prefix-tuned neural programs
- Easy Integration: Seamlessly integrate neural programs into your Python applications
Requirements
- Python >= 3.8
- PyTorch
- Transformers
License
MIT License
Metadata
Release files for programasweights 0.0.20251001
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| programasweights-0.0.20251001.tar.gz | 565.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| programasweights-0.0.20251001-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 573.0 kB
Release files / programasweights-0.0.20251001.tar.gz
| Download URL | programasweights-0.0.20251001.tar.gz |
|---|---|
| Size | 565.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2802f413ca04301a5c9548e34792111afaaaddfcc687dd6391a12dba712aa6cf
|
|
BLAKE2b-256 checksum How to use checksums |
32fbff34aa22aa6ebf49938024be16f040827c927c0c7609a63e1509fead93e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|
Release files / programasweights-0.0.20251001-py3-none-any.whl
| Download URL | programasweights-0.0.20251001-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61cee91246b1e0998b5e26ce69edd531d7ad2f34bc88cfaf1e8fb8004b0c8457
|
|
BLAKE2b-256 checksum How to use checksums |
a6f484e5fc1cfd71ddf1eb8694b4cc5e9b8faa595685ff8de5a426b21925eda6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|