Class: LLaMACpp::TokenData
- Inherits:
-
Object
- Object
- LLaMACpp::TokenData
- Defined in:
- ext/llama_cpp/dummy.rb
Overview
Class for token data
Instance Method Summary collapse
-
#id ⇒ Integer
Returns the id of token data.
-
#id=(id) ⇒ Object
Sets the id of token data.
-
#initialize(id:, logit:, p:) ⇒ TokenData
constructor
Create token data.
-
#logit ⇒ Float
Returns the logit of token data.
-
#logit=(logit) ⇒ Object
Sets the logit of token data.
-
#p ⇒ Float
Returns the probability of token data.
-
#p=(prob) ⇒ Object
Sets the probability of token data.
Constructor Details
#initialize(id:, logit:, p:) ⇒ TokenData
Create token data.
406 |
# File 'ext/llama_cpp/dummy.rb', line 406 def initialize(id:, logit:, p:); end |
Instance Method Details
#id ⇒ Integer
Returns the id of token data.
414 |
# File 'ext/llama_cpp/dummy.rb', line 414 def id; end |
#id=(id) ⇒ Object
Sets the id of token data.
410 |
# File 'ext/llama_cpp/dummy.rb', line 410 def id=(id); end |
#logit ⇒ Float
Returns the logit of token data.
422 |
# File 'ext/llama_cpp/dummy.rb', line 422 def logit; end |
#logit=(logit) ⇒ Object
Sets the logit of token data.
418 |
# File 'ext/llama_cpp/dummy.rb', line 418 def logit=(logit); end |
#p ⇒ Float
Returns the probability of token data.
430 |
# File 'ext/llama_cpp/dummy.rb', line 430 def p; end |
#p=(prob) ⇒ Object
Sets the probability of token data.
426 |
# File 'ext/llama_cpp/dummy.rb', line 426 def p=(prob); end |