MCPcopy
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_embeddingsMethod · 0.80
mainFunction · 0.80
generate_streamFunction · 0.80
forwardFunction · 0.80
generate_stream_chatglmFunction · 0.80
generate_stream_falconFunction · 0.80
generate_stream_yuan2Function · 0.80
__init__Method · 0.80
forwardMethod · 0.80
generate_stream_codet5pFunction · 0.80
load_modelFunction · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected