Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.4.14 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)

Source distribution for programasweights 0.0.20251001
File Size Uploaded Provenance Actions
programasweights-0.0.20251001.tar.gz 565.3 kB Without provenance Details for programasweights-0.0.20251001.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for programasweights 0.0.20251001
File Interpreter ABI Platform Actions
programasweights-0.0.20251001-py3-none-any.whl Python 3 none any Details for programasweights-0.0.20251001-py3-none-any.whl

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

Security for programasweights 0.0.20251001

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page