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.

llama.abstractions.itextstreamtransform.md 1.2 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # ITextStreamTransform
  2. Namespace: LLama.Abstractions
  3. Takes a stream of tokens and transforms them.
  4. ```csharp
  5. public interface ITextStreamTransform
  6. ```
  7. ## Methods
  8. ### **Transform(IEnumerable<String>)**
  9. Takes a stream of tokens and transforms them, returning a new stream of tokens.
  10. ```csharp
  11. IEnumerable<string> Transform(IEnumerable<string> tokens)
  12. ```
  13. #### Parameters
  14. `tokens` [IEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
  15. #### Returns
  16. [IEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
  17. ### **TransformAsync(IAsyncEnumerable&lt;String&gt;)**
  18. Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously.
  19. ```csharp
  20. IAsyncEnumerable<string> TransformAsync(IAsyncEnumerable<string> tokens)
  21. ```
  22. #### Parameters
  23. `tokens` [IAsyncEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)<br>
  24. #### Returns
  25. [IAsyncEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)<br>

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