torch-grammar

Restrict LLM generations to a context-free grammar

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install torch-grammar

Releases

Version Released Buster
Python 3.7
Bullseye
Python 3.9
Bookworm
Python 3.11
Files
0.3.3 2023-07-20    
0.3.2 2023-06-28    
0.3.1 2023-06-27    
0.3.0 2023-06-26    
0.2.1 2023-06-22    
0.2.0 2023-06-22    
0.1.1 2023-06-20      
0.1.0 2023-06-20      

Issues with this package?

Page last updated 2023-10-28 04:20:27 UTC