You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ILLamaExecutor.cs 412 B

123456789101112131415
  1. using LLama.Abstractions.Params;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Threading;
  6. namespace LLama
  7. {
  8. public interface ILLamaExecutor
  9. {
  10. IEnumerable<string> Infer(string text, SessionParams? sessionParams = null);
  11. IAsyncEnumerable<string> InferAsync(string text, SessionParams? sessionParams = null, CancellationToken token = default);
  12. }
  13. }

C#/.NET上易用的LLM高性能推理框架,支持LLaMA和LLaVA系列模型。