uuugi commited on
Commit
6afdcc7
Β·
verified Β·
1 Parent(s): cc3b4ca

Add GitHub repo badges, clone options, and Paper PDF links

Browse files
Files changed (1) hide show
  1. README.md +19 -3
README.md CHANGED
@@ -15,14 +15,18 @@ pipeline_tag: text-generation
15
 
16
  # Goal-Conditioned Reachability Logit Masker (GCLM)
17
 
 
 
 
18
  [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
19
  [![PyTorch 2.0+](https://img.shields.io/badge/PyTorch-2.0+-ee4c2c.svg)](https://pytorch.org/)
20
- [![Transformers 4.36+](https://img.shields.io/badge/Transformers-4.36+-yellow.svg)](https://huggingface.co/docs/transformers)
21
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
22
 
23
  An ultra-fast, strictly **O(1)** runtime **Goal-Conditioned Reachability Logit Masking Engine** for Large Language Models.
24
  GCLM mathematically guarantees that an LLM will strictly reach designated goal/accepting states within a fixed token budget (`T_max`), **fundamentally preventing dead-end traps and truncated syntax failures**.
25
 
 
 
26
  ---
27
 
28
  ## πŸ’‘ Key Differences: GCLM vs. Forward DFA Maskers (Outlines / SGLang)
@@ -155,13 +159,21 @@ gclm_project/
155
  ## πŸš€ Quick Start
156
 
157
  ### 1. Installation
 
 
158
  ```bash
159
- # Clone the repository from Hugging Face
160
  git clone https://huggingface.co/uuugi/gclm-constrained-decoding
161
  cd gclm-constrained-decoding
162
  pip install -r requirements.txt
163
  ```
164
 
 
 
 
 
 
 
 
165
  ### 2. Basic Usage with Hugging Face Transformers
166
  ```python
167
  import torch
@@ -226,7 +238,11 @@ python -m benchmarks.real_model_bench --model Qwen/Qwen2.5-0.5B
226
 
227
  ---
228
 
229
- ## πŸ“‘ Citation & Author
 
 
 
 
230
 
231
  ```bibtex
232
  @article{an2026gclm,
 
15
 
16
  # Goal-Conditioned Reachability Logit Masker (GCLM)
17
 
18
+ [![GitHub Repo](https://img.shields.io/badge/GitHub-Repository-181717.svg?logo=github)](https://github.com/uuuugi/Goal-Conditioned-Reachability-Logit-Masker)
19
+ [![Paper PDF](https://img.shields.io/badge/Paper-PDF-b31b1b.svg?logo=adobeacrobatreader)](paper.pdf)
20
+ [![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Repository-yellow)](https://huggingface.co/uuugi/gclm-constrained-decoding)
21
  [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
22
  [![PyTorch 2.0+](https://img.shields.io/badge/PyTorch-2.0+-ee4c2c.svg)](https://pytorch.org/)
 
23
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
24
 
25
  An ultra-fast, strictly **O(1)** runtime **Goal-Conditioned Reachability Logit Masking Engine** for Large Language Models.
26
  GCLM mathematically guarantees that an LLM will strictly reach designated goal/accepting states within a fixed token budget (`T_max`), **fundamentally preventing dead-end traps and truncated syntax failures**.
27
 
28
+ πŸ“„ **Paper**: [**Read / Download `paper.pdf`**](paper.pdf)  |  πŸ’» **GitHub**: [**uuuugi/Goal-Conditioned-Reachability-Logit-Masker**](https://github.com/uuuugi/Goal-Conditioned-Reachability-Logit-Masker)
29
+
30
  ---
31
 
32
  ## πŸ’‘ Key Differences: GCLM vs. Forward DFA Maskers (Outlines / SGLang)
 
159
  ## πŸš€ Quick Start
160
 
161
  ### 1. Installation
162
+
163
+ **From Hugging Face:**
164
  ```bash
 
165
  git clone https://huggingface.co/uuugi/gclm-constrained-decoding
166
  cd gclm-constrained-decoding
167
  pip install -r requirements.txt
168
  ```
169
 
170
+ **From GitHub:**
171
+ ```bash
172
+ git clone https://github.com/uuuugi/Goal-Conditioned-Reachability-Logit-Masker.git
173
+ cd Goal-Conditioned-Reachability-Logit-Masker
174
+ pip install -r requirements.txt
175
+ ```
176
+
177
  ### 2. Basic Usage with Hugging Face Transformers
178
  ```python
179
  import torch
 
238
 
239
  ---
240
 
241
+ ## πŸ“‘ Paper & Citation
242
+
243
+ πŸ“„ **Paper PDF**: [**Download `paper.pdf`**](paper.pdf)
244
+ πŸ’» **GitHub Repository**: [**uuuugi/Goal-Conditioned-Reachability-Logit-Masker**](https://github.com/uuuugi/Goal-Conditioned-Reachability-Logit-Masker)
245
+ πŸ€— **Hugging Face Model**: [**uuugi/gclm-constrained-decoding**](https://huggingface.co/uuugi/gclm-constrained-decoding)
246
 
247
  ```bibtex
248
  @article{an2026gclm,