JSONL 데이터셋 검사
잘못된 레코드, 중복, 긴 입력, 학습·검증 집합의 정확한 겹침을 찾습니다.
Study guide & lesson outline
LEARNING CONTRACTUnderstand → implement → investigate
Goal: explain the mechanism in this lesson, reproduce one example and test a failure case. Reading alone does not mark mastery.
- Understand: state assumptions, shapes/units and a counterexample.
- Implement: reproduce a numerical example and inspect boundaries.
- Investigate: compare one alternative under a matched budget.
01설정
02입력 추가
설정 후 예제를 불러오거나 입력을 붙여 넣으세요.
03결과 확인
설정 후 예제를 불러오거나 입력을 붙여 넣으세요.
화면은 일부만 표시할 수 있으며 JSON 보고서는 전체 계산 결과를 포함합니다.
결과 해석
줄마다 {"text":"..."} 또는 {"messages":[{"role":"user","content":"..."}]} 객체를 입력합니다. 문자열과 system, developer, user, assistant, tool 역할을 지원합니다. 중복 검사는 무관한 메타데이터를 무시하고 메시지 순서를 유지합니다. 공급자 스키마 인증이나 의미적 누출 검사는 아닙니다. 집합당 최대 2 MiB, 5,000줄.
방법 참고 자료
Assumptions, implementation & acceptance
Exact normalized text overlap is a leakage signal, not proof that all near duplicates are detected. Token counts exclude provider chat-template overhead.
Reviewed counting units, statistical assumptions and numerical examples. Provider accounting and actual GPU allocation still require external measurement.
Before running: predict a boundary case
Exact normalized text overlap is a leakage signal, not proof that all near duplicates are detected. Token counts exclude provider chat-template overhead.
Hint: isolate the assumption
Keep the baseline input fixed, change one parameter or boundary, and compare both the numerical result and the claimed units. A passing example verifies this fixture only.
Minimal executable example
Save the example and linked modules in one folder. Use Node.js 22 or newer, then run node jsonl-inspector.mjs. npm install gpt-tokenizer@4.1.0
import {encode as rawEncode} from 'gpt-tokenizer/encoding/cl100k_base';
import {promptDiff,inspectDataset,chunkDocument,compareScores,estimateVRAM,samplingLab,speculativeLab} from './research-core.mjs';
const encode=s=>rawEncode(s,{disallowedSpecial:new Set()});
const result=inspectDataset('{"text":"x"}\n{"text":"x"}', '{"text":"x"}',50,encode);
console.log([result.train.duplicates,result.crossSplitMatches]); // [1,1]Test and transfer
Exact normalized text overlap is a leakage signal, not proof that all near duplicates are detected. Token counts exclude provider chat-template overhead.
Record input, code version, expected result and observed result in the notebook below. Then construct a counterexample that violates the assumption above and explain why the original conclusion no longer follows.
Download complete kit (.tar.gz) · Complete reference kit and regression checksPredict, test and keep evidence
Before revealing an answer, predict one result. After the exercise, record the discrepancy and a transfer test. Saved locally across language editions.
Open notebook / export / clear →The mathematical review scope is recorded per lesson. It does not establish empirical paper reproduction; report suspected errors in your notes. Review scope