News for hackers. Stuff that matters.
Re:Llama: Add Grammar-Based Sampling by radarsat1 on Saturday July 22, 2023 @09:45AM (#36826170)
This reminds me of something i did once using a 1d CRF at the output of a sequence model. I set "impossible" transitions to -inf so that transitions between certain state pairs were simply never predicted. I could imagine executing something like this that is conditional on the current grammatical context.

On fact it's a bit surprising to me how little I see CRFs mentioned in the context of language models. They are useful whenever you want to model or learn transition probabilities.

There are no comments on this comment yet.