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

Method __init__

python/rwkv_cpp/rwkv_cpp_model.py:27–71  ·  view source on GitHub ↗

Loads the model and prepares it for inference. In case of any error, this method will throw an exception. Parameters ---------- shared_library : RWKVSharedLibrary rwkv.cpp shared library. model_path : str Path to RWKV model fi

(
            self,
            shared_library: rwkv_cpp_shared_library.RWKVSharedLibrary,
            model_path: str,
            thread_count: int = max(1, multiprocessing.cpu_count() // 2),
            gpu_layer_count: int = 0,
            **kwargs
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Tested by

no test coverage detected