reasoning-machines/pal

PaL: Program-Aided Language Models (ICML 2023)

38
/ 100
Emerging

The framework interleaves LLM-generated text reasoning with executable Python code, delegating arithmetic and procedural computation to a runtime interpreter rather than relying on the model alone. It provides a `ProgramInterface` class that orchestrates prompt execution, code generation, and answer extraction across OpenAI APIs (Codex, GPT-3.5-turbo), with few-shot prompting examples for math, symbolic reasoning, and question-answering tasks. The implementation includes evaluation scripts for benchmark datasets like GSM8k and the authors' GSM-hard variant.

518 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 19 / 25

How are scores calculated?

Stars

518

Forks

65

Language

Python

License

Apache-2.0

Last pushed

Jun 30, 2023

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/reasoning-machines/pal"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.