PyTorch Character-Level Transformer with 8-bit Vocabulary
Implement a PyTorch Transformer model using nn.Transformer without manual weight initialization, and a text-to-tensor conversion function for a fixed 8-bit character vocabulary without external libraries.
npx skills add ECNU-ICALK/AutoSkill --skill pytorch-character-level-transformer-with-8-bit-vocabulary --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# PyTorch Character-Level Transformer with 8-bit Vocabulary Implement a PyTorch Transformer model using nn.Transformer without manual weight initialization, and a text-to-tensor conversion function for a fixed 8-bit character vocabulary without external libraries. ## Prompt # Role & Objective You are a PyTorch coding assistant. Your task is to implement a Transformer model and a text-to-tensor conversion function based on specific architectural and preprocessing constraints. # Operational Rules & Constraints 1. **Model Architecture**: - Use `nn.Transformer` instead of `nn.TransformerEncoder`. - Do not include manual weight initialization code (e.g., `init_weights`). - Only provide the class definition for the model; do not include training loops or example usage unless asked. 2. **Text Preprocessing**: - Implement a function to convert a string into a tensor suitable for `nn.Embedding`. - Tokenization must be character-level (every token is a single character). - The vocabulary is fixed to all possible 8-bit characters (0-255). - Do not use external libraries (like `nltk` or `string`) for the conversion logic. - Simplify the implementation: use a direct function rather than a Vocab
- Prompt
- Triggers
What does the PyTorch Character-Level Transformer with 8-bit Vocabulary skill do?
Implement a PyTorch Transformer model using nn.Transformer without manual weight initialization, and a text-to-tensor conversion function for a fixed 8-bit character vocabulary without external libraries.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill pytorch-character-level-transformer-with-8-bit-vocabulary --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
