# CSV 지표 안내 ## token_metrics.csv 공통 열 - `predicts_token_step`: 생성될 토큰 번호 (1부터 시작). - `context_generated_tokens`: logits를 만들 때 recurrent state에 포함된 생성 토큰 수. - `generated_token_id`: 실제 선택된 tokenizer ID. - `top1_probability`, `entropy_nats`, `top1_top2_margin`: 패널티 없는 조건의 다음-token 분포 지표. - `wkv_rms_mean`, `wkv_rms_max`: 24개 층의 WKV recurrent matrix RMS 평균/최댓값. - `att_shift_rms_mean`, `ffn_shift_rms_mean`: shift state RMS의 층 평균. - `wkv_delta_rms`, `att_shift_delta_rms`, `ffn_shift_delta_rms`: 현재 context update 전후 state 차이의 RMS. - `wkv_layer_00_rms` … `wkv_layer_23_rms`: 층별 WKV RMS. attention/FFN shift도 같은 열 구조. - `rolling_dup8_rate_64`: 최근 64개 토큰 내 중복 8-gram 비율. ## Penalty CSV 추가 열 - `raw_*`: 반복 패널티 적용 전 모델 원시 logits의 통계. - `penalty_*`: Transformers repetition processor 적용 후 generation score의 통계. - `penalty_argmax_matches_generated`: 각 단계에서 penalty score의 argmax가 실제 greedy 생성 토큰과 일치하는지. ## State cosine 요약 `cycle_similarity_vs_step_241.csv`의 각 state cosine은 같은 위치에 있는 첫 수식 토큰 (step 241)의 recurrent state와 해당 반복 지점 state 사이의 층별 cosine 평균/최솟값이다. `*_rel_l2_mean`은 층별 상대 L2 거리의 평균이다. ## OLMo token metrics - OLMo 및 영어 system 추가 실행의 `raw_*`는 `lm_head` forward hook에서 generation processor 적용 전 logits를 기록한다. - `processed_*`는 `generate(output_scores=True)`가 반환한 processor 적용 후 점수다. repetition penalty가 1.0인 조건에서는 raw와 동일하다. - `processed_argmax_matches_generated` 확인 결과는 greedy score argmax와 출력 token의 대응을 기록한다. - `rolling_dup8_rate_64`는 생성된 token 중 최근 최대 64개에서 8-gram occurrence 중 중복된 비율이다. 모델별 tokenizer가 달라 RWKV/OLMo 간 token n-gram 길이는 직접 비교할 수 없다. - OLMo 2는 Transformer이므로 RWKV의 WKV/shift recurrent state 열은 없다. - 추가 RWKV 영어 system run은 기존처럼 WKV/attention-shift/FFN-shift RMS를 기록하며, `*_delta_rms`는 직전 generation forward 시점 대비 recurrent state 변화량이다. ## Periodic harness metrics - `predicts_response_token_step` counts only newly generated assistant response tokens across chunks. Prompt, harness-message, and chat-template tokens are excluded. - `harness_chunk_index` and `chunk_token_step` locate a token within the 256-token generation call. `context_tokens_for_chunk` is the full tokenized input length for that call, including the prior transcript and harness messages. - `harness_events.csv` records one row per completed chunk, including the cumulative response-token count, usage-update content length, and next call's context length. Seven usage messages are sent for an eight-chunk 2,048-token response; the final 2,048 checkpoint is logged without a follow-up message. - `total_context_tokens_processed` sums the complete input length at each call. Because the harness re-renders and replays the full conversation every 256 tokens, earlier answer tokens are counted again as input on later chunks. This is not the assistant response-token count. - `total_harness_message_content_tokens` counts only each update's text content with that model's tokenizer; it excludes role markers and other chat-template overhead. - RWKV state hooks reset per chunk. The first row in a chunk measures the state after prefilling that chunk's full conversation context; its `*_delta_rms` is relative to a zero state, while later rows are relative to the preceding forward in the same chunk. - `assistant_chunks.md` preserves each generated chunk separately; `generation.txt` joins the assistant text chunks without showing harness messages.