MCPcopy Create free account

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

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

↓ 2 callersFunctionresolve_single_judgment_dict
Return the correct single answer grading judge.
fastchat/llm_judge/common.py:620
↓ 2 callersFunctionrun_judge_pair
(question, answer_a, answer_b, judge, ref_answer, multi_turn=False)
fastchat/llm_judge/common.py:231
↓ 2 callersFunctionsciworld_monkey_patch
()
eval_agent/utils/replace_sciworld_score.py:42
↓ 2 callersMethodsearch_results
Initialize session and return the search results page
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:424
↓ 2 callersFunctionset_global_vars
(controller_url_, enable_moderation_)
fastchat/serve/gradio_web_server.py:112
↓ 2 callersFunctionsetup_logger
Creates a log file and logging object for the corresponding session ID
envs/webshop/src/webshop/web_agent_site/utils.py:31
↓ 2 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
fastchat/train/train_flant5.py:84
↓ 2 callersFunctionsplit_files
(model_path, tmp_path, split_size)
fastchat/model/apply_delta.py:25
↓ 2 callersMethodstep
(self, llm_output: str)
eval_agent/envs/alfworld_env.py:44
↓ 2 callersMethodstep
Takes an action, updates WebShop environment, and returns (observation, reward, done, info) Arguments: action (`str`): An ac
envs/webshop/src/webshop/web_agent_site/envs/web_agent_site_env.py:50
↓ 2 callersMethodstep
Run a PPO optimisation step given a list of queries, model responses, and rewards. Args: queries (List[`torch.LongTensor
fastchat/train/ppo_trainer.py:606
↓ 2 callersMethodstore_metrics
(self, metrics: Dict[str, float], train_eval: Literal["train", "eval"] = "train")
fastchat/train/dpo_trainer.py:1128
↓ 2 callersMethodtrain_minibatch
Train one PPO minibatch Args: logprobs (`torch.FloatTensor`): Log probabilities of the model, shape [bat
fastchat/train/ppo_trainer.py:1024
↓ 2 callersFunctiontruncate_string
(s, l)
fastchat/serve/monitor/summarize_cluster.py:17
↓ 1 callersMethod__encode_base64
(self, embeddings: torch.Tensor)
fastchat/serve/model_worker.py:169
↓ 1 callersMethod__init__
( self, task: AlfWorldTask, **kwargs, )
eval_agent/envs/alfworld_env.py:22
↓ 1 callersMethod__init__
Constructor for simulated server serving WebShop application Arguments: filter_goals (`func`) -- Select specific goa
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:281
↓ 1 callersMethod__init__
(self, raw_data, tokenizer: transformers.PreTrainedTokenizer, model_path: str = None)
fastchat/train/train.py:404
↓ 1 callersMethod__init__
(self, raw_data, tokenizer: transformers.PreTrainedTokenizer, model_path: str = None)
fastchat/train/train_mistral.py:201
↓ 1 callersMethod__init__
(self, raw_data, tokenizer: transformers.PreTrainedTokenizer)
fastchat/train/train_baichuan.py:183
↓ 1 callersMethod__init__
(self, base_model, vocab_size=32000)
prm/train_our_progress_model.py:42
↓ 1 callersMethod__init__
(self, base_model, vocab_size=32000)
prm/inference_prm.py:30
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
fastchat/train/train_flant5.py:179
↓ 1 callersFunction_form_qa
( q_list, a_list, tokenized_conversation, tokenized_lens, speakers, header_len, ma
fastchat/train/train_flant5.py:142
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
fastchat/train/dpo_trainer.py:378
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
fastchat/train/ppo_trainer.py:1409
↓ 1 callersMethod_remove_unused_columns
(self, dataset: "Dataset")
fastchat/train/ppo_trainer.py:399
↓ 1 callersMethod_set_signature_columns_if_needed
(self)
fastchat/train/ppo_trainer.py:389
↓ 1 callersMethod_step_safety_checker
( self, batch_size: int, queries: List[torch.LongTensor], responses: List[torc
ppo/step_ppotrainer.py:26
↓ 1 callersMethod_step_safety_checker
Check if the input data is valid for training. Args: batch_size (int): Batch size from the config file.
fastchat/train/ppo_trainer.py:555
↓ 1 callersFunctionannotate
(attr_path)
envs/webshop/src/webshop/web_agent_site/attributes/annotate.py:16
↓ 1 callersFunctionanthropic_api_stream_iter
(model_name, prompt, temperature, top_p, max_new_tokens)
fastchat/serve/api_provider.py:76
↓ 1 callersFunctionapply_compressed_weight
(module, compressed_state_dict, target_device, prefix="")
fastchat/model/compression.py:88
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
fastchat/model/apply_delta.py:125
↓ 1 callersFunctionapply_delta_low_cpu_mem
(base_model_path, target_model_path, delta_path)
fastchat/model/apply_delta.py:70
↓ 1 callersFunctionapply_lora
(base_model_path, target_model_path, lora_path)
fastchat/model/apply_lora.py:17
↓ 1 callersFunctionapply_prompt_template
(sources, systems=None)
fastchat/train/train_baichuan.py:80
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
fastchat/model/monkey_patch_non_inplace.py:20
↓ 1 callersFunctionbart_predict
(input)
envs/webshop/src/webshop/transfer/app.py:66
↓ 1 callersFunctionbert_predict
(obs, info, softmax=True)
envs/webshop/src/webshop/transfer/app.py:73
↓ 1 callersFunctionbuild_about
()
fastchat/serve/gradio_web_server.py:571
↓ 1 callersFunctionbuild_basic_stats_tab
()
fastchat/serve/monitor/monitor.py:149
↓ 1 callersFunctionbuild_demo
(models)
fastchat/serve/gradio_web_server.py:744
↓ 1 callersFunctionbuild_demo
(models, elo_results_file, leaderboard_table_file)
fastchat/serve/gradio_web_server_multi.py:109
↓ 1 callersFunctionbuild_demo
(elo_results_file, leaderboard_table_file)
fastchat/serve/monitor/monitor.py:256
↓ 1 callersFunctionbuild_demo
()
fastchat/llm_judge/qa_browser.py:360
↓ 1 callersFunctionbuild_pairwise_browser_tab
()
fastchat/llm_judge/qa_browser.py:196
↓ 1 callersFunctionbuild_question_selector_map
()
fastchat/llm_judge/qa_browser.py:186
↓ 1 callersFunctionbuild_side_by_side_ui_anony
(models)
fastchat/serve/gradio_block_arena_anony.py:448
↓ 1 callersFunctionbuild_side_by_side_ui_named
(models)
fastchat/serve/gradio_block_arena_named.py:270
↓ 1 callersFunctionbuild_single_answer_browser_tab
()
fastchat/llm_judge/qa_browser.py:269
↓ 1 callersFunctioncalculate_sample_losses
Calculate loss for each sample in the dataset and save turn_values Args: model: Loaded model dataset: Dataset de
prm/inference_prm.py:366
↓ 1 callersFunctionchange_obj_index
graph: 表示的是environment state program: 表示的是动作执行的文本 id: 表示的是agent的id specific_objects: 表示的是交互过的物体以及对应的id last_obj_id: 表示的是上一
eval_agent/envs/virtualhome_env.py:131
↓ 1 callersFunctionchat_compeletion_palm
(chat_state, model, conv, temperature, max_tokens)
fastchat/llm_judge/common.py:487
↓ 1 callersFunctionchat_loop
( model_path: str, device: str, num_gpus: int, max_gpu_memory: str, dtype: Optional[torch.
fastchat/serve/inference.py:337
↓ 1 callersFunctioncheck_action_format
(program_text)
eval_agent/envs/virtualhome_env.py:122
↓ 1 callersFunctioncheck_data
(questions, model_answers, ref_answers, models, judges)
fastchat/llm_judge/common.py:678
↓ 1 callersMethodcheck_env
(self, now_state, revised_graph)
eval_agent/envs/virtualhome_env.py:582
↓ 1 callersFunctionclean_chat_data
(log_files, action_type)
fastchat/serve/monitor/clean_chat_data.py:47
↓ 1 callersFunctionclean_product_keys
(products)
envs/webshop/src/webshop/web_agent_site/engine/engine.py:210
↓ 1 callersFunctioncompute_elo
(battles, K=4, SCALE=400, BASE=10, INIT_RATING=1000)
fastchat/serve/monitor/elo_analysis.py:22
↓ 1 callersMethodcompute_loss
( self, model: Union[PreTrainedModel, nn.Module], inputs: Dict[str, Union[torch.Tensor
fastchat/train/reward_trainer.py:295
↓ 1 callersMethodconcatenated_inputs
Concatenate the chosen and rejected inputs into a single tensor. Args: batch: A batch of data. Must contain the keys 'chosen_inpu
fastchat/train/dpo_trainer.py:678
↓ 1 callersMethodconduct_action
(self, action: str)
eval_agent/envs/virtualhome_env.py:426
↓ 1 callersMethodconduct_action
(self, action: str)
eval_agent/envs/alfworld_env.py:39
↓ 1 callersMethodconduct_action
(self, actions: List[str])
eval_agent/envs/alfworld_env.py:128
↓ 1 callersFunctionconstruct_llm_data
(args: argparse.Namespace)
exploration/virtualhome/generate_response.py:226
↓ 1 callersFunctionconstruct_llm_data
(args: argparse.Namespace)
exploration/alfworld/generate_response.py:182
↓ 1 callersFunctionconstruct_llm_data
(args: argparse.Namespace)
exploration/webshop/generate_response_webshop.py:182
↓ 1 callersFunctionconvert_dict_to_actions
(page_type, products=None, asin=None, page_num=None)
envs/webshop/src/webshop/transfer/predict_help.py:429
↓ 1 callersFunctionconvert_fp16
(in_checkpoint, out_checkpoint)
fastchat/model/convert_fp16.py:11
↓ 1 callersFunctionconvert_html_to_text
(html, simple=False, clicked_options=None, visited_asins=None)
envs/webshop/src/webshop/transfer/predict_help.py:394
↓ 1 callersMethodconvert_html_to_text
Strip HTML of tags and add separators to convert observation into simple mode
envs/webshop/src/webshop/web_agent_site/envs/web_agent_site_env.py:149
↓ 1 callersFunctioncould_be_stop
(text, stop)
fastchat/serve/huggingface_api_worker.py:77
↓ 1 callersMethodcount_token
(self, params)
fastchat/serve/huggingface_api_worker.py:124
↓ 1 callersFunctioncreate_background_tasks
(worker)
fastchat/serve/huggingface_api_worker.py:209
↓ 1 callersFunctioncreate_background_tasks
(request_id)
fastchat/serve/vllm_worker.py:173
↓ 1 callersFunctioncreate_background_tasks
()
fastchat/serve/base_model_worker.py:187
↓ 1 callersFunctioncreate_controller
()
fastchat/serve/controller.py:312
↓ 1 callersFunctioncreate_huggingface_api_worker
()
fastchat/serve/huggingface_api_worker.py:275
↓ 1 callersMethodcreate_model_card
Creates and saves a model card for a TRL model. Args: path (`str`): The path to save the model card to. model_name (`
fastchat/train/ppo_trainer.py:1368
↓ 1 callersFunctioncreate_model_worker
()
fastchat/serve/model_worker.py:259
↓ 1 callersFunctioncreate_multi_model_worker
()
fastchat/serve/multi_model_worker.py:157
↓ 1 callersFunctioncreate_openai_api_server
()
fastchat/serve/openai_api_server.py:842
↓ 1 callersFunctiondata_collator
(batch)
envs/webshop/src/webshop/transfer/app.py:43
↓ 1 callersFunctiondecompress
Simulate group-wise dequantization.
fastchat/model/compression.py:279
↓ 1 callersFunctiondetect_type
(conv)
fastchat/serve/monitor/dataset_release_scripts/arena_33k/filter_bad_conv.py:31
↓ 1 callersFunctiondict_to_fake_html
(data, page_type, asin=None, sub_page_type=None, options=None, prod_map={}, query="")
envs/webshop/src/webshop/transfer/webshop_lite.py:89
↓ 1 callersMethoddone
Render and return HTML for done page
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:612
↓ 1 callersMethoddpo_with_sft_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:807
↓ 1 callersFunctionextract_text
(input_string)
eval_agent/main_vh.py:273
↓ 1 callersFunctionextract_text
(input_string)
eval_agent/envs/virtualhome_env.py:186
↓ 1 callersMethodfloat_set
(self, config, option)
fastchat/model/model_adapter.py:1565
↓ 1 callersMethodfrom_str
(cls, name)
fastchat/serve/controller.py:39
↓ 1 callersFunctiongenerate_completion_stream_generator
( request: CompletionRequest, n: int, worker_addr: str )
fastchat/serve/openai_api_server.py:585
↓ 1 callersMethodgenerate_gate
(self, params)
fastchat/serve/model_worker.py:141
↓ 1 callersMethodgenerate_gate
(self, params)
fastchat/serve/huggingface_api_worker.py:190
↓ 1 callersFunctiongenerate_mturk_code
Generates a redeem code corresponding to the session ID for an MTurk worker once the session is completed
envs/webshop/src/webshop/web_agent_site/utils.py:44
↓ 1 callersFunctiongenerate_ngram_attrs
(corpus_by_cat, ngram_range, k, attrs)
envs/webshop/src/webshop/web_agent_site/attributes/generate_attrs.py:112
↓ 1 callersFunctiongenerate_product_prices
(all_products)
envs/webshop/src/webshop/web_agent_site/engine/engine.py:180
← previousnext →201–300 of 947, ranked by callers