pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::MaskedDiffusionConfig Struct Reference

Sampling settings. The defaults fill greedily by confidence. More...

#include <masked_diffusion.hpp>

Public Attributes

int64_t steps = 64
 Denoising steps. Must be positive.
 
int64_t mask_token_id = -1
 The token that marks a masked position. Must be set.
 
UnmaskingSchedule schedule = UnmaskingSchedule::Confidence
 
bool do_sample = false
 false: each filled position takes its most likely token. true: sample it.
 
float temperature = 1.0f
 Divides the logits before sampling. Must be positive.
 
std::vector< int64_t > suppressed_token_ids
 Tokens never generated. The mask token never is (MDLM's SUBS parameterization).
 
std::optional< uint64_t > seed
 The seed for sampling and for the ancestral schedule's draws; unset draws one from the global stream (next_seed(), FND-7).
 

Detailed Description

Sampling settings. The defaults fill greedily by confidence.

Member Data Documentation

◆ do_sample

bool pulsatrix::MaskedDiffusionConfig::do_sample = false

false: each filled position takes its most likely token. true: sample it.

◆ mask_token_id

int64_t pulsatrix::MaskedDiffusionConfig::mask_token_id = -1

The token that marks a masked position. Must be set.

◆ schedule

UnmaskingSchedule pulsatrix::MaskedDiffusionConfig::schedule = UnmaskingSchedule::Confidence

◆ seed

std::optional<uint64_t> pulsatrix::MaskedDiffusionConfig::seed

The seed for sampling and for the ancestral schedule's draws; unset draws one from the global stream (next_seed(), FND-7).

◆ steps

int64_t pulsatrix::MaskedDiffusionConfig::steps = 64

Denoising steps. Must be positive.

◆ suppressed_token_ids

std::vector<int64_t> pulsatrix::MaskedDiffusionConfig::suppressed_token_ids

Tokens never generated. The mask token never is (MDLM's SUBS parameterization).

◆ temperature

float pulsatrix::MaskedDiffusionConfig::temperature = 1.0f

Divides the logits before sampling. Must be positive.


The documentation for this struct was generated from the following file: