File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Original file line number Diff line number Diff line change @@ -1505,6 +1505,14 @@ def llama_model_has_encoder(model: llama_model_p, /) -> bool:
1505
1505
...
1506
1506
1507
1507
1508
+ # // Returns true if the model contains a decoder that requires llama_decode() call
1509
+ # LLAMA_API bool llama_model_has_decoder(const struct llama_model * model);
1510
+ @ctypes_function ("llama_model_has_decoder" , [llama_model_p_ctypes ], ctypes .c_bool )
1511
+ def llama_model_has_decoder (model : llama_model_p , / ) -> bool :
1512
+ """Returns true if the model contains a decoder that requires llama_decode() call"""
1513
+ ...
1514
+
1515
+
1508
1516
# // For encoder-decoder models, this function returns id of the token that must be provided
1509
1517
# // to the decoder to start generating output sequence. For other models, it returns -1.
1510
1518
# LLAMA_API llama_token llama_model_decoder_start_token(const struct llama_model * model);
You can’t perform that action at this time.
0 commit comments