GFNOrg/gfn-lm-tuning

191

stars

25

commits

Jupyter Notebook

primary language

Aug 30, 2026

updated

README

Amortizing intractable inference in large language models

This repository contains code for GFlowNet fine-tuning of language models, as described in the ICLR 2024 paper

Amortizing intractable inference in large language models
Edward J. Hu*, Moksh Jain*, Eric Elmoznino, Younesse Kaddar, Guillaume Lajoie, Yoshua Bengio, Esmeralda S. Whitammer
Paper: https://arxiv.org/abs/2310.04363

BibTeX
@article{hu2024amortizing,
  title={Amortizing intractable inference in large language models},
  author={Hu, Edward J. and Jain, Moksh and Elmoznino, Eric and Kaddar, Younesse and Lajoie, Guillaume and Bengio, Yoshua and Whitammer, Esmeralda S},
  year={2024},
  journal={International Conference on Learning Representations (ICLR)}
}

Visit the subdirectories to find code and documentation for each experiment in the paper:

  • Random number generation (§2): rng
  • Sentence continuation (§4.1): next_sentence
  • Story infilling (§4.2): infill_subj_arithmetic
  • Subjectivity classification (§4.3): infill_subj_arithmetic
  • Arithmetic with tool use (§4.4): infill_subj_arithmetic

Please contact us or post an issue if you have any questions.

Contributors

youqad

10 commits

malkin1729

7 commits

MJ10

4 commits

edwardjhu

3 commits

GFNOrg/gfn-lm-tuning

191

stars

25

commits

Jupyter Notebook

primary language

Aug 30, 2026

updated

README

Amortizing intractable inference in large language models

This repository contains code for GFlowNet fine-tuning of language models, as described in the ICLR 2024 paper

Amortizing intractable inference in large language models
Edward J. Hu*, Moksh Jain*, Eric Elmoznino, Younesse Kaddar, Guillaume Lajoie, Yoshua Bengio, Esmeralda S. Whitammer
Paper: https://arxiv.org/abs/2310.04363

BibTeX
@article{hu2024amortizing,
  title={Amortizing intractable inference in large language models},
  author={Hu, Edward J. and Jain, Moksh and Elmoznino, Eric and Kaddar, Younesse and Lajoie, Guillaume and Bengio, Yoshua and Whitammer, Esmeralda S},
  year={2024},
  journal={International Conference on Learning Representations (ICLR)}
}

Visit the subdirectories to find code and documentation for each experiment in the paper:

  • Random number generation (§2): rng
  • Sentence continuation (§4.1): next_sentence
  • Story infilling (§4.2): infill_subj_arithmetic
  • Subjectivity classification (§4.3): infill_subj_arithmetic
  • Arithmetic with tool use (§4.4): infill_subj_arithmetic

Please contact us or post an issue if you have any questions.

Contributors

youqad

10 commits

malkin1729

7 commits

MJ10

4 commits

edwardjhu

3 commits

Languages

Jupyter Notebook

73.1%

Python

26.9%