reasoning-machines/pal
PaL: Program-Aided Language Models (ICML 2023)
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.
Stars
518
Forks
65
Language
Python
License
Apache-2.0
Category
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.
Higher-rated alternatives
aalok-sathe/surprisal
A unified interface for computing surprisal (log probabilities) from language models! Supports...
EvolvingLMMs-Lab/lmms-engine
A simple, unified multimodal models training engine. Lean, flexible, and built for hacking at scale.
FunnySaltyFish/Better-Ruozhiba
【逐条处理完成】人为审核+修改每一条的弱智吧精选问题QA数据集
microsoft/monitors4codegen
Code and Data artifact for NeurIPS 2023 paper - "Monitor-Guided Decoding of Code LMs with Static...
JKevin17/TM-LLM
The official code for "(ISCC 2025) Network Traffic Matrix Imputation via Large Language Models"