SShortSingh.
Back to feed

Guide Shows How to Validate Instruction-Tuning JSONL Datasets Before Training

0
·8 views

A DEV Community article explains that instruction-tuning datasets in JSONL format can look correct yet still cause training problems. Common issues include missing fields, empty instructions, duplicate examples, invalid JSON, overly long outputs, inconsistent response formats, and data leakage between training and validation sets. The author recommends checking JSON syntax, required fields, text length, duplicates, and length limits, and reporting all errors at once rather than stopping at the first. A Python script is provided that reads a JSONL file, validates each record, detects duplicates via normalized hashing, and outputs a JSON report.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Second-hand 5G router found to contain a hidden Tailscale backdoor named after its buyer

A user who bought a used 5G router discovered it had been configured with a Tailscale access node. The device's Tailscale entry was labeled with the buyer's own name, suggesting the previous owner or a third party had set it up for remote access. The findings were detailed in a personal blog post that quickly drew attention on Hacker News, where it gathered 24 points and 7 comments. The article is based on the author's own inspection of the hardware and does not describe a broader industry-wide compromise.

0
ProgrammingHacker News ·

Essay Argues Your Attention Is Worth About $100k Over a Career

A blog post titled "Your Attention Costs $100k" by author Tornike Onoprishvili was shared on Hacker News, where it gained 47 points and seven comments. The piece argues that the time and focus a person gives to distractions can be translated into a substantial financial figure over a working lifetime. The excerpt available provides only the post's link and discussion metadata, so the specific calculations and reasoning behind the $100k estimate could not be verified here. Readers interested in the methodology should consult the original essay directly.

0
ProgrammingDEV Community ·

ClaudeMap Charts 419 Claude Ecosystem Resources, Including Maintenance and Compatibility Gaps

A developer built ClaudeMap, a community-curated map of the Claude ecosystem tracking 419 resources across six categories with more than 40 contributors. The author argues that typical awesome-lists fail users by omitting maintenance status, compatibility with current Claude Code versions, and clear setup instructions. Of the 91 MCP servers listed, 35 carry an official tag, but six official entries point to an archived repository, showing that an official label does not guarantee active maintenance. The project also highlights lesser-known tools such as Ripwire, Deja Vu, GitMCP, and Blitz Strike that generic directory searches tend to miss.

0
ProgrammingDEV Community ·

Codex CLI Output: Choosing Stdout or JSONL and Gating the Contract

A job that exits successfully but produces an empty payload is an easy failure to overlook in automation. This guide examines how to choose between the two output contracts of OpenAI's Codex CLI in non-interactive mode. By default, progress goes to stderr and the final message to stdout, while the --json flag switches stdout to a JSON Lines event stream. The vendor documentation covers the stream split and JSONL shape but not event types, exit codes, or partial-output behavior after a timeout. The author recommends treating stdout as the payload, stderr as diagnostics, and checking both exit status and non-empty output.