⚠️ PLACEHOLDER PACKAGE - NOT YET FUNCTIONAL ⚠️ ProgramAsWeights: a minimal runtime where programs are weight blobs run by a fixed interpreter.
Project description
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
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
programasweights-0.0.20251001.tar.gz
(565.3 kB
view details)
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 programasweights-0.0.20251001.tar.gz.
File metadata
- Download URL: programasweights-0.0.20251001.tar.gz
- Upload date:
- Size: 565.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2802f413ca04301a5c9548e34792111afaaaddfcc687dd6391a12dba712aa6cf
|
|
| MD5 |
4dc40d01dbafe9374a63c9c29b0dda73
|
|
| BLAKE2b-256 |
32fbff34aa22aa6ebf49938024be16f040827c927c0c7609a63e1509fead93e5
|
File details
Details for the file programasweights-0.0.20251001-py3-none-any.whl.
File metadata
- Download URL: programasweights-0.0.20251001-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61cee91246b1e0998b5e26ce69edd531d7ad2f34bc88cfaf1e8fb8004b0c8457
|
|
| MD5 |
297169a66d484fd305c112ad16fec8d8
|
|
| BLAKE2b-256 |
a6f484e5fc1cfd71ddf1eb8694b4cc5e9b8faa595685ff8de5a426b21925eda6
|