This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
scisharp
/
LLamaSharp
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
17
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Using `IReadOnlyList` instead of `IEnumerable` in `IInferenceParams`
tags/v0.7.0^2
Martin Evans
2 years ago
parent
aae63a5b92
commit
c786fb0ec8
3 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
LLama.Web/Common/InferenceOptions.cs
+1
-1
LLama/Abstractions/IInferenceParams.cs
+1
-1
LLama/Common/InferenceParams.cs
+ 1
- 1
LLama.Web/Common/InferenceOptions.cs
View File
@@ -23,7 +23,7 @@ namespace LLama.Web.Common
/// <summary>
/// Sequences where the model will stop generating further tokens.
/// </summary>
public I
Enumerable
<string> AntiPrompts { get; set; } = Array.Empty<string>();
public I
ReadOnlyList
<string> AntiPrompts { get; set; } = Array.Empty<string>();
/// <summary>
/// path to file for saving/loading model eval state
/// </summary>
+ 1
- 1
LLama/Abstractions/IInferenceParams.cs
View File
@@ -29,7 +29,7 @@ namespace LLama.Abstractions
/// <summary>
/// Sequences where the model will stop generating further tokens.
/// </summary>
public I
Enumerable
<string> AntiPrompts { get; set; }
public I
ReadOnlyList
<string> AntiPrompts { get; set; }
/// <summary>
/// 0 or lower to use vocab size
+ 1
- 1
LLama/Common/InferenceParams.cs
View File
@@ -28,7 +28,7 @@ namespace LLama.Common
/// <summary>
/// Sequences where the model will stop generating further tokens.
/// </summary>
public I
Enumerable
<string> AntiPrompts { get; set; } = Array.Empty<string>();
public I
ReadOnlyList
<string> AntiPrompts { get; set; } = Array.Empty<string>();
/// <summary>
/// 0 or lower to use vocab size
Write
Preview
Loading…
Cancel
Save