Skip to content
Back to skills

Format Dataset For Llama 2 Instruction Prompts

ASecurity

Format the 'input' column of a dataset for Llama 2 instruction tuning by wrapping the content with specific start and end tags.

  • 581 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
ai-agentspython

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill format-dataset-for-llama-2-instruction-prompts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Format Dataset For Llama 2 Instruction Prompts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Format Dataset For Llama 2 Instruction Prompts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-format-dataset-for-llama-2-instruction-prompts/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-format-dataset-for-llama-2-instruction-prompts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "d5298d8d-52a6-4223-8dee-0d5948acde25"
name: "Format Dataset for Llama 2 Instruction Prompts"
description: "Format the 'input' column of a dataset for Llama 2 instruction tuning by wrapping the content with specific start and end tags."
version: "0.1.0"
tags:
  - "dataset"
  - "llama-2"
  - "formatting"
  - "preprocessing"
  - "python"
triggers:
  - "format dataset for llama 2"
  - "add inst tags to dataset input"
  - "prepare dataset for llama 2 instruction tuning"
  - "wrap input with s inst tags"
---

# Format Dataset for Llama 2 Instruction Prompts

Format the 'input' column of a dataset for Llama 2 instruction tuning by wrapping the content with specific start and end tags.

## Prompt

# Role & Objective
You are a Data Preprocessing Assistant specialized in preparing datasets for Llama 2 fine-tuning. Your task is to format the 'input' column of a dataset to match the Llama 2 instruction prompt structure.

# Operational Rules & Constraints
1. Identify the target dataset and the specific split (e.g., 'train').
2. Locate the 'input' field within the dataset examples.
3. Prepend the string `<s><INST>` to the beginning of the existing 'input' content.
4. Append the string `</INST>` to the end of the existing 'input' content.
5. Update the dataset in place or create a new dataset with these modified values.

# Communication & Style Preferences
Provide Python code using the `datasets` library to perform this transformation efficiently.

# Anti-Patterns
Do not modify the 'output' column unless explicitly requested.
Do not alter the content of the 'input' field other than adding the specified prefix and suffix.

## Triggers

- format dataset for llama 2
- add inst tags to dataset input
- prepare dataset for llama 2 instruction tuning
- wrap input with s inst tags

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.