@@ -13,7 +13,7 @@ public record InferenceParams
1313 : IInferenceParams
1414 {
1515 /// <summary>
16- /// number of tokens to keep from initial prompt
16+ /// number of tokens to keep from initial prompt when applying context shifting
1717 /// </summary>
1818 public int TokensKeep { get ; set ; } = 0 ;
1919
@@ -23,75 +23,13 @@ public record InferenceParams
2323 /// </summary>
2424 public int MaxTokens { get ; set ; } = - 1 ;
2525
26- /// <summary>
27- /// logit bias for specific tokens
28- /// </summary>
29- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
30- public Dictionary < LLamaToken , float > ? LogitBias { get ; set ; } = null ;
31-
3226 /// <summary>
3327 /// Sequences where the model will stop generating further tokens.
3428 /// </summary>
3529 public IReadOnlyList < string > AntiPrompts { get ; set ; } = [ ] ;
3630
3731 /// <inheritdoc />
38- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
39- public int TopK { get ; set ; } = 40 ;
40-
41- /// <inheritdoc />
42- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
43- public float TopP { get ; set ; } = 0.95f ;
44-
45- /// <inheritdoc />
46- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
47- public float MinP { get ; set ; } = 0.05f ;
48-
49- /// <inheritdoc />
50- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
51- public float TfsZ { get ; set ; } = 1.0f ;
52-
53- /// <inheritdoc />
54- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
55- public float TypicalP { get ; set ; } = 1.0f ;
56-
57- /// <inheritdoc />
58- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
59- public float Temperature { get ; set ; } = 0.8f ;
60-
61- /// <inheritdoc />
62- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
63- public float RepeatPenalty { get ; set ; } = 1.1f ;
64-
65- /// <inheritdoc />
66- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
67- public int RepeatLastTokensCount { get ; set ; } = 64 ;
68-
69- /// <inheritdoc />
70- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
71- public float FrequencyPenalty { get ; set ; } = .0f ;
72-
73- /// <inheritdoc />
74- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
75- public float PresencePenalty { get ; set ; } = .0f ;
76-
77- /// <inheritdoc />
78- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. MirostatSamplingPipeline or Mirostat2SamplingPipeline" ) ]
79- public MirostatType Mirostat { get ; set ; } = MirostatType . Disable ;
80-
81- /// <inheritdoc />
82- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. MirostatSamplingPipeline or Mirostat2SamplingPipeline" ) ]
83- public float MirostatTau { get ; set ; } = 5.0f ;
84-
85- /// <inheritdoc />
86- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. MirostatSamplingPipeline or Mirostat2SamplingPipeline" ) ]
87- public float MirostatEta { get ; set ; } = 0.1f ;
88-
89- /// <inheritdoc />
90- [ Obsolete ( "Use the SamplingPipeline property instead with a configured pipeline e.g. DefaultSamplingPipeline" ) ]
91- public bool PenalizeNL { get ; set ; } = true ;
92-
93- /// <inheritdoc />
94- public ISamplingPipeline ? SamplingPipeline { get ; set ; }
32+ public ISamplingPipeline SamplingPipeline { get ; set ; } = new DefaultSamplingPipeline ( ) ;
9533 }
9634
9735 /// <summary>
0 commit comments