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.native.llamatokendata.md 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # LLamaTokenData
  2. Namespace: LLama.Native
  3. ```csharp
  4. public struct LLamaTokenData
  5. ```
  6. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [LLamaTokenData](./llama.native.llamatokendata.md)
  7. ## Fields
  8. ### **id**
  9. token id
  10. ```csharp
  11. public int id;
  12. ```
  13. ### **logit**
  14. log-odds of the token
  15. ```csharp
  16. public float logit;
  17. ```
  18. ### **p**
  19. probability of the token
  20. ```csharp
  21. public float p;
  22. ```
  23. ## Constructors
  24. ### **LLamaTokenData(Int32, Single, Single)**
  25. ```csharp
  26. LLamaTokenData(int id, float logit, float p)
  27. ```
  28. #### Parameters
  29. `id` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  30. `logit` [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>
  31. `p` [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>

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