MCPcopy Create free account
hub / github.com/RWKV/rwkv.cpp / rwkv_eval

Method rwkv_eval

python/rwkv_cpp/rwkv_cpp_shared_library.py:131–165  ·  view source on GitHub ↗

Evaluates the model for a single token. Throws an exception in case of any error. Error messages would be printed to stderr. Not thread-safe. For parallel inference, call rwkv_clone_context to create one rwkv_context for each thread. Parameters ----------

(
            self,
            ctx: RWKVContext,
            token: int,
            state_in_address: Optional[int],
            state_out_address: int,
            logits_out_address: int
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

evalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected