Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gen-Verse/GenEnv
/ functions
Functions
27 in github.com/Gen-Verse/GenEnv
⨍
Functions
27
◇
Types & classes
4
↓ 2 callers
Method
_normalize_action
Normalize action string for comparison.
genenv/utils/reward_functions.py:333
↓ 2 callers
Method
_normalize_answer
Normalize answer string for comparison.
genenv/utils/reward_functions.py:164
↓ 1 callers
Function
_augment_dataset
Merge new generated tasks with the original training dataset.
genenv/trainer/genenv_trainer.py:406
↓ 1 callers
Function
_cleanup_trainer
Release trainer resources.
genenv/trainer/genenv_trainer.py:440
↓ 1 callers
Method
_compare_actions
Compare extracted actions with expected actions.
genenv/utils/reward_functions.py:341
↓ 1 callers
Function
_evaluate_agent_performance
Evaluate agent performance on the current training dataset. Returns: Dictionary mapping prompt -> {'scores': [...], 'gt': ground
genenv/trainer/genenv_trainer.py:242
↓ 1 callers
Method
_extract_actions
Extract action calls from text.
genenv/utils/reward_functions.py:297
↓ 1 callers
Method
_extract_boxed_answer
Extract the last LaTeX \\boxed{...} content from text.
genenv/utils/reward_functions.py:133
↓ 1 callers
Method
_extract_tool_calls
Extract tool calls from <tool_call> tags.
genenv/utils/reward_functions.py:200
↓ 1 callers
Function
_filter_prompts
Filter out prompts that are too easy (always solved) or too hard (never solved). The GenEnv algorithm focuses on prompts at the boundary
genenv/trainer/genenv_trainer.py:325
↓ 1 callers
Function
_generate_new_tasks
Generate new training tasks using the Environment LLM. >>> USER CUSTOMIZATION REQUIRED <<< Modify the prompt template and parsing lo
genenv/trainer/genenv_trainer.py:347
↓ 1 callers
Method
_get_gold_answer
Extract the gold answer from ground truth.
genenv/utils/reward_functions.py:149
↓ 1 callers
Method
_match_tool_call
Check if predicted call matches any gold call.
genenv/utils/reward_functions.py:235
↓ 1 callers
Method
_parse_ground_truth
Parse ground truth into list of actions.
genenv/utils/reward_functions.py:314
↓ 1 callers
Method
compute_reward
Compute reward for a single generated response. >>> USER CUSTOMIZATION REQUIRED <<< Replace this method with your do
genenv/utils/reward_functions.py:109
↓ 1 callers
Function
main
Main entry point for GenEnv training.
genenv/train.py:43
↓ 1 callers
Function
run_genenv_training
Main entry point for GenEnv co-training. This function orchestrates the alternating training between Agent and Environment. Arg
genenv/trainer/genenv_trainer.py:96
Method
__call__
Compute rewards for a batch of generated responses. Args: data: DataProto containing prompts, responses, and gro
genenv/utils/reward_functions.py:62
Method
__init__
Initialize the reward manager. Args: tokenizer: HuggingFace tokenizer for decoding sequences num_exa
genenv/utils/reward_functions.py:51
Method
__init__
Initialize the Environment Generator. Args: model_path: Path to the Environment LLM (e.g., Qwen2.5-7B-Instruct)
genenv/trainer/genenv_trainer.py:63
Method
compute_reward
Check if predicted tool calls match ground truth. Expected ground_truth format: {"name": "api_name", "parameters": {
genenv/utils/reward_functions.py:181
Method
compute_reward
Check if predicted actions match ground truth. Expected actions format: - type(bid=123, value=text, press_enter=True
genenv/utils/reward_functions.py:279
Method
generate
Generate new tasks from the given prompts. Args: prompts: List of formatted prompts for task generation
genenv/trainer/genenv_trainer.py:79
Method
process_item
(args)
genenv/utils/reward_functions.py:77
Method
prune_params
(d)
genenv/utils/reward_functions.py:237
Function
run_genenv_task
Ray remote task for GenEnv co-training.
genenv/train.py:83
Function
standard_training_task
Ray remote task for standard GRPO training (without co-training).
genenv/train.py:89