Live survey304 models · 14 providers · 22,792 auditsAudited grill-with-docs · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Pytorch Dataset Chunking For Rnn Training

skill · ECNU-ICALK/AutoSkillLicence not declaredAudited 14 Oct 2026 · source 04e912cff54b

★ 602pushed 157 days agoversion 0.1.0
✓SAFEGrade B · 89/100 · 14 Oct 2026 · 04e912c
602repo stars · whole ECNU-ICALK/AutoSkill

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 04e912cff54b and found no filesystem, network or shell access and no hard-coded secrets. What it does: Modifies PyTorch data preparation scripts for RNN/LSTM models to limit the dataset size by dividing it into chunks controlled by a hyperparameter, ensuring the first dimension of input/target tensors fits memory…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Pytorch Dataset Chunking For Rnn Training (ECNU-ICALK/AutoSkill)”. Retrieved 14 Oct 2026. https://modelsatlas.com/skills/ecnu-icalk/pytorch-dataset-chunking-for-rnn-training

Trust audit

Audit 0.4.1 · source read 14 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 16,667 of 17,602 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha 04e912cff54b · 14 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

Its description: Modifies PyTorch data preparation scripts for RNN/LSTM models to limit the dataset size by dividing it into chunks controlled by a hyperparameter, ensuring the first dimension of input/target tensors fits memory…

---
id: "643b651a-d80f-4ceb-8cef-bc255eb20367"
name: "PyTorch Dataset Chunking for RNN Training"
description: "Modifies PyTorch data preparation scripts for RNN/LSTM models to limit the dataset size by dividing it into chunks controlled by a hyperparameter, ensuring the first dimension of input/target tensors fits memory constraints."
version: "0.1.0"
tags:
  - "pytorch"
  - "rnn"
  - "dataset"
  - "chunking"
  - "data-preprocessing"
triggers:
  - "chunk dataset"
  - "limit dataset size"
  - "control tensor shape"
  - "divide dataset into chunks"
---

# PyTorch Dataset Chunking for RNN Training

Modifies PyTorch data preparation scripts for RNN/LSTM models to limit the dataset size by dividing it into chunks controlled by a hyperparameter, ensuring the first dimension of input/target tensors fits memory constraints.

## Prompt

# Role & Objective
You are a Python/PyTorch developer. Your task is to modify existing data preparation code for training RNN/LSTM models on text data. The objective is to introduce a mechanism to control the size of the dataset by dividing it into chunks, thereby limiting the first dimension of the input and target tensors.

# Communication & Style Preferences
- Provide the modified code block clearly.
- Explain the changes made to the data preparation logic.
- Ensure the code is syntactically correct and compatible with standard PyTorch workflows.

# Operational Rules & Constraints
1. **Identify the Data Preparation Section**: Locate the section where `ascii_characters` (or similar list of integers) is converted into `input_tensor` and `target_tensor`.
2. **Introduce Hyperparameter**: Add a hyperparameter, typically named `DATASET_CHUNKS`, to control the number of chunks the dataset is divided into.
3. **Calculate Sequence Counts**:
   - Calculate `total_num_sequences` as `len(ascii_characters) - SEQUENCE_LENGTH`.
   - Calculate `sequences_per_chunk` as `total_num_sequences // DATASET_CHUNKS`.
   - Calculate `usable_sequences` as `sequences_per_chunk * DATASET_CHUNKS`.
4. **Modify the Looping Logic**:
   - Replace the original loop that iterates through the entire dataset.
   - Implement a nested loop structure:
     ```python
     for start_idx in range(0, usable_sequences, sequences_per_chunk):
         for i in range(start_idx, start_idx + sequences_per_chunk):
             input_seq = ascii_characters[i:i+SEQUENCE_LENGTH]
             target_seq = ascii_characters[i+1:i+SEQUENCE_LENGTH+1]
             inputs.append(torch.tensor(input_seq, dtype=torch.long))
             targets.append(torch.tensor(target_seq, dtype=torch.long))
     ```
   - This ensures the resulting `input_tensor` and `target_tensor` have a first dimension equal to `usable_sequences`.
5. **Preserve Model Compatibility**: Ensure the rest of the script (model definition, training loop, etc.) remains compatible with the new tensor shapes. The model should handle the batch size dynamically or be initialized with the correct parameters.

# Anti-Patterns
- Do not simply slice the list to a fixed number without using the `DATASET_CHUNKS` logic.
- Do not modify the model architecture (e.g., `vocab_size`, `hidden_size`) unless explicitly required by the tensor shape changes.
- Do not remove the `SEQUENCE_LENGTH` logic.

## Triggers

- chunk dataset
- limit dataset size
- control tensor shape
- divide dataset into chunks

Excerpt, first 3,370 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 04e912c

Download folder ↗
git clone https://github.com/ECNU-ICALK/AutoSkill
git -C AutoSkill checkout 04e912cff54b

The author documents no install command, so this uses the repository directly. Our verdict covers commit 04e912cff54b only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 04e912cff54b

Questions about Pytorch Dataset Chunking For Rnn Training

What does the Pytorch Dataset Chunking For Rnn Training skill do?
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
Is Pytorch Dataset Chunking For Rnn Training safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Pytorch Dataset Chunking For Rnn Training access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (04e912cff54b), read on 2026-10-14. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.