-
Notifications
You must be signed in to change notification settings - Fork 48
Add scripts to search context length capacity on given settings. #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pan-x-c
merged 14 commits into
agentscope-ai:main
from
chenyushuo:add/context_length_search
Dec 10, 2025
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2df31f0
Add scripts to search context length capacity on given settings.
chenyushuo 6432b19
add readme and refactor on scripts
chenyushuo 5c7eccc
add `trinity_trainer_configs.md`
chenyushuo 2c9e31c
add doc for trainer settings
chenyushuo ea0fca2
add multi node support
chenyushuo d5f837e
apply reviews
chenyushuo 1130bbe
add explanatory docs for `max_token_len_per_gpu`
chenyushuo 5e860e9
apply reviews
chenyushuo ab68e76
add increamental timeout
chenyushuo dadec5b
apply reviews
chenyushuo 1c930e2
rename `trinity_trainer_configs` to `trinity_gpu_configs`
chenyushuo 6cb399e
add GPU Resource and Training Configuration Guide to readme
chenyushuo 5d72ed9
add GPU Resource and Training Configuration Guide to readme
chenyushuo 207c97e
rename develop_selector title
chenyushuo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| mode: both | ||
| project: Trinity-RFT-context-length-exp | ||
| group: length-test | ||
| name: length-test | ||
| checkpoint_root_dir: ${oc.env:TRINITY_CHECKPOINT_ROOT_DIR,./checkpoints/length-test} | ||
| continue_from_checkpoint: false | ||
| algorithm: | ||
| algorithm_type: grpo | ||
| repeat_times: ${oc.env:REPEAT_TIMES,8} | ||
| advantage_fn: grpo | ||
| sample_strategy: default | ||
| policy_loss_fn: ppo | ||
| kl_penalty_fn: none | ||
| kl_loss_fn: k2 | ||
| entropy_loss_fn: default | ||
| optimizer: | ||
| lr: 1.0e-05 | ||
| lr_warmup_steps_ratio: 0.0 | ||
| warmup_style: constant | ||
| data_processor: {} | ||
| model: | ||
| model_path: ${oc.env:MODEL_PATH,Qwen/Qwen3-0.6B} | ||
| max_prompt_tokens: ${oc.env:PROMPT_LEN,2048} | ||
| max_model_len: ${oc.env:MAX_MODEL_LEN,4096} | ||
| rope_scaling: ${oc.decode:${oc.env:ROPE_SCALING,null}} | ||
| cluster: | ||
| node_num: 1 | ||
| gpu_per_node: ${oc.env:GPU_NUM,8} | ||
| buffer: | ||
| batch_size: 1 | ||
| total_steps: 2 | ||
| explorer_input: | ||
| taskset: | ||
| name: taskset | ||
| storage_type: file | ||
| path: openai/gsm8k | ||
| split: train | ||
| subset_name: main | ||
| format: | ||
| prompt_key: question | ||
| response_key: answer | ||
| rollout_args: | ||
| temperature: 1.0 | ||
| logprobs: 0 | ||
| workflow_args: | ||
| prompt_len: ${model.max_prompt_tokens} | ||
| max_model_len: ${model.max_model_len} | ||
| eval_tasksets: [] | ||
| default_workflow_type: dummy_exp_workflow | ||
| default_reward_fn_type: math_reward | ||
| trainer_input: | ||
| experience_buffer: | ||
| name: experience_buffer | ||
| storage_type: queue | ||
| replay_buffer: | ||
| enable: false | ||
| priority_fn: linear_decay | ||
| reuse_cooldown_time: null | ||
| priority_fn_args: | ||
| decay: 2.0 | ||
| explorer: | ||
| runner_per_model: 8 | ||
| rollout_model: | ||
| engine_num: ${oc.env:ENGINE_NUM,1} | ||
| tensor_parallel_size: 1 | ||
| enforce_eager: true | ||
| enable_prefix_caching: false | ||
| enable_chunked_prefill: false | ||
| gpu_memory_utilization: 0.9 | ||
| dtype: bfloat16 | ||
| seed: 42 | ||
| enable_thinking: false | ||
| enable_history: false | ||
| enable_openai_api: false | ||
| enable_auto_tool_choice: false | ||
| tool_call_parser: null | ||
| reasoning_parser: null | ||
| auxiliary_models: [] | ||
| eval_interval: 1000 | ||
| trainer: | ||
| trainer_type: verl | ||
| trainer_strategy: ${oc.env:TRAINER_STRATEGY,fsdp} | ||
| save_interval: 100 | ||
| enable_preview: true | ||
| grad_clip: 1.0 | ||
| ulysses_sequence_parallel_size: ${oc.env:SP_NUM,1} | ||
| save_hf_checkpoint: ${oc.env:SAVE_HF_CHECKPOINT,last} | ||
| trainer_config: | ||
| actor_rollout_ref: | ||
| actor: | ||
| entropy_from_logits_with_chunking: ${oc.env:ENTROPY_SAVING,false} | ||
| entropy_checkpointing: ${oc.env:ENTROPY_SAVING,false} | ||
| fsdp_config: | ||
| param_offload: ${oc.env:OFFLOAD,false} | ||
| optimizer_offload: ${oc.env:OFFLOAD,false} | ||
| offload_policy: ${oc.env:OFFLOAD,false} | ||
| ref: | ||
| entropy_from_logits_with_chunking: ${oc.env:ENTROPY_SAVING,false} | ||
| entropy_checkpointing: ${oc.env:ENTROPY_SAVING,false} | ||
| fsdp_config: | ||
| param_offload: ${oc.env:OFFLOAD,false} | ||
| optimizer_offload: ${oc.env:OFFLOAD,false} | ||
| offload_policy: ${oc.env:OFFLOAD,false} | ||
chenyushuo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| monitor: | ||
| monitor_type: tensorboard | ||
| synchronizer: | ||
| sync_method: nccl | ||
| sync_style: fixed | ||
| sync_interval: 1 | ||
| sync_timeout: 1200 | ||
| log: | ||
| level: INFO | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.