MCPcopy Create free account

hub / github.com/WangHanLinHenry/SPA-RL-Agent / functions

Functions947 in github.com/WangHanLinHenry/SPA-RL-Agent

Functionchat_compeletion_openai_azure
(model, conv, temperature, max_tokens, api_dict=None)
fastchat/llm_judge/common.py:427
Functioncheck_action_format
(program_text)
eval_agent/main_vh.py:392
Functioncheck_api_key
( auth: Optional[HTTPAuthorizationCredentials] = Depends(get_bearer_token), )
fastchat/serve/openai_api_server.py:108
Functionclean_flant5_ckpt
Flan-t5 trained with HF+FSDP saves corrupted weights for shared embeddings, Use this function to make sure it can be correctly loaded.
fastchat/utils.py:180
Functionclear_history
(request: gr.Request)
fastchat/serve/gradio_web_server.py:236
Functionclear_history
(request: gr.Request)
fastchat/serve/gradio_block_arena_named.py:128
Functionclear_history
(request: gr.Request)
fastchat/serve/gradio_block_arena_anony.py:140
Methodclose
(self)
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:268
Functioncollator
(data)
fastchat/train/train_ppo.py:231
Methodcollator
(data)
ppo/step_ppo.py:182
Functioncompress_module
(module, target_device)
fastchat/model/compression.py:59
Methodcompute_loss
( self, model: Union[PreTrainedModel, nn.Module], inputs: Dict[str, Union[torch.Tensor
fastchat/train/dpo_trainer.py:1022
Functioncompute_metrics
(eval_pred)
prm/train_our_progress_model.py:385
Functioncount_tokens
Checks the token count for each message in your list This is not part of the OpenAI API spec.
fastchat/serve/openai_api_server.py:731
Functioncreate_chat_completion
Creates a completion for the chat message
fastchat/serve/openai_api_server.py:379
Functioncreate_completion
(request: CompletionRequest)
fastchat/serve/openai_api_server.py:507
Functioncreate_embeddings
Creates embeddings for the text
fastchat/serve/openai_api_server.py:672
Functiondetect_type
(conv)
fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/filter_bad_conv.py:39
Methoddict
(self)
fastchat/conversation.py:318
Functiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
fastchat/utils.py:114
Functiondisplay_pairwise_answer
( question_selector, model_selector1, model_selector2, request: gr.Request )
fastchat/llm_judge/qa_browser.py:45
Functiondisplay_question
(category_selector, request: gr.Request)
fastchat/llm_judge/qa_browser.py:37
Functiondisplay_result_pairwise
(args)
fastchat/llm_judge/show_result.py:39
Functiondisplay_result_single
(args)
fastchat/llm_judge/show_result.py:9
Functiondisplay_single_answer
(question_selector, model_selector1, request: gr.Request)
fastchat/llm_judge/qa_browser.py:84
Functiondone
(asin, options, session_id, **kwargs)
envs/webshop/src/webshop/transfer/webshop_lite.py:69
Functiondone
(session_id, asin, options)
envs/webshop/src/webshop/web_agent_site/app.py:220
Functiondownvote_last_response
(state, model_selector, request: gr.Request)
fastchat/serve/gradio_web_server.py:215
Methoddpo_loss
Compute the DPO loss for a batch of policy and reference model log probabilities. Args: policy_chosen_logps: Log probabilities of
fastchat/train/dpo_trainer.py:739
Methodempty
(self)
eval_agent/utils/datatypes.py:52
Methodevaluate
(self, *args, **kwargs)
fastchat/train/reward_trainer.py:351
Methodevaluation_loop
Overriding built-in evaluation loop to store metrics for each batch. Prediction/evaluation loop, shared by `Trainer.evaluate()` and `
fastchat/train/dpo_trainer.py:1132
Functionfilter_batch
(batch)
fastchat/train/train_ppo.py:235
Functionflag_last_response
(state, model_selector, request: gr.Request)
fastchat/serve/gradio_web_server.py:222
Functionflash_buttons
()
fastchat/serve/gradio_block_arena_named.py:260
Methodflush
(self)
fastchat/utils.py:107
Methodformatting_func
(self, examples)
ppo/step_ppo.py:80
Functionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
fastchat/model/monkey_patch_non_inplace.py:30
Functionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
fastchat/train/llama_flash_attn_monkey_patch.py:13
Methodforward
(self, observation, available_actions)
envs/webshop/src/webshop/web_agent_site/models/models.py:37
Methodforward
(self, observation, available_actions)
envs/webshop/src/webshop/web_agent_site/models/models.py:46
Methodforward
(self, x, seq_len=None)
fastchat/model/llama_condense_monkey_patch.py:42
Methodforward
(self, input_ids, attention_mask, gpt_unmask=None, labels=None)
prm/train_our_progress_model.py:52
Methodforward
(self, input_ids, attention_mask, gpt_unmask=None, labels=None)
prm/inference_prm.py:40
Methodgenerate_gate
(self, params)
fastchat/serve/base_model_worker.py:170
Functiongenerate_stream_chatglm
( model, tokenizer, params, device, context_len=2048, stream_interval=2, judge_sen
fastchat/model/model_chatglm.py:41
Functiongenerate_stream_codet5p
( model, tokenizer, params, device, context_len=2048, stream_interval=2, judge_sen
fastchat/model/model_codet5p.py:14
Functiongenerate_stream_exllama
( model, tokenizer, params: Dict, device: str, context_len: int, stream_interval: int
fastchat/model/model_exllama.py:8
Functiongenerate_stream_falcon
( model, tokenizer, params, device, context_len=2048, stream_interval=2, judge_sen
fastchat/model/model_falcon.py:13
Functiongenerate_stream_peft
( model, tokenizer, params: Dict, device: str, con
fastchat/model/model_adapter.py:382
Functiongenerate_stream_xft
( model, tokenizer, params, device, context_len=8192, stream_interval=2, judge_sen
fastchat/model/model_xfastertransformer.py:9
Methodgenerator
()
eval_agent/tasks/webshop.py:35
Methodgenerator
()
eval_agent/tasks/alfworld.py:77
Methodgenerator
()
eval_agent/tasks/intercode_sql.py:53
Functionget_answer
( question: dict, model: str, num_choices: int, max_tokens: int, answer_file: str )
fastchat/llm_judge/gen_api_answer.py:27
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:109
Methodget_default_conv_template
Uses the conv template of the base model
fastchat/model/model_adapter.py:608
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:643
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:668
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:716
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:749
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:761
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:789
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:814
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:838
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:849
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:870
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:884
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:907
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:934
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:958
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:978
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:990
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1000
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1017
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1035
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1048
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1061
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1074
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1087
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1097
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1117
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1129
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1141
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1154
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1166
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1184
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1208
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1219
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1231
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1243
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1268
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1276
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1301
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1324
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1353
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1365
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1391
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1401
Methodget_default_conv_template
(self, model_path: str)
fastchat/model/model_adapter.py:1417
← previousnext →601–700 of 947, ranked by callers