Skip to content

Commit

Permalink
Merge pull request #881 from martindevans/fix_timing_stats_properties
Browse files Browse the repository at this point in the history
Fixed LLamaTimings
  • Loading branch information
martindevans authored Jul 31, 2024
2 parents f574005 + 08beee7 commit 8e89d67
Showing 1 changed file with 3 additions and 3 deletions.
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;
}

0 comments on commit 8e89d67

Please sign in to comment.