Browse Source

Have weights generate context

tags/v0.5.1
Tim Miller 2 years ago
parent
commit
326c802be7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      LLama/LLamaEmbedder.cs

+ 2
- 2
LLama/LLamaEmbedder.cs View File

@@ -29,9 +29,9 @@ namespace LLama
_ctx = weights.CreateContext(@params);
}

public LLamaEmbedder(LLamaContext ctx)
public LLamaEmbedder(LLamaWeights weights, IModelParams @params)
{
_ctx = ctx;
_ctx = weights.CreateContext(@params);
}

/// <summary>


Loading…
Cancel
Save