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.4 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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

programasweights-0.0.20251001-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

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

Hashes for programasweights-0.0.20251001.tar.gz
Algorithm Hash digest
SHA256 2802f413ca04301a5c9548e34792111afaaaddfcc687dd6391a12dba712aa6cf
MD5 4dc40d01dbafe9374a63c9c29b0dda73
BLAKE2b-256 32fbff34aa22aa6ebf49938024be16f040827c927c0c7609a63e1509fead93e5

See more details on using hashes here.

File details

Details for the file programasweights-0.0.20251001-py3-none-any.whl.

File metadata

File hashes

Hashes for programasweights-0.0.20251001-py3-none-any.whl
Algorithm Hash digest
SHA256 61cee91246b1e0998b5e26ce69edd531d7ad2f34bc88cfaf1e8fb8004b0c8457
MD5 297169a66d484fd305c112ad16fec8d8
BLAKE2b-256 a6f484e5fc1cfd71ddf1eb8694b4cc5e9b8faa595685ff8de5a426b21925eda6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.8

2 files

0.2.7

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.0.20251001 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page