⚠️ 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.20251002.tar.gz
(224.6 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.20251002.tar.gz.
File metadata
- Download URL: programasweights-0.0.20251002.tar.gz
- Upload date:
- Size: 224.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68abcabc95ef2a07be0a276cc092fff24bf0447f6688dee781ba3ac343a54ff7
|
|
| MD5 |
5c44aee9bc747a7bb9d8c37e8e10da2e
|
|
| BLAKE2b-256 |
e16c7f908cbf062a820e7b164e7beb4730c41082ebedc595f2ce1559a8cdad2b
|
File details
Details for the file programasweights-0.0.20251002-py3-none-any.whl.
File metadata
- Download URL: programasweights-0.0.20251002-py3-none-any.whl
- Upload date:
- Size: 9.9 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 |
7e7e4c28dbcfd16aad07330b8f43c0ea48e1142c07e1e02444117536be443698
|
|
| MD5 |
4dde5c4c998c080835108aa7194e536d
|
|
| BLAKE2b-256 |
b533f789205e44c0de951d79c7b10285b3879901dd931e621fdfd6335497fa18
|