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

#include <relevance_graph.hpp>

Collaboration diagram for pulsatrix::RelevanceGraphOptions:

Public Attributes

LRPRuleConfig config = LxtAttnLrpConfig()
 The LRP rules: AttnLRP as LXT applies it, by default.
 
double edge_threshold = 0.98
 Keep the fewest links holding this share of the total |relevance| (PruneLinks).
 
double node_threshold = 0.8
 The viewer's default node pruning threshold (ComputeInfluence).
 
std::string slug = "pulsatrix-graph"
 
std::string scan = "pulsatrix"
 The model id the viewer shows, for example "Qwen2.5-0.5B".
 
std::string prompt
 The prompt's text, and each token as text (one per id).
 
std::vector< std::string > prompt_tokens
 
std::string target_text
 The explained token as text, for the output node's label.
 
int64_t max_tokens = 256
 Refuse longer inputs: the graph costs one block pass per layer and position.
 

Member Data Documentation

◆ config

LRPRuleConfig pulsatrix::RelevanceGraphOptions::config = LxtAttnLrpConfig()

The LRP rules: AttnLRP as LXT applies it, by default.

◆ edge_threshold

double pulsatrix::RelevanceGraphOptions::edge_threshold = 0.98

Keep the fewest links holding this share of the total |relevance| (PruneLinks).

◆ max_tokens

int64_t pulsatrix::RelevanceGraphOptions::max_tokens = 256

Refuse longer inputs: the graph costs one block pass per layer and position.

◆ node_threshold

double pulsatrix::RelevanceGraphOptions::node_threshold = 0.8

The viewer's default node pruning threshold (ComputeInfluence).

◆ prompt

std::string pulsatrix::RelevanceGraphOptions::prompt

The prompt's text, and each token as text (one per id).

◆ prompt_tokens

std::vector<std::string> pulsatrix::RelevanceGraphOptions::prompt_tokens

◆ scan

std::string pulsatrix::RelevanceGraphOptions::scan = "pulsatrix"

The model id the viewer shows, for example "Qwen2.5-0.5B".

◆ slug

std::string pulsatrix::RelevanceGraphOptions::slug = "pulsatrix-graph"

◆ target_text

std::string pulsatrix::RelevanceGraphOptions::target_text

The explained token as text, for the output node's label.


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