RWKV Agent Interface

Prompt a remote agent

This algorithm has been trained on Ansgar Allen’s combined and growing corpus of published and unpublished works (currently in excess of 1.2M words) via a small language model designed by Douglas Luman.

Creative Commons CC-BY-SA 4.0

1000
1.0
0.8
0.4
0.5

Parameter Combinations for Different Tasks

Suggested decoding parameters from RWKV Wiki.

Creative content needs more randomness and openness to let the model generate more imaginative expressions. Therefore, use higher Top_P and Temperature with moderate Presence Penalty and Frequency Penalty values to avoid excessive repetition.

Task TypeTop_PTemperaturePresence PenaltyFrequency Penalty
Story Creation0.81.30.40.5
Poetry / Literature0.91.80.30.4
Advertising Copy / Marketing0.71.20.50.6
Free Writing0.851.50.40.5

Parameter Explanations

Temperature
Adjusts the randomness of the generated result by modifying the scaling ratio of the logits. A lower temperature makes the model choose highly probable tokens, creating more predictable output, while a higher temperature flattens the probability distribution, generating more creative but potentially less coherent text.
Top_P
Selects the top N tokens whose cumulative probability reaches the value of P as the candidate set. For example, if set to 0.1, only the top 10% of tokens will be considered. Lower values produce higher quality but more conservative content. Setting it to 1 decreases content quality but increases diversity.
Presence Penalty
Applies a fixed penalty to any token that has already appeared, encouraging the model to use new vocabulary rather than repeating words. It functions like a dynamic blacklist of prohibited words.
Frequency Penalty
Penalizes tokens based on how many times they have already appeared, with the penalty increasing with each occurrence. This helps prevent repetitive phrases and filler words.
Penalty Decay
Controls the decay rate of Presence Penalty and Frequency Penalty. The closer the value is to 1, the slower the penalty decays; the smaller the value, the faster the decay.