diff --git a/LLama/Common/InferenceParams.cs b/LLama/Common/InferenceParams.cs
index baa78da1..bef64631 100644
--- a/LLama/Common/InferenceParams.cs
+++ b/LLama/Common/InferenceParams.cs
@@ -9,7 +9,7 @@ namespace LLama.Common
///
/// The paramters used for inference.
///
- public class InferenceParams : IInferenceParams
+ public record InferenceParams : IInferenceParams
{
///
/// number of tokens to keep from initial prompt