MCPcopy Create free account

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

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

↓ 3 callersMethodprint_trainable_parameters
Prints the number of trainable parameters in the model.
ppo/step_ppo.py:65
↓ 3 callersFunctionprocess_format
(arg)
eval_agent/main_vh.py:108
↓ 3 callersFunctionprocess_format
(arg)
eval_agent/envs/virtualhome_env.py:117
↓ 3 callersMethodpush_to_hub
Overwrite the `push_to_hub` method in order to force-add the tag "sft" when pushing the model on the Hub. Please refer to `~transform
fastchat/train/dpo_trainer.py:1199
↓ 3 callersMethodreceive
Map action to the corresponding page
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:650
↓ 3 callersFunctionrelease_worker_semaphore
(worker)
fastchat/serve/huggingface_api_worker.py:199
↓ 3 callersFunctionrotate_half
Rotates half the hidden dims of the input.
fastchat/model/monkey_patch_non_inplace.py:13
↓ 3 callersFunctionrun_judge_single
(question, answer, judge, ref_answer, multi_turn=False)
fastchat/llm_judge/common.py:131
↓ 3 callersFunctionset_seed
(seed)
ppo/step_ppo.py:25
↓ 3 callersFunctionstr_to_torch_dtype
(dtype: str)
fastchat/utils.py:339
↓ 3 callersFunctionstring_args
(args, args_list)
fastchat/serve/launch_all_serve.py:209
↓ 3 callersFunctionto_openai_format
(messages)
fastchat/serve/monitor/clean_battle_data.py:69
↓ 3 callersFunctiontrain
()
fastchat/train/train.py:478
↓ 3 callersFunctionvote_last_response
(state, vote_type, model_selector, request: gr.Request)
fastchat/serve/gradio_web_server.py:196
↓ 2 callersMethod__init__
(self)
envs/webshop/src/webshop/web_agent_site/models/models.py:11
↓ 2 callersMethod__process_embed_chunk
(self, input_ids, attention_mask, **model_type_dict)
fastchat/serve/model_worker.py:146
↓ 2 callersFunction_add_to_set
(s, new_stop)
eval_agent/agents/fastchat_agent.py:14
↓ 2 callersFunction_add_to_set
(s, new_stop)
fastchat/serve/openai_api_server.py:246
↓ 2 callersMethod_early_stop
r""" Handles the early stopping logic. If the policy KL is greater than the target KL, then the gradient is zeroed and the optimizatio
fastchat/train/ppo_trainer.py:853
↓ 2 callersMethod_generate_batched
( self, model: PreTrainedModelWrapper, query_tensors: List[torch.Tensor], leng
fastchat/train/ppo_trainer.py:495
↓ 2 callersMethod_kl_penalty
(self, logprob: torch.FloatTensor, ref_logprob: torch.FloatTensor)
fastchat/train/ppo_trainer.py:1101
↓ 2 callersFunction_tokenize_fn
Tokenize a list of strings.
fastchat/train/train_flant5.py:115
↓ 2 callersFunctionacquire_worker_semaphore
()
fastchat/serve/vllm_worker.py:167
↓ 2 callersFunctionapply_rotary_pos_emb
(q, k, cos_sin, position_ids)
fastchat/train/llama2_flash_attn_monkey_patch.py:18
↓ 2 callersFunctionbot_response
(state, temperature, top_p, max_new_tokens, request: gr.Request)
fastchat/serve/gradio_web_server.py:331
↓ 2 callersFunctionbuild_leaderboard_tab
(elo_results_file, leaderboard_table_file)
fastchat/serve/monitor/monitor.py:169
↓ 2 callersFunctionbuild_single_model_ui
(models, add_promotion_links=False)
fastchat/serve/gradio_web_server.py:610
↓ 2 callersMethodbuild_tokenized_answer
Llama tokenizer does satisfy `enc(a + b) = enc(a) + enc(b)`. It does ensure `enc(a + b) = enc(a) + enc(a + b)[len(enc(a)):]`.
fastchat/train/dpo_trainer.py:505
↓ 2 callersFunctionchat_completion_stream_generator
Event stream format: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format
fastchat/serve/openai_api_server.py:450
↓ 2 callersFunctioncompress
Simulate group-wise quantization.
fastchat/model/compression.py:226
↓ 2 callersMethodcompute_advantages
( self, values: torch.FloatTensor, rewards: torch.FloatTensor, mask: torch.Flo
fastchat/train/ppo_trainer.py:1117
↓ 2 callersFunctioncompute_pairwise_win_fraction
(battles, model_order, limit_show_number=None)
fastchat/serve/monitor/elo_analysis.py:61
↓ 2 callersMethodcompute_reference_log_probs
Computes log probabilities of the reference model for a single padded batch of a DPO specific dataset.
fastchat/train/dpo_trainer.py:653
↓ 2 callersMethodcompute_rewards
( self, scores: torch.FloatTensor, # each component of scores is a also a tensor logp
ppo/step_ppotrainer.py:369
↓ 2 callersMethodcompute_rewards
Compute per token rewards from scores and KL-penalty. Args: scores (`torch.FloatTensor`): Scores from th
fastchat/train/ppo_trainer.py:1069
↓ 2 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_text_env.py:212
↓ 2 callersFunctionconvert_web_app_string_to_var
(name, string)
envs/webshop/src/webshop/web_agent_site/engine/engine.py:131
↓ 2 callersMethodcopy
(self)
fastchat/conversation.py:303
↓ 2 callersFunctioncreate_background_tasks
()
fastchat/serve/multi_model_worker.py:86
↓ 2 callersFunctioncreate_openai_logprobs
Create OpenAI-style logprobs.
fastchat/serve/openai_api_server.py:241
↓ 2 callersFunctionequalvote
(vote1, vote2)
fastchat/llm_judge/compute_agreement.py:60
↓ 2 callersFunctionfind_gptq_ckpt
(gptq_config: GptqConfig)
fastchat/modules/gptq.py:65
↓ 2 callersMethodforward
Args: observation (`str`): HTML string available_actions (): ... Returns:
envs/webshop/src/webshop/web_agent_site/models/models.py:14
↓ 2 callersMethodforward
(self, input: Tensor)
fastchat/model/compression.py:52
↓ 2 callersMethodgather_stats
Gather stats from all processes. Useful in the context of distributed training. Args: stats (dict[str, Any]):
fastchat/train/ppo_trainer.py:888
↓ 2 callersFunctiongenerate_attrs
(corpus_by_cat, k, save_name)
envs/webshop/src/webshop/web_agent_site/attributes/generate_attrs.py:140
↓ 2 callersFunctiongenerate_completion_stream
(payload: Dict[str, Any], worker_addr: str)
fastchat/serve/openai_api_server.py:644
↓ 2 callersFunctiongenerate_stream
( model, tokenizer, params: Dict, device: str, context_len: int, stream_interval: int
fastchat/serve/inference.py:62
↓ 2 callersMethodgenerate_stream
(self, params)
fastchat/serve/vllm_worker.py:67
↓ 2 callersMethodgenerate_stream_gate
(self, params)
fastchat/serve/model_worker.py:103
↓ 2 callersMethodgenerate_stream_gate
(self, params)
fastchat/serve/huggingface_api_worker.py:132
↓ 2 callersFunctionget_anony_vote_df
(df)
fastchat/serve/monitor/basic_stats.py:60
↓ 2 callersMethodget_available_actions
Returns list of available actions at the current step
envs/webshop/src/webshop/web_agent_site/envs/web_agent_site_env.py:93
↓ 2 callersMethodget_batch_loss_metrics
Compute the DPO loss and other metrics for the given batch of inputs for train or test.
fastchat/train/dpo_trainer.py:957
↓ 2 callersFunctionget_corpus
keys: `name`, `small_description`, `review` category_type: `category`, `query`
envs/webshop/src/webshop/web_agent_site/attributes/generate_attrs.py:76
↓ 2 callersFunctionget_generate_stream_function
Get the generate_stream function for inference.
fastchat/model/model_adapter.py:354
↓ 2 callersFunctionget_goals
(all_products, product_prices, human_goals=True)
envs/webshop/src/webshop/web_agent_site/engine/goal.py:16
↓ 2 callersFunctionget_model_info
(name: str)
fastchat/model/model_registry.py:21
↓ 2 callersFunctionget_pairwise_judge_explanation
Get model judge explanation.
fastchat/llm_judge/common.py:635
↓ 2 callersFunctionget_peft_state_maybe_zero_3
(named_params, bias)
fastchat/train/train_lora.py:79
↓ 2 callersFunctionget_return_value
(env, asin, options, search_terms, page_num, product)
envs/webshop/src/webshop/transfer/app.py:95
↓ 2 callersFunctionget_sample_weight
(model)
fastchat/serve/gradio_block_arena_anony.py:273
↓ 2 callersFunctionget_single_judge_explanation
Get model judge explanation.
fastchat/llm_judge/common.py:660
↓ 2 callersMethodget_worker_address
(self, model_name: str)
fastchat/serve/controller.py:130
↓ 2 callersFunctioninit_palm_chat
(model_name)
fastchat/serve/api_provider.py:110
↓ 2 callersFunctioninit_search_engine
(num_products=None)
envs/webshop/src/webshop/web_agent_site/engine/engine.py:195
↓ 2 callersMethoditem_page
Render and return the HTML for a product item page
envs/webshop/src/webshop/web_agent_site/envs/web_agent_text_env.py:501
↓ 2 callersFunctionlaunch_worker
(item)
fastchat/serve/launch_all_serve.py:235
↓ 2 callersFunctionload_demo_single
(models, url_params)
fastchat/serve/gradio_web_server.py:162
↓ 2 callersFunctionload_leaderboard_table_csv
(filename, add_hyperlink=True)
fastchat/serve/monitor/monitor.py:112
↓ 2 callersFunctionload_products
(filepath, num_products=None, human_goals=True)
envs/webshop/src/webshop/web_agent_site/engine/engine.py:230
↓ 2 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
fastchat/train/train.py:457
↓ 2 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
fastchat/train/train_flant5.py:378
↓ 2 callersFunctionmask_labels
(conversation, target, tokenizer, conv)
fastchat/train/train_dpo_mistral.py:117
↓ 2 callersFunctionmask_labels
(conversation, target, tokenizer, conv)
fastchat/train/train_dpo.py:122
↓ 2 callersFunctionnew_chat
()
fastchat/serve/inference.py:391
↓ 2 callersFunctionnormalize_color
Extracts the first color found if exists
envs/webshop/src/webshop/web_agent_site/engine/normalize.py:57
↓ 2 callersFunctionopenai_api_stream_iter
( model_name, messages, temperature, top_p, max_new_tokens, api_base=None, api_key
fastchat/serve/api_provider.py:14
↓ 2 callersFunctionparse_gradio_auth_creds
Parse a username:password file for gradio authorization.
fastchat/utils.py:278
↓ 2 callersMethodprepare_model_inputs
(self, queries: torch.Tensor, responses: torch.Tensor)
fastchat/train/ppo_trainer.py:911
↓ 2 callersFunctionpreprocess
( sources, tokenizer: transformers.PreTrainedTokenizer, model_path: str, )
fastchat/train/train.py:101
↓ 2 callersFunctionpreprocess
( sources, tokenizer: transformers.PreTrainedTokenizer, model_path: str, )
fastchat/train/train_mistral.py:91
↓ 2 callersFunctionpreprocess
(sources, tokenizer: transformers.PreTrainedTokenizer, **kwargs)
fastchat/train/train_baichuan.py:151
↓ 2 callersFunctionpretty_print_conversation
(messages)
fastchat/serve/monitor/inspect_conv.py:31
↓ 2 callersFunctionpretty_print_elo_rating
(rating)
fastchat/serve/monitor/elo_analysis.py:266
↓ 2 callersFunctionprocess_input
(model_name, inp)
fastchat/serve/openai_api_server.py:227
↓ 2 callersFunctionprocess_ob
(ob)
eval_agent/envs/alfworld_env.py:15
↓ 2 callersMethodprompt_for_output
Prompt for output from a role.
fastchat/serve/inference.py:325
↓ 2 callersFunctionrandom_idx
Generate random index by sampling uniformly from sum of all weights, then selecting the `min` between the position to keep the list sorted (via bi
envs/webshop/src/webshop/web_agent_site/utils.py:21
↓ 2 callersMethodregister_to_controller
(self)
fastchat/serve/base_model_worker.py:87
↓ 2 callersMethodregister_worker
( self, worker_name: str, check_heart_beat: bool, worker_status: dict )
fastchat/serve/controller.py:74
↓ 2 callersFunctionrelease_worker_semaphore
()
fastchat/serve/base_model_worker.py:177
↓ 2 callersFunctionremove_html
(raw)
fastchat/serve/monitor/clean_battle_data.py:63
↓ 2 callersMethodremove_worker
(self, worker_name: str)
fastchat/serve/controller.py:111
↓ 2 callersFunctionreorg_answer_file
Sort by question id and de-duplication
fastchat/llm_judge/gen_model_answer.py:193
↓ 2 callersFunctionreplace_model_name
(old_name)
fastchat/serve/monitor/clean_battle_data.py:77
↓ 2 callersFunctionreport_basic_stats
(log_files)
fastchat/serve/monitor/basic_stats.py:79
↓ 2 callersFunctionreport_elo_analysis_results
(battles_json)
fastchat/serve/monitor/elo_analysis.py:218
↓ 2 callersMethodreset
Create a new session and reset environment variables
envs/webshop/src/webshop/web_agent_site/envs/web_agent_site_env.py:190
↓ 2 callersFunctionresolve_pairwise_judgment_dict
Return the correct pairwise judge.
fastchat/llm_judge/common.py:605
← previousnext →101–200 of 947, ranked by callers