Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/lm-sys/FastChat
/ to
Method
to
fastchat/model/rwkv_model.py:27–28 ·
view source on GitHub ↗
(self, target)
Source
from the content-addressed store, hash-verified
25
self.model_path = model_path
26
27
def
to(self, target):
28
assert target ==
"cuda"
29
30
def
__call__(self, input_ids, use_cache, past_key_values=None):
31
assert use_cache == True
Callers
15
get_embeddings
Method · 0.80
main
Function · 0.80
generate_stream
Function · 0.80
forward
Function · 0.80
generate_stream_chatglm
Function · 0.80
generate_stream_falcon
Function · 0.80
generate_stream_yuan2
Function · 0.80
__init__
Method · 0.80
forward
Method · 0.80
generate_stream_codet5p
Function · 0.80
load_model
Function · 0.80
__init__
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected