↓ 1 callersFunctionai2_api_stream_iter(
model_name,
model_id,
messages,
temperature,
top_p,
max_new_tokens,
api_key=None
core_training/fastchat/serve/api_provider.py:305
↓ 1 callersMethodcalculate_plan_similarity_loss(
self,
normal_logits, plan_logits,
attention_mask_n, attention_mask_p,
core_training/hidden_model/custom_model.py:669
↓ 1 callersMethodcalculate_random_contrast_loss(
self,
normal_logits, random_logits,
attention_mask_n, attention_mask_r,
core_training/hidden_model/custom_model.py:715
↓ 1 callersFunctiongemini_api_stream_iter(
model_name, conv, temperature, top_p, max_new_tokens, api_key=None
)
core_training/fastchat/serve/api_provider.py:180
↓ 1 callersMethodgenerate(
self, input_ids, do_sample, temperature, max_new_tokens, repetition_penalty=1.0
)
core_training/fastchat/model/rwkv_model.py:40
↓ 1 callersFunctiongenerate_stream(
model,
tokenizer,
params: Dict,
device: str,
context_len: int,
stream_interval: int
core_training/fastchat/serve/inference.py:62
↓ 1 callersFunctionget_api_provider_stream_iter(
conv,
model_name,
model_api_dict,
temperature,
top_p,
max_new_tokens,
)
core_training/fastchat/serve/api_provider.py:16