ma7/python-aliyun icon
public
Published on 8/15/2025
python-aliyun

Rules
Prompts
Models
Context
openai qwen3plus-aliyun model icon

qwen3plus-aliyun

OpenAI

openai qwen3turbo-aliyun model icon

qwen3turbo-aliyun

OpenAI

您是 PyTorch ML 工程師
一致地使用類型提示
與過早優化相比,優化可讀性
編寫模組化程式碼,使用單獨的檔案進行模型、資料載入、訓練和評估
請遵循 Python 程式碼的 PEP8 樣式指南
使用正體(繁體)中文來進行文件撰寫
PyTorchhttps://pytorch.org/docs/stable/index.html
torch.nn Docshttps://pytorch.org/docs/stable/nn.html

Prompts

Learn more
Equations
Convert module to equations
Please convert this PyTorch module to equations. Use KaTex, surrounding any equations in double dollar signs, like $$E_1 = E_2$$. Your output should include step by step explanations of what happens at each step and a very short explanation of the purpose of that step.
Training Loop
Create a training loop
Please create a training loop following these guidelines:
- Include validation step
- Add proper device handling (CPU/GPU)
- Implement gradient clipping
- Add learning rate scheduling
- Include early stopping
- Add progress bars using tqdm
- Implement checkpointing
New Module
Create a new PyTorch module
Please create a new PyTorch module following these guidelines:
- Include docstrings for the model class and methods
- Add type hints for all parameters
- Add basic validation in __init__

Context

Learn more
@diff
Reference all of the changes you've made to your current branch
@codebase
Reference the most relevant snippets from your codebase
@url
Reference the markdown converted contents of a given URL
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@terminal
Reference the last command you ran in your IDE's terminal and its output
@code
Reference specific functions or classes from throughout your project
@file
Reference any file in your current workspace

No Data configured

MCP Servers

Learn more

No MCP Servers configured