Skip to content

feat(gkd): add agentic monitoring metrics - #10026

Open
Casuallkk wants to merge 1 commit into
modelscope:mainfrom
Casuallkk:codex/gkd-agent-monitoring
Open

feat(gkd): add agentic monitoring metrics#10026
Casuallkk wants to merge 1 commit into
modelscope:mainfrom
Casuallkk:codex/gkd-agent-monitoring

Conversation

@Casuallkk

Copy link
Copy Markdown

PR type

  • Bug Fix
  • New Feature
  • Document Updates
  • More Models or Datasets Support

PR information

Add monitoring metrics for agentic multi-turn GKD training:

  • num_turns: average number of turns in on-policy trajectories.
  • gkd/topk_overlap: mean token-level overlap between teacher and student top-k predictions.
  • gkd/teacher_student_gap: mean teacher-student log-probability difference on observed response tokens, defined as E_t[log p_teacher(y_t) - log p_student(y_t)].

The metrics are supported across Hugging Face, Megatron, and Ray-Megatron GKD paths. For teacher API top-k outputs, the observed token log-probability is preserved even when that token falls outside the retained teacher top-k.

Experiment results

  • pytest tests/train/test_gkd_monitoring.py -q: 4 passed.
  • Repository pre-commit checks: passed.
  • Python syntax and Git diff checks: passed.
  • Large-model end-to-end GKD tests: passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant