Skip to content

Fixed LLamaTimings #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions LLama/Native/LLamaTimings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public struct LLamaTimings
/// <summary>
/// Timestamp when these timings were read
/// </summary>
public readonly TimeSpan ReadTimestamp => TimeSpan.FromMilliseconds(t_start_ms);
public readonly TimeSpan ReadTimestamp => TimeSpan.FromMilliseconds(t_end_ms);

/// <summary>
/// Time spent loading
Expand All @@ -74,7 +74,7 @@ public struct LLamaTimings
/// <summary>
/// Time spent sampling
/// </summary>
public readonly TimeSpan Sampling => TimeSpan.FromMilliseconds(t_load_ms);
public readonly TimeSpan Sampling => TimeSpan.FromMilliseconds(t_sample_ms);

/// <summary>
/// total milliseconds spent prompt processing
Expand All @@ -99,5 +99,5 @@ public struct LLamaTimings
/// <summary>
/// number of eval calls
/// </summary>
public readonly int TokensEvaluated => n_p_eval;
public readonly int TokensEvaluated => n_eval;
}
Loading