Closed PicoCreator closed 1 year ago
Please add test case for this new function into tests/test_tiny_rwkv.c
. Probably, void test_model(...)
can be extended with a boolean arg whether to use regular eval
or eval_sequence
.
It would also be useful to add corresponding method to rwkv/rwkv_cpp_shared_library.py
, but this is not a blocker for merge -- until we have really optimized sequence processing mode, overhead when calling C from Python side in a loop seems insignificant.
This is no longer necessary after #89
Adding a varient of
rwkv_eval
asrwkv_eval_array
for array operations.This is useful for X language bindings, where we can eval a larger context, without switching back and forth between X language and C lang context. (I am currently working on a nodejs binding)
Subsequently, if you do add support for "transformer" mode, this should use the "transformer" mode (i dun see the point to doing so though, for CPU eval)