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

Where and how large LoReFT's interventions are. More...

#include <loreft.hpp>

Public Attributes

int64_t rank = 4
 r, the dimension of the edited subspace.
 
std::vector< int64_t > layers
 The blocks whose outputs are edited. Empty means every block.
 
int64_t first = 1
 Edit the first first and the last last positions of each prompt: pyreft's "f<first>+l<last>". During generation only the prompt's positions are edited.
 
int64_t last = 1
 
uint64_t seed = 0
 Seeds R, W and b, the same on every platform.
 

Detailed Description

Where and how large LoReFT's interventions are.

Member Data Documentation

◆ first

int64_t pulsatrix::LoReFTConfig::first = 1

Edit the first first and the last last positions of each prompt: pyreft's "f<first>+l<last>". During generation only the prompt's positions are edited.

◆ last

int64_t pulsatrix::LoReFTConfig::last = 1

◆ layers

std::vector<int64_t> pulsatrix::LoReFTConfig::layers

The blocks whose outputs are edited. Empty means every block.

◆ rank

int64_t pulsatrix::LoReFTConfig::rank = 4

r, the dimension of the edited subspace.

◆ seed

uint64_t pulsatrix::LoReFTConfig::seed = 0

Seeds R, W and b, the same on every platform.


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