MCPcopy Create free account

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

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

↓ 1 callersMethodgenerate_stream_gate
(self, params)
fastchat/serve/base_model_worker.py:167
↓ 1 callersFunctionget_attribute_reward
Determines whether purchased products shares same attributes as goal
envs/webshop/src/webshop/web_agent_site/engine/goal.py:180
↓ 1 callersMethodget_available_actions
Returns list of available actions at the current step
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:129
↓ 1 callersMethodget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (unnormalized). Shape
fastchat/train/dpo_trainer.py:876
↓ 1 callersMethodget_batch_samples
Generate samples from the model and reference model for the given batch of inputs.
fastchat/train/dpo_trainer.py:1048
↓ 1 callersFunctionget_battle_pair
()
fastchat/serve/gradio_block_arena_anony.py:282
↓ 1 callersFunctionget_bootstrap_result
(battles, func_compute_elo, num_round=1000)
fastchat/serve/monitor/elo_analysis.py:46
↓ 1 callersFunctionget_cluster_info
(texts, labels, topk_indices)
fastchat/serve/monitor/topic_clustering.py:185
↓ 1 callersFunctionget_compressed_list
(module, prefix="")
fastchat/model/compression.py:72
↓ 1 callersFunctionget_conv
(model_name: str, worker_addr: str)
fastchat/serve/openai_api_server.py:354
↓ 1 callersFunctionget_embedding
(payload: Dict[str, Any])
fastchat/serve/openai_api_server.py:718
↓ 1 callersFunctionget_embeddings
(texts, model_name, batch_size)
fastchat/serve/monitor/topic_clustering.py:79
↓ 1 callersMethodget_embeddings
(self, params)
fastchat/serve/model_worker.py:176
↓ 1 callersMethodget_embeddings
(self, params)
fastchat/serve/huggingface_api_worker.py:195
↓ 1 callersMethodget_embeddings
(self, params)
fastchat/serve/base_model_worker.py:173
↓ 1 callersMethodget_eval_dataloader
Returns the evaluation [`~torch.utils.data.DataLoader`]. Subclass of transformers.src.transformers.trainer.get_eval_dataloader to pr
fastchat/train/dpo_trainer.py:453
↓ 1 callersFunctionget_gen_kwargs
( params, seed: Optional[int] = None, )
fastchat/serve/huggingface_api_worker.py:45
↓ 1 callersFunctionget_gpu_memory
Get available memory for each GPU.
fastchat/utils.py:124
↓ 1 callersFunctionget_human_goals
(all_products, product_prices)
envs/webshop/src/webshop/web_agent_site/engine/goal.py:22
↓ 1 callersMethodget_instruction_text
Get corresponding instruction text for environment current step
envs/webshop/src/webshop/web_agent_site/envs/web_agent_site_env.py:143
↓ 1 callersMethodget_instruction_text
Get corresponding instruction text for current environment session
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:164
↓ 1 callersFunctionget_judge_name
(judge)
fastchat/llm_judge/compute_agreement.py:15
↓ 1 callersFunctionget_log_files
(max_num_files=None)
fastchat/serve/monitor/inspect_conv.py:13
↓ 1 callersFunctionget_log_files
(max_num_files=None)
fastchat/serve/monitor/clean_chat_data.py:29
↓ 1 callersFunctionget_median_elo_from_bootstrap
(bootstrap_df)
fastchat/serve/monitor/elo_analysis.py:55
↓ 1 callersFunctionget_model_list
(answer_dir)
fastchat/llm_judge/common.py:699
↓ 1 callersFunctionget_mt_bench_votes_data
(raw_votes)
fastchat/llm_judge/compute_agreement.py:32
↓ 1 callersFunctionget_next
()
fastchat/utils.py:248
↓ 1 callersFunctionget_option_reward
Calculate reward for purchased product's options w.r.t. goal options
envs/webshop/src/webshop/web_agent_site/engine/goal.py:211
↓ 1 callersMethodget_reward
Get reward value at current step of the environment
envs/webshop/src/webshop/web_agent_site/envs/web_agent_site_env.py:136
↓ 1 callersFunctionget_stop_words
()
envs/webshop/src/webshop/web_agent_site/attributes/generate_attrs.py:20
↓ 1 callersFunctionget_synthetic_goals
(all_products, product_prices)
envs/webshop/src/webshop/web_agent_site/engine/goal.py:70
↓ 1 callersFunctionget_top_attrs
(attributes, k)
envs/webshop/src/webshop/web_agent_site/attributes/generate_attrs.py:58
↓ 1 callersFunctionget_topk_indices
(centers, labels, embeddings, topk)
fastchat/serve/monitor/topic_clustering.py:156
↓ 1 callersFunctionget_type_reward
Determines the type reward - captures whether chosen product is in the same category
envs/webshop/src/webshop/web_agent_site/engine/goal.py:132
↓ 1 callersMethodhandle_no_worker
(self, params)
fastchat/serve/controller.py:203
↓ 1 callersMethodhandle_worker_timeout
(self, worker_address)
fastchat/serve/controller.py:211
↓ 1 callersFunctioninspect_convs
(log_files)
fastchat/serve/monitor/inspect_conv.py:36
↓ 1 callersFunctioninteractive_loop
( each_task: Dict[str, Any], agent: agents.LMAgent, env_config: Dict[str, Any], )
eval_agent/main_vh.py:403
↓ 1 callersFunctioninteractive_loop
( task: tasks.Task, agent: agents.LMAgent, env_config: Dict[str, Any], )
eval_agent/main.py:20
↓ 1 callersFunctioninteractive_loop
( task: tasks.Task, agent: agents.LMAgent, env_config: Dict[str, Any], )
eval_agent/main_webshop.py:20
↓ 1 callersFunctionis_sentence_complete
Check whether the output is a complete sentence.
fastchat/utils.py:305
↓ 1 callersFunctionitem_page
(session_id, asin, keywords, page, options)
envs/webshop/src/webshop/transfer/webshop_lite.py:39
↓ 1 callersFunctionitem_sub_page
(session_id, asin, keywords, page, sub_page, options)
envs/webshop/src/webshop/transfer/webshop_lite.py:54
↓ 1 callersMethoditem_sub_page
Render and return the HTML for a product's sub page (i.e. description, features)
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:581
↓ 1 callersFunctionlaunch_all
()
fastchat/serve/launch_all_serve.py:256
↓ 1 callersMethodlist_models
(self)
fastchat/serve/controller.py:122
↓ 1 callersFunctionload_awq_quantized
(model_name, awq_config: AWQConfig, device)
fastchat/modules/awq.py:24
↓ 1 callersFunctionload_compress_model
(model_path, device, torch_dtype, use_fast, revision="main")
fastchat/model/compression.py:109
↓ 1 callersMethodload_compress_model
(self, model_path, device, torch_dtype, revision="main")
fastchat/model/model_adapter.py:100
↓ 1 callersFunctionload_demo_side_by_side_anony
(models_, url_params)
fastchat/serve/gradio_block_arena_anony.py:52
↓ 1 callersFunctionload_demo_side_by_side_named
(models, url_params)
fastchat/serve/gradio_block_arena_named.py:49
↓ 1 callersFunctionload_exllama_model
(model_path, exllama_config: ExllamaConfig)
fastchat/modules/exllama.py:19
↓ 1 callersFunctionload_file
(filepath: str)
eval_agent/utils/__init__.py:6
↓ 1 callersFunctionload_gptq_quantized
(model_name, gptq_config: GptqConfig)
fastchat/modules/gptq.py:29
↓ 1 callersFunctionload_judge_prompts
Load judge prompts. The return value is a python dict of type: Dict[judge_name: str -> dict]
fastchat/llm_judge/common.py:117
↓ 1 callersFunctionload_log_files
(log_files)
fastchat/serve/monitor/basic_stats.py:35
↓ 1 callersFunctionload_pairwise_model_judgments
Load model judgments. The return value is a dict of type: Dict[judge: Tuple -> Dict[game_key: tuple -> game_result: dict]
fastchat/llm_judge/common.py:537
↓ 1 callersFunctionload_products
Loads products from the `items.json` file and combine them with reviews through `asin`. Return: dict[asin, product]
envs/webshop/src/webshop/web_agent_site/attributes/generate_attrs.py:26
↓ 1 callersFunctionload_single_model_judgments
Load model judgments. The return value is a dict of type: Dict[judge: Tuple -> Dict[game_key: tuple -> game_result: dict]
fastchat/llm_judge/common.py:580
↓ 1 callersFunctionload_xft_model
(model_path, xft_config: XftConfig)
fastchat/modules/xfastertransformer.py:24
↓ 1 callersMethodlog_stats
A function that logs all the training stats. Call it at the end of each epoch. Args: stats (dict[str, Any]):
fastchat/train/ppo_trainer.py:1297
↓ 1 callersMethodloss
Calculate policy and value losses. Args: old_logprobs (`torch.FloatTensor`): Log probabilities of the mo
fastchat/train/ppo_trainer.py:1145
↓ 1 callersFunctionmain
(args: argparse.Namespace)
eval_agent/main_vh.py:460
↓ 1 callersFunctionmain
(args: argparse.Namespace)
eval_agent/main.py:83
↓ 1 callersFunctionmain
(args: argparse.Namespace)
eval_agent/main_webshop.py:83
↓ 1 callersFunctionmain
()
envs/webshop/src/webshop/web_agent_site/attributes/annotate.py:62
↓ 1 callersFunctionmain
(args)
fastchat/serve/huggingface_api.py:16
↓ 1 callersFunctionmain
(args)
fastchat/serve/cli.py:192
↓ 1 callersFunctionmain
()
fastchat/serve/test_throughput.py:12
↓ 1 callersFunctionmain
()
fastchat/serve/test_message.py:10
↓ 1 callersMethodmake_conv_template
can be overrided to costomize the conversation template for different model workers.
fastchat/serve/base_model_worker.py:61
↓ 1 callersFunctionmake_delta
(base_model_path, target_model_path, delta_path)
fastchat/model/make_delta.py:14
↓ 1 callersFunctionmake_judge_pairwise
(judge_model, judge_prompts)
fastchat/llm_judge/gen_judgment.py:137
↓ 1 callersFunctionmake_judge_single
(judge_model, judge_prompts)
fastchat/llm_judge/gen_judgment.py:153
↓ 1 callersFunctionmake_leaderboard_md
(elo_results)
fastchat/serve/monitor/monitor.py:32
↓ 1 callersFunctionmake_leaderboard_md_live
(elo_results)
fastchat/serve/monitor/monitor.py:47
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
fastchat/train/train_mistral.py:254
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
fastchat/train/train_baichuan.py:240
↓ 1 callersFunctionmask_labels
(conversation, target, tokenizer, conv)
fastchat/train/train_ppo.py:100
↓ 1 callersFunctionmask_targets
(conversations, targets, tokenizer, conv)
fastchat/train/train_baichuan.py:112
↓ 1 callersFunctionmaybe_zero_3
(param)
fastchat/train/train_lora.py:68
↓ 1 callersFunctionmerge_add
(d, k, v)
eval_agent/main_vh.py:89
↓ 1 callersFunctionmerge_add
(d, k, v)
eval_agent/envs/virtualhome_env.py:98
↓ 1 callersFunctionmodel_hyperlink
(model_name, link)
fastchat/serve/monitor/monitor.py:108
↓ 1 callersFunctionmodel_hyperlink
(model_name, link)
fastchat/serve/monitor/leaderboard_csv_to_html.py:14
↓ 1 callersFunctionmodel_worker_stream_iter
( conv, model_name, worker_addr, prompt, temperature, repetition_penalty, top_p,
fastchat/serve/gradio_web_server.py:293
↓ 1 callersFunctionnormalize_game_key_dict
Make the model names sorted in the game keys.
fastchat/llm_judge/common.py:528
↓ 1 callersFunctionnormalize_game_key_single
Make the model names sorted in a game key.
fastchat/llm_judge/common.py:513
↓ 1 callersFunctionoai_moderation
Check whether the text violates OpenAI moderation API.
fastchat/utils.py:146
↓ 1 callersFunctionpairwise_to_gradio_chat_mds
(question, ans_a, ans_b, turn=None)
fastchat/llm_judge/qa_browser.py:125
↓ 1 callersFunctionpalm_api_stream_iter
(chat, message, temperature, top_p, max_new_tokens)
fastchat/serve/api_provider.py:123
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval_agent/envs/virtualhome_env.py:419
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval_agent/envs/webshop_env.py:31
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval_agent/envs/alfworld_env.py:32
↓ 1 callersMethodparse_action
(self, llm_output: List[str])
eval_agent/envs/alfworld_env.py:121
↓ 1 callersFunctionparse_content
(input_string)
eval_agent/main_vh.py:339
↓ 1 callersFunctionparse_content
(input_string)
eval_agent/envs/virtualhome_env.py:252
↓ 1 callersFunctionparse_item_page_amz
(asin, verbose=True)
envs/webshop/src/webshop/transfer/predict_help.py:296
↓ 1 callersFunctionparse_item_page_ebay
(asin, verbose=True)
envs/webshop/src/webshop/transfer/predict_help.py:63
← previousnext →301–400 of 947, ranked by callers