|
Download metrics_guide.md from Ilikemechuri/rwkv_doomloop_experiment: direct link, hf CLI and curl.
- Browser
- Download file 3.97 kB
-
https://huggingface.co/Ilikemechuri/rwkv_doomloop_experiment/resolve/main/metrics_guide.md
- Command line
-
hf download hf://Ilikemechuri/rwkv_doomloop_experiment/metrics_guide.md
-
curl -L -o metrics_guide.md https://huggingface.co/Ilikemechuri/rwkv_doomloop_experiment/resolve/main/metrics_guide.md
3.97 kB
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_headforward 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_stepcounts only newly generated assistant response tokens across chunks. Prompt, harness-message, and chat-template tokens are excluded.harness_chunk_indexandchunk_token_steplocate a token within the 256-token generation call.context_tokens_for_chunkis the full tokenized input length for that call, including the prior transcript and harness messages.harness_events.csvrecords 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_processedsums 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_tokenscounts 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_rmsis relative to a zero state, while later rows are relative to the preceding forward in the same chunk. assistant_chunks.mdpreserves each generated chunk separately;generation.txtjoins the assistant text chunks without showing harness messages.