Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
saddam213 committed Oct 20, 2023
1 parent bfe0f40 commit 45b9035
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LLamaStack.Core/Inference/InstructInferenceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected override async Task InferInternal(IInferenceParams inferenceParams, In
_currentTokens.Add(_promptTokens[_consumedTokensCount]);
_lastTokens.Enqueue(_promptTokens[_consumedTokensCount]);
_consumedTokensCount++;
if (_currentTokens.Count >= _model.ModelParams.BatchSize)
if (_currentTokens.Count >= _model.LLamaParams.BatchSize)
{
break;
}
Expand Down
2 changes: 1 addition & 1 deletion LLamaStack.Core/Inference/InteractiveInferenceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected override async Task InferInternal(IInferenceParams inferenceParams, In
_currentTokens.Add(_promptTokens[_consumedTokensCount]);
_lastTokens.Enqueue(_promptTokens[_consumedTokensCount]);
_consumedTokensCount++;
if (_currentTokens.Count >= _model.ModelParams.BatchSize)
if (_currentTokens.Count >= _model.LLamaParams.BatchSize)
{
break;
}
Expand Down
8 changes: 4 additions & 4 deletions LLamaStack.Core/Inference/StatelessInferenceHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using LLama.Abstractions;
using LLama;
using LLama.Abstractions;
using LLama.Common;
using LLamaStack.Core.Common;
using LLamaStack.Core.Services;
Expand All @@ -12,14 +13,13 @@ public sealed class StatelessInferenceHandler<T> : IInferenceHandler
private readonly LLamaStackModel<T> _model;
private readonly IContextParams _params;

public StatelessInferenceHandler(LLamaWeights weights, IContextParams @params)
/// Initializes a new instance of the <see cref="StatelessInferenceHandler{T}"/> class.
/// </summary>
/// <param name="model">The model.</param>
public StatelessInferenceHandler(LLamaStackModel<T> model)
{
_weights = weights;
_params = @params;
_model = model;
_params = model.LLamaParams;
}

public LLamaContext Context { get; private set; }
Expand Down

0 comments on commit 45b9035

Please sign in to comment.