Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WangHanLinHenry/SPA-RL-Agent
/ functions
Functions
947 in github.com/WangHanLinHenry/SPA-RL-Agent
⨍
Functions
947
◇
Types & classes
225
↳
Endpoints
55
↓ 1 callers
Function
parse_item_page_ws
(asin, query, page_num, options, verbose=True)
envs/webshop/src/webshop/transfer/predict_help.py:188
↓ 1 callers
Function
parse_results_amz
(query, page_num=None, verbose=True)
envs/webshop/src/webshop/transfer/predict_help.py:262
↓ 1 callers
Function
parse_results_ebay
(query, page_num=None, verbose=True)
envs/webshop/src/webshop/transfer/predict_help.py:26
↓ 1 callers
Function
parse_results_ws
(query, page_num=None, verbose=True)
envs/webshop/src/webshop/transfer/predict_help.py:146
↓ 1 callers
Function
post_process_code
(code)
fastchat/serve/gradio_web_server.py:282
↓ 1 callers
Function
predict
Given WebShop environment observation and info, predict an action.
envs/webshop/src/webshop/transfer/app.py:126
↓ 1 callers
Method
prediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: Dict[str, Union[torch.Tensor
fastchat/train/reward_trainer.py:319
↓ 1 callers
Method
prepare_dataloader
Prepare the dataloader for training. Args: dataset (Union[`torch.utils.data.Dataset`, `datasets.Dataset`]):
fastchat/train/ppo_trainer.py:363
↓ 1 callers
Function
prepare_logits_processor
( temperature: float, repetition_penalty: float, top_p: float, top_k: int )
fastchat/serve/inference.py:45
↓ 1 callers
Function
preprocess
Given a list of sources, each is a conversation list. This transform: 1. Add signal '### ' at the beginning each sentence, with end signal '\
fastchat/train/train_flant5.py:221
↓ 1 callers
Function
preprocess
( sources, tokenizer: transformers.PreTrainedTokenizer, model_path: str, )
prm/train_our_progress_model.py:125
↓ 1 callers
Function
preprocess
( sources, tokenizer: transformers.PreTrainedTokenizer, model_path: str, )
prm/inference_prm.py:118
↓ 1 callers
Function
pretty_print_semaphore
Print a semaphore in better format.
fastchat/utils.py:204
↓ 1 callers
Method
print_output
Print output.
fastchat/serve/inference.py:333
↓ 1 callers
Function
print_topk
(texts, labels, topk_indices, show_cut_off)
fastchat/serve/monitor/topic_clustering.py:172
↓ 1 callers
Function
process_goal
(state)
envs/webshop/src/webshop/transfer/app.py:34
↓ 1 callers
Function
process_response
(response)
fastchat/model/model_chatglm.py:24
↓ 1 callers
Function
process_str
(s)
envs/webshop/src/webshop/transfer/app.py:28
↓ 1 callers
Method
prompt_for_input
Prompt for input from a role.
fastchat/serve/inference.py:321
↓ 1 callers
Function
raise_warning_for_incompatible_cpu_offloading_configuration
( device: str, load_8bit: bool, cpu_offloading: bool )
fastchat/model/model_adapter.py:141
↓ 1 callers
Method
raise_warning_for_old_weights
(self, model)
fastchat/model/model_adapter.py:648
↓ 1 callers
Function
read_texts
(input_file, min_length, max_length, english_only)
fastchat/serve/monitor/topic_clustering.py:32
↓ 1 callers
Method
receive_heart_beat
(self, worker_name: str, queue_length: int)
fastchat/serve/controller.py:183
↓ 1 callers
Method
record_step_stats
Record training step statistics. Args: kl_coef (`float`): KL coefficient data (`dict`):
ppo/step_ppotrainer.py:413
↓ 1 callers
Method
record_step_stats
Record training step statistics. Args: kl_coef (`float`): KL coefficient data (`dict`):
fastchat/train/ppo_trainer.py:1234
↓ 1 callers
Method
refresh_all_workers
(self)
fastchat/serve/controller.py:114
↓ 1 callers
Function
release_worker_semaphore
()
fastchat/serve/multi_model_worker.py:72
↓ 1 callers
Function
release_worker_semaphore
()
fastchat/serve/vllm_worker.py:163
↓ 1 callers
Function
remove_duplicate_edge
(input_dict)
eval_agent/envs/virtualhome_env.py:33
↓ 1 callers
Function
remove_parent_directory_name
Remove parent directory name.
fastchat/model/model_adapter.py:540
↓ 1 callers
Function
remove_punctuation
(input_string)
fastchat/serve/monitor/topic_clustering.py:23
↓ 1 callers
Method
remove_stale_workers_by_expiration
(self)
fastchat/serve/controller.py:193
↓ 1 callers
Function
replace_llama_attn_with_flash_attn
()
fastchat/train/llama2_flash_attn_monkey_patch.py:132
↓ 1 callers
Function
replace_llama_attn_with_flash_attn
()
fastchat/train/llama_flash_attn_monkey_patch.py:97
↓ 1 callers
Function
replace_llama_attn_with_non_inplace_operations
Avoid bugs in mps backend by not using in-place operations.
fastchat/model/monkey_patch_non_inplace.py:117
↓ 1 callers
Function
replace_llama_attn_with_xformers_attn
()
fastchat/train/llama_xformers_attn_monkey_patch.py:19
↓ 1 callers
Function
replace_llama_with_condense
(ratio)
fastchat/model/llama_condense_monkey_patch.py:68
↓ 1 callers
Method
reset
Create a new session and reset environment variables
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:242
↓ 1 callers
Function
revert
(vote)
fastchat/llm_judge/compute_agreement.py:24
↓ 1 callers
Function
run_agg_cluster
(embeddings, num_clusters)
fastchat/serve/monitor/topic_clustering.py:111
↓ 1 callers
Function
run_cmd
Run a bash command.
fastchat/utils.py:299
↓ 1 callers
Function
run_eval
( model_path, model_id, question_file, question_begin, question_end, answer_file,
fastchat/llm_judge/gen_model_answer.py:21
↓ 1 callers
Function
run_hdbscan_cluster
(embeddings)
fastchat/serve/monitor/topic_clustering.py:133
↓ 1 callers
Function
run_k_means
(embeddings, num_clusters)
fastchat/serve/monitor/topic_clustering.py:92
↓ 1 callers
Function
run_mt_bench_agreement
(judges, votefiles)
fastchat/llm_judge/compute_agreement.py:101
↓ 1 callers
Function
safe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
fastchat/train/train_flant5.py:75
↓ 1 callers
Function
safe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
fastchat/train/train_lora_t5.py:98
↓ 1 callers
Function
safe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
fastchat/train/train_baichuan.py:71
↓ 1 callers
Function
search_results
(data)
envs/webshop/src/webshop/transfer/webshop_lite.py:25
↓ 1 callers
Method
send_heart_beat
(self)
fastchat/serve/base_model_worker.py:99
↓ 1 callers
Function
set_global_vars_anony
(enable_moderation_)
fastchat/serve/gradio_block_arena_anony.py:47
↓ 1 callers
Function
set_global_vars_named
(enable_moderation_)
fastchat/serve/gradio_block_arena_named.py:44
↓ 1 callers
Function
single_to_gradio_chat_mds
(question, ans, turn=None)
fastchat/llm_judge/qa_browser.py:157
↓ 1 callers
Method
step
( self, queries: List[torch.LongTensor], responses: List[torch.LongTensor], sc
ppo/step_ppotrainer.py:54
↓ 1 callers
Function
str2program_list
这个代码的功能是将allowed action里面的动作给转化为virtualhome中的标准格式 比如: input: ["close address_book","close address_book","close address_book"] output:
eval_agent/envs/virtualhome_env.py:305
↓ 1 callers
Method
stream_output
Stream output from a role.
fastchat/serve/cli.py:110
↓ 1 callers
Method
stream_output
Stream output.
fastchat/serve/inference.py:329
↓ 1 callers
Function
tag_moderation
(text)
fastchat/serve/monitor/tag_openai_moderation.py:20
↓ 1 callers
Function
template_change
(conversation)
exploration/virtualhome/generate_response.py:209
↓ 1 callers
Function
template_change
(conversation)
exploration/alfworld/generate_response.py:165
↓ 1 callers
Function
template_change
(conversation)
exploration/webshop/generate_response_webshop.py:165
↓ 1 callers
Function
test
()
fastchat/train/llama2_flash_attn_monkey_patch.py:144
↓ 1 callers
Function
to_remove
(x)
fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/compute_stats.py:71
↓ 1 callers
Function
tokenize_conversations
(conversations, tokenizer)
fastchat/train/train_baichuan.py:100
↓ 1 callers
Function
train
()
fastchat/train/train_lora.py:104
↓ 1 callers
Function
train
()
fastchat/train/train_ppo.py:256
↓ 1 callers
Function
train
()
fastchat/train/train_flant5.py:395
↓ 1 callers
Function
train
()
fastchat/train/train_mistral.py:275
↓ 1 callers
Function
train
()
fastchat/train/train_reward.py:178
↓ 1 callers
Function
train
()
fastchat/train/train_dpo_mistral.py:259
↓ 1 callers
Function
train
()
fastchat/train/train_lora_t5.py:109
↓ 1 callers
Function
train
()
fastchat/train/train_dpo.py:311
↓ 1 callers
Function
train
()
fastchat/train/train_baichuan.py:275
↓ 1 callers
Function
trainer_save_model_safe
(trainer: transformers.Trainer)
fastchat/train/train.py:90
↓ 1 callers
Function
trainer_save_model_safe
(trainer: transformers.Trainer)
fastchat/train/train_mistral.py:80
↓ 1 callers
Function
trainer_save_model_safe
(trainer: transformers.Trainer)
fastchat/train/train_reward.py:111
↓ 1 callers
Function
trainer_save_model_safe
(trainer: transformers.Trainer)
fastchat/train/train_dpo_mistral.py:106
↓ 1 callers
Function
trainer_save_model_safe
(trainer: transformers.Trainer)
fastchat/train/train_dpo.py:111
↓ 1 callers
Function
update_elo_components
(max_num_files, elo_results_file)
fastchat/serve/monitor/monitor.py:56
↓ 1 callers
Function
upload_hub
(model_path, hub_repo_id, component, private)
fastchat/model/upload_hub.py:14
↓ 1 callers
Function
visualize_average_win_rate
(battles, limit_show_number)
fastchat/serve/monitor/elo_analysis.py:172
↓ 1 callers
Function
visualize_battle_count
(battles, model_order)
fastchat/serve/monitor/elo_analysis.py:148
↓ 1 callers
Function
visualize_bootstrap_elo_rating
(df, limit_show_number)
fastchat/serve/monitor/elo_analysis.py:188
↓ 1 callers
Function
visualize_leaderboard_table
(rating)
fastchat/serve/monitor/elo_analysis.py:103
↓ 1 callers
Function
visualize_pairwise_win_fraction
(battles, model_order)
fastchat/serve/monitor/elo_analysis.py:125
↓ 1 callers
Method
worker_api_generate_stream
(self, params)
fastchat/serve/controller.py:240
↓ 1 callers
Method
worker_api_get_status
(self)
fastchat/serve/controller.py:221
Method
_
(event)
fastchat/serve/cli.py:81
Method
__call__
(self, messages)
eval_agent/agents/openai_lm_agent.py:30
Method
__call__
(self)
eval_agent/agents/base.py:16
Method
__call__
(self, messages: List[dict])
eval_agent/agents/fastchat_agent.py:37
Method
__call__
(self, input_ids, use_cache, past_key_values=None)
fastchat/model/rwkv_model.py:30
Method
__call__
( self, input_ids: torch.LongTensor, scores: torch.FloatTensor )
fastchat/model/model_chatglm.py:12
Method
__call__
( self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs )
fastchat/model/model_codet5p.py:51
Method
__call__
(self, instances: Sequence[Dict])
fastchat/train/train_flant5.py:355
Method
__call__
(self, features: List[Dict[str, Any]])
fastchat/train/reward_trainer.py:66
Method
__getattr__
(self, attr)
fastchat/utils.py:89
Method
__getitem__
(self, i)
fastchat/train/train.py:418
Method
__getitem__
(self, i)
fastchat/train/train.py:442
Method
__getitem__
(self, i)
fastchat/train/train_flant5.py:345
← previous
next →
401–500 of 947, ranked by callers