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

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.20251002
File Size Uploaded
programasweights-0.0.20251002.tar.gz 224.6 kB Details

Built distribution (wheel)

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

Total release size: 234.6 kB

Release files / programasweights-0.0.20251002.tar.gz

Download URL programasweights-0.0.20251002.tar.gz
Size 224.6 kB
Tags Source
SHA-256 checksum
How to use checksums
68abcabc95ef2a07be0a276cc092fff24bf0447f6688dee781ba3ac343a54ff7
BLAKE2b-256 checksum
How to use checksums
e16c7f908cbf062a820e7b164e7beb4730c41082ebedc595f2ce1559a8cdad2b
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.20251002-py3-none-any.whl

Download URL programasweights-0.0.20251002-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e7e4c28dbcfd16aad07330b8f43c0ea48e1142c07e1e02444117536be443698
BLAKE2b-256 checksum
How to use checksums
b533f789205e44c0de951d79c7b10285b3879901dd931e621fdfd6335497fa18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release history Release notifications | RSS feed

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

This release

0.0.20251002 This release

2 release files

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